Subversion Repositories Kolibri OS

Rev

Rev 1692 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. CC = gcc
  3. FASM = e:/fasm/fasm.exe
  4. CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
  5. LDFLAGS = -nostdlib -shared -s -Map geode.map --image-base 0\
  6.           --file-alignment 512 --section-alignment 4096
  7.  
  8. DEFINES  = -D__KERNEL__ -DCONFIG_X86_32
  9.  
  10. DRV_TOPDIR   = $(CURDIR)/../..
  11.  
  12. DRV_INCLUDES = $(DRV_TOPDIR)/include
  13.  
  14. INCLUDES =      -I$(DRV_INCLUDES) \
  15.                 -I$(DRV_INCLUDES)/linux
  16.  
  17. LIBPATH = $(DRV_TOPDIR)/ddk
  18.  
  19. LIBS:=    -lddk -lcore
  20.  
  21. HFILES:=     geode.h                   
  22.  
  23. SRC_DEP:=    
  24. GEODE_SRC:=    amd_geode.h    
  25.  
  26. NAME:=   geode
  27. GEODE:=  geode.dll
  28.  
  29. all: $(GEODE)
  30.  
  31. $(GEODE): geode.obj $(SRC_DEP) $(HFILES) Makefile
  32.         ld $(LDFLAGS) -L$(LIBPATH) -T driver.lds -o $@ geode.obj $(LIBS)  
  33.         kpack.exe geode.dll geode.drv
  34.  
  35. geode.obj : geode.c $(SRC_DEP) $(HFILES) Makefile
  36.         $(CC) $(DEFINES) $(INCLUDES) $(CFLAGS) -o geode.obj geode.c
  37.  
  38.  
  39.  
  40.