2008-12-28 15:01:01 +01:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
FASM = e:/fasm/fasm.exe
|
|
|
|
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
|
2010-11-10 06:17:31 +01:00
|
|
|
LDFLAGS = -nostdlib -shared -s -Map geode.map --image-base 0\
|
2010-11-07 13:38:26 +01:00
|
|
|
--file-alignment 512 --section-alignment 4096
|
2008-12-28 15:01:01 +01:00
|
|
|
|
2010-11-07 13:38:26 +01:00
|
|
|
DEFINES = -D__KERNEL__ -DCONFIG_X86_32
|
2008-12-28 15:01:01 +01:00
|
|
|
|
2010-11-07 13:38:26 +01:00
|
|
|
DRV_TOPDIR = $(CURDIR)/../..
|
|
|
|
|
|
|
|
DRV_INCLUDES = $(DRV_TOPDIR)/include
|
|
|
|
|
|
|
|
INCLUDES = -I$(DRV_INCLUDES) \
|
|
|
|
-I$(DRV_INCLUDES)/linux
|
|
|
|
|
|
|
|
LIBPATH = $(DRV_TOPDIR)/ddk
|
|
|
|
|
|
|
|
LIBS:= -lddk -lcore
|
|
|
|
|
|
|
|
HFILES:= 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
|
2010-11-07 13:38:26 +01:00
|
|
|
ld $(LDFLAGS) -L$(LIBPATH) -T driver.lds -o $@ geode.obj $(LIBS)
|
2008-12-28 15:01:01 +01:00
|
|
|
kpack.exe geode.dll geode.drv
|
|
|
|
|
|
|
|
geode.obj : geode.c $(SRC_DEP) $(HFILES) Makefile
|
2010-11-07 13:38:26 +01:00
|
|
|
$(CC) $(DEFINES) $(INCLUDES) $(CFLAGS) -o geode.obj geode.c
|
2008-12-28 15:01:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|