home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / I2C / makefile < prev   
Makefile  |  2002-04-26  |  2KB  |  72 lines

  1. # $Id: makefile,v 1.2 2002/04/26 23:08:58 smilcke Exp $
  2.  
  3. #===================================================================
  4. # Makefile for LXAPI32 driver I2C
  5. #===================================================================
  6. DEVTYPE=I2C
  7. TARGET   = i2c
  8.  
  9. #EVERYTHING_AS_CPP=1
  10. 32BIT=1
  11.  
  12. !Message ************************
  13. !Message Building $(TARGET)
  14. !Message ************************
  15.  
  16. !include ..\makes\paths.mak
  17. !ifndef DRV_BASE
  18. !error No DRV paths defined.
  19. !endif
  20.  
  21. CINCLUDES = $(%WATCOM)\H;..\include;
  22. AINCLUDES = $(%DDK)\H
  23.  
  24. CDEFINES = -D__KERNEL__ -DMODULE -dTARGET_OS2
  25.  
  26. #===================================================================
  27. #
  28. #   List of source files
  29. #
  30. #===================================================================
  31. OBJ1    = i2calgob.obj
  32. OBJ2    = i2cdev.obj
  33. OBJ3    =
  34. OBJ4    =
  35. OBJ5    =
  36. OBJ6    =
  37. OBJ7    =
  38. OBJ8    =
  39. OBJ9    = i2ccore.obj
  40. OBJLAST =
  41. OBJS    = $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJLAST)
  42.  
  43. !include $(DRV_MAKES)\envchk.mak
  44. !include $(DRV_MAKES)\common.mak
  45. !include $(LX_MAINMAKE)
  46.  
  47. LNKFILE  = $(DRV_OBJ)\$(TARGET).lrf
  48.  
  49.  
  50. #===================================================================
  51. #
  52. #   Specific dependencies
  53. #
  54. #===================================================================
  55. all: $(DRV_LIB)\$(TARGET).lib
  56.  
  57.  
  58. $(LNKFILE): makefile
  59.     @%create $(LNKFILE)
  60.     @for %f in ($(OBJS)) do @%append $(LNKFILE) -+$(DRV_OBJ)\%f
  61.  
  62. $(DRV_LIB)\$(TARGET).lib: $(LNKFILE) $(OBJS)
  63.     @echo ------------------- $^&.lib
  64.     $(LIB) $(DRV_LIB)\$(TARGET).lib @$(LNKFILE)
  65.  
  66. clean: .SYMBOLIC
  67.        @if exist $(DRV_OBJ)\*.obj del $(DRV_OBJ)\*.obj
  68.        @if exist $(DRV_OBJ)\*.lrf del $(DRV_OBJ)\*.lrf
  69.        @if exist $(DRV_OBJ)\*.lst del $(DRV_OBJ)\*.lst
  70.        @if exist $(DRV_SRC)\*.err del $(DRV_SRC)\*.err
  71.        @if exist $(DRV_LIB)\$(TARGET).lib del $(DRV_LIB)\$(TARGET).lib
  72.