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

  1. # $Id: makefile,v 1.2 2002/04/26 23:09:45 smilcke Exp $
  2.  
  3. #===================================================================
  4. # Makefile for BT32 driver
  5. #===================================================================
  6. DEVTYPE=LXAPILIB
  7. TARGET   = lxapilib
  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;..\runtime;..\sblive
  22. AINCLUDES = $(%DDK)\H
  23.  
  24. CDEFINES = -D__KERNEL__ -DMODULE -dTARGET_OS2
  25.  
  26. #===================================================================
  27. #
  28. #   List of source files
  29. #
  30. #===================================================================
  31. OBJ1    = lxapihlp.obj lxapilib.obj
  32. OBJLAST =
  33. OBJS    = $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJLAST)
  34.  
  35. !include $(DRV_MAKES)\envchk.mak
  36. !include $(DRV_MAKES)\common.mak
  37. !include $(LX_MAINMAKE)
  38.  
  39. LNKFILE  = $(DRV_OBJ)\$(TARGET).lrf
  40.  
  41.  
  42. #===================================================================
  43. #
  44. #   Specific dependencies
  45. #
  46. #===================================================================
  47. all: $(TARGET).lib
  48.  
  49.  
  50. $(LNKFILE): makefile
  51.     @%create $(LNKFILE)
  52.     @for %f in ($(OBJS)) do @%append $(LNKFILE) -+$(DRV_OBJ)\%f
  53.  
  54. $(TARGET).lib: $(LNKFILE) $(OBJS)
  55.     @echo ------------------- $^&.lib
  56.     $(LIB) $(TARGET).lib @$(LNKFILE)
  57.  
  58. clean: .SYMBOLIC
  59.        @if exist $(DRV_OBJ)\*.obj del $(DRV_OBJ)\*.obj
  60.        @if exist $(DRV_OBJ)\*.lrf del $(DRV_OBJ)\*.lrf
  61.        @if exist $(DRV_OBJ)\*.lst del $(DRV_OBJ)\*.lst
  62.        @if exist $(DRV_SRC)\*.err del $(DRV_SRC)\*.err
  63.        @if exist $(TARGET).lib del $(TARGET).lib
  64.