2008-12-08 07:22:59 +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-13 04:32:16 +01:00
|
|
|
|
2009-02-11 07:52:01 +01:00
|
|
|
HFILES:= ../../include/types.h \
|
|
|
|
../../include/syscall.h \
|
|
|
|
agp.h
|
2008-12-08 07:22:59 +01:00
|
|
|
|
2008-12-09 04:41:11 +01:00
|
|
|
SRC_DEP:= pci.inc \
|
2008-12-12 13:33:09 +01:00
|
|
|
detect.inc \
|
|
|
|
isoch.inc
|
2008-12-08 07:22:59 +01:00
|
|
|
|
|
|
|
AGP_SRC:= agp.c
|
|
|
|
|
|
|
|
|
|
|
|
AGP = agp.dll
|
|
|
|
|
|
|
|
all: $(AGP)
|
|
|
|
|
|
|
|
$(AGP): agp.obj $(SRC_DEP) $(HFILES) Makefile
|
|
|
|
wlink name agp.dll SYS nt_dll lib libdrv op offset=0 op nod op maxe=25 op el op STUB=stub.exe op START=_drvEntry @agp.lk
|
|
|
|
kpack.exe agp.dll agp.drv
|
|
|
|
|
|
|
|
agp.obj : agp.c $(SRC_DEP) $(HFILES) Makefile
|
2008-12-13 04:32:16 +01:00
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) -o agp.obj agp.c
|
2008-12-08 07:22:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|