home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1996 December / CD_shareware_12-96.iso / DOS / Programa / CCDL122.ZIP / LIBS / LIB.MAK < prev    next >
Encoding:
Makefile  |  1995-10-26  |  1.3 KB  |  86 lines

  1. .AUTODEPEND
  2.  
  3. #        *Translator Definitions*
  4. CC = bcc +$(TARGET)l.cfg
  5. TASM = TASM
  6. TLIB = tlib
  7. TLINK = tlink
  8. LIBPATH = C:\BC45\LIB;
  9. INCLUDEPATH = C:\BC45\INCLUDE;..\include;..\..
  10.  
  11. #        *Implicit Rules*
  12. .cpp.obj:
  13.   $(CC) -c { $< }
  14. .c.obj:
  15.   $(CC) -c { $< }
  16. .asm.obj:
  17.   $(TASM) /D__LARGE__ /ml /zi /o /i..\include { $< }
  18.  
  19. .path.c = ..\source
  20. .path.asm = ..\source
  21.  
  22.  
  23. #        *Explicit Rules*
  24. all: $(TARGET)l.lib move
  25. move: $(TARGET)l.lib ..\include\$(TARGET).h ..\include\$(TARGET).p
  26.   move $(TARGET)l.lib ..\..
  27.   copy ..\include\$(TARGET).h ..\.. 
  28.   copy ..\include\$(TARGET).p ..\.. 
  29. clean:
  30.   del *.obj *.cfg *.bak ..\source\*.bak ..\include\*.bak
  31. proto:
  32.   protogen -f..\include\$(TARGET).p ..\source\*.c
  33.   
  34. $(TARGET)l.lib: $(TARGET)l.cfg $(C_dependencies:.c=.obj) $(ASM_dependencies:.asm=.obj)
  35.   del $(TARGET)l.lib
  36.   $(TLIB) $(TARGET)l /C @&&|
  37. $(LIB_dependencies)
  38. |
  39. #        *Compiler Configuration File*
  40. $(TARGET)l.cfg:  ..\..\lib.mak
  41.   del *.obj
  42.   copy &&|
  43. -ml
  44. -v
  45. -G
  46. -O
  47. -Og
  48. -Oe
  49. -Om
  50. -Ov
  51. -Ol
  52. -Ob
  53. -Op
  54. -Oi
  55. -Z
  56. -vi
  57. -w-ret
  58. -w-nci
  59. -w-inl
  60. -wpin
  61. -wamb
  62. -wamp
  63. -w-par
  64. -wasm
  65. -wcln
  66. -w-cpt
  67. -wdef
  68. -w-dup
  69. -w-pia
  70. -wsig
  71. -wnod
  72. -w-ill
  73. -w-sus
  74. -wstv
  75. -wucp
  76. -wuse
  77. -w-ext
  78. -w-ias
  79. -w-ibc
  80. -w-pre
  81. -w-nst
  82. -w-pro
  83. -I$(INCLUDEPATH)
  84. -L$(LIBPATH)
  85. | $(TARGET)l.cfg
  86.