*.o
*.bin
*.elf
+grubload/smmload
+hardware/ich2/smram-ich2
\ No newline at end of file
-include ../config.mk
--include ../ich2/config.mk
+-include ../hardware/ich2/config.mk
OBJS=main.o mbentry.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o $(CHIP_OBJS) output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o
CC=$(CROSS)gcc
-CFLAGS=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99
+CFLAGS+=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99
all: smmload
--- /dev/null
+CFLAGS += -DNETWATCH_ICH2 -I../hardware/ich2
+CHIP_OBJS += ../hardware/ich2/ich2-timer.o \
+ ../hardware/ich2/smi.o \
+ ../hardware/ich2/smram-ich2.o
+++ /dev/null
-CFLAGS += -DNETWATCH_ICH2 -I../ich2
-CHIP_OBJS += ../ich2/ich2-timer.o \
- ../ich2/smi.o \
- ../ich2/smram-ich2.o
-include ../config.mk
--include ../ich2/config.mk
+-include ../hardware/ich2/config.mk
CC=$(CROSS)gcc
-CFLAGS+=-I../include -I../include/raw \
+CFLAGS+=-I../include -I../net -I../include/raw \
-I../lwip/src/include -I../lwip/src/include/ipv4 \
-nostdlib -nostdinc -fno-builtin -D__RAW__ \
-Wall -Werror -std=gnu99 -Wstrict-aliasing=2 \
../net/net.o \
../net/http/fs.o \
../net/http/httpd.o \
- ../net/3c90x.o \
+ ../hardware/net/3c90x.o \
../net/rfb.o \
- ../video/tnt2.o \
- ../video/fb.o \
- ../video/generic.o \
- ../video/text.o \
+ ../hardware/video/tnt2.o \
+ ../hardware/video/fb.o \
+ ../hardware/video/generic.o \
+ ../hardware/video/text.o \
drivers.o \
../lib/minilib.o \
../lib/doprnt.o \