mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-27 08:49:40 +03:00
137b1fee08
git-svn-id: svn://kolibrios.org@1695 a494cfbc-eb01-0410-851d-a64ba20cac60
40 lines
854 B
Makefile
40 lines
854 B
Makefile
|
|
CC = gcc
|
|
FASM = e:/fasm/fasm.exe
|
|
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
|
|
LDFLAGS = -nostdlib -shared -s -Map geode.map --image-base 0\
|
|
--file-alignment 512 --section-alignment 4096
|
|
|
|
DEFINES = -D__KERNEL__ -DCONFIG_X86_32
|
|
|
|
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
|
|
|
|
SRC_DEP:=
|
|
GEODE_SRC:= amd_geode.h
|
|
|
|
NAME:= geode
|
|
GEODE:= geode.dll
|
|
|
|
all: $(GEODE)
|
|
|
|
$(GEODE): geode.obj $(SRC_DEP) $(HFILES) Makefile
|
|
ld $(LDFLAGS) -L$(LIBPATH) -T driver.lds -o $@ geode.obj $(LIBS)
|
|
kpack.exe geode.dll geode.drv
|
|
|
|
geode.obj : geode.c $(SRC_DEP) $(HFILES) Makefile
|
|
$(CC) $(DEFINES) $(INCLUDES) $(CFLAGS) -o geode.obj geode.c
|
|
|
|
|
|
|