Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | 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. LDRHD  = -shared -T ld.x -s --file-alignment 32
  6.  
  7. INCLUDES = -I ../../include
  8.  
  9. HFILES:=     ../../include/types.h      \
  10.              ../../include/syscall.h    \
  11.              ../../include/link.h       \
  12.              ../../include/pci.h        \
  13.              usb.h
  14.  
  15. SRC_DEP:=    pci.inc            \
  16.              detect.inc         \
  17.              hcd.inc            \
  18.              hid.inc
  19.  
  20. USB_SRC:=    usb.c    
  21.  
  22. USB_OBJ:=    usb.obj
  23.  
  24.  
  25. USB =        usb.dll
  26.  
  27. all: $(USB)
  28.  
  29. $(USB): $(USB_OBJ) $(SRC_DEP) $(HFILES) Makefile
  30.         wlink name usb.dll SYS nt_dll lib libdrv op offset=0 op nod op maxe=25 op el op STUB=stub.exe op START=_drvEntry @usb.lk
  31.         kpack.exe usb.dll usb.drv
  32.  
  33. usb.obj : usb.c $(SRC_DEP) $(HFILES) Makefile
  34.         $(CC) $(INCLUDES) $(CFLAGS) -o usb.obj usb.c
  35.  
  36. %.obj : %.c $(HFILES)
  37.         $(CC) $(CFLAGS) -o $@ $<
  38.  
  39. %.obj: %.asm
  40.         as -o $@ $<
  41.  
  42.  
  43.