2008-12-28 15:01:01 +01:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
FASM = e:/fasm/fasm.exe
|
|
|
|
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
|
|
|
|
LDRHD = -shared -T ld.x -s --file-alignment 32
|
|
|
|
|
2009-02-11 07:52:01 +01:00
|
|
|
INCLUDES = -I ../../include
|
2008-12-28 15:01:01 +01:00
|
|
|
|
2009-02-11 07:52:01 +01:00
|
|
|
HFILES:= ../../include/types.h \
|
|
|
|
../../include/syscall.h \
|
|
|
|
../../include/pci.h \
|
|
|
|
geode.h
|
2008-12-28 15:01:01 +01:00
|
|
|
|
|
|
|
SRC_DEP:=
|
|
|
|
GEODE_SRC:= amd_geode.h
|
|
|
|
|
|
|
|
NAME:= geode
|
|
|
|
GEODE:= geode.dll
|
|
|
|
|
|
|
|
all: $(GEODE)
|
|
|
|
|
|
|
|
$(GEODE): geode.obj $(SRC_DEP) $(HFILES) Makefile
|
|
|
|
wlink name $(GEODE) SYS nt_dll lib libdrv op offset=0 op nod op maxe=25 op el op STUB=stub.exe op START=_drvEntry @$(NAME).lk
|
|
|
|
kpack.exe geode.dll geode.drv
|
|
|
|
|
|
|
|
geode.obj : geode.c $(SRC_DEP) $(HFILES) Makefile
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) -o geode.obj geode.c
|
|
|
|
|
|
|
|
|
|
|
|
|