home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / SKELETON / SKEL / makefile next >
Makefile  |  2002-04-26  |  2KB  |  68 lines

  1. # $Id: makefile,v 1.2 2002/04/26 23:09:42 smilcke Exp $
  2.  
  3. #===================================================================
  4. # Makefile for SKEL32 driver
  5. #===================================================================
  6. TARGET = SKEL32
  7. _VENDOR=StM
  8. _VERSION=0.1
  9. DEVTYPE=SKEL
  10.  
  11. #EVERYTHING_AS_CPP=1
  12. 32BIT=1
  13.  
  14. !Message ************************
  15. !Message Building $(TARGET)
  16. !Message ************************
  17.  
  18. #===================================================================
  19. # Include common makefiles
  20. #===================================================================
  21. !include ..\makes\paths.mak
  22. !ifndef DRV_BASE
  23. !error No DRV paths defined.
  24. !endif
  25.  
  26. #===================================================================
  27. # Object file list
  28. #===================================================================
  29. OBJS1= skeleton.obj
  30. OBJS2=
  31. OBJS3=
  32. OBJS4=
  33. OBJS5=
  34. OBJS6=
  35. OBJS7=
  36. OBJS8=
  37. OBJS9=
  38.  
  39. OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9)
  40.  
  41. !include $(DRV_MAKES)\envchk.mak
  42. !include $(DRV_MAKES)\common.mak
  43. !include $(LX_MAINMAKE)
  44.  
  45. LNKFILE = $(DRV_OBJ)\$(TARGET).lrf
  46.  
  47. .BEFORE
  48.     @SET LIB=
  49.     @SET INCLUDE=
  50.     @SET DRV_MODEL=16
  51.     @SET PATH=$(%WATCOM)\BINP;$(%WATCOM)\BINW
  52.  
  53. all: $(DRV_LIB)\$(TARGET).lib
  54.  
  55. $(LNKFILE): makefile
  56.        @%create $(LNKFILE)
  57.        @for %f in ($(OBJS)) do @%append $(LNKFILE) -+$(DRV_OBJ)\%f
  58.  
  59. $(DRV_LIB)\$(TARGET).lib: $(LNKFILE) $(OBJS)
  60.        $(LIB) $(DRV_LIB)\$(TARGET).lib @$(LNKFILE)
  61.  
  62. clean: .SYMBOLIC
  63.        @if exist $(DRV_OBJ)\*.obj del $(DRV_OBJ)\*.obj
  64.        @if exist $(DRV_OBJ)\*.lrf del $(DRV_OBJ)\*.lrf
  65.        @if exist $(DRV_OBJ)\*.lst del $(DRV_OBJ)\*.lst
  66.        @if exist $(DRV_SRC)\*.err del $(DRV_SRC)\*.err
  67.        @if exist $(DRV_LIB)\$(TARGET).lib del $(DRV_LIB)\$(TARGET).lib
  68.