home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / ui / makefile.bc < prev    next >
Makefile  |  1995-04-09  |  3KB  |  153 lines

  1.  
  2.  
  3.  
  4. !include ..\control\bcmak.ctl
  5.  
  6. LIBRARY  = $(UI)
  7. LIBRARYP = $(YACLLIB)\$(LIBRARY)
  8.  
  9.  
  10. # ------------------------ Names of files --------------------------
  11.  
  12. OBJECTS =       \
  13. applic.obj      \
  14. arc.obj         \
  15. bitmap.obj      \
  16. brush.obj       \
  17. btngroup.obj    \
  18. canvas.obj      \
  19. chord.obj       \
  20. cntroler.obj    \
  21. color.obj       \
  22. combobox.obj    \
  23. containr.obj    \
  24. composit.obj    \
  25. cursor.obj      \
  26. dialog.obj      \
  27. dsplrsrc.obj    \
  28. dsplsurf.obj    \
  29. dwgsurf.obj     \
  30. ellipse.obj     \
  31. event.obj       \
  32. font.obj        \
  33. fontdesc.obj    \
  34. graphic.obj     \
  35. grutils.obj     \
  36. interval.obj    \
  37. label.obj       \
  38. lineseg.obj     \
  39. mainprog.obj    \
  40. menu.obj        \
  41. monthcal.obj    \
  42. orbtngrp.obj    \
  43. pen.obj         \
  44. piewedge.obj    \
  45. point.obj       \
  46. pushbtn.obj     \
  47. rectangl.obj    \
  48. scrolbar.obj    \
  49. simple.obj      \
  50. stddlg.obj      \
  51. stencil.obj     \
  52. stred.obj       \
  53. strseq.obj      \
  54. strview.obj     \
  55. textedit.obj    \
  56. timer.obj       \
  57. toglbtn.obj     \
  58. visualob.obj    \
  59. vobjcoll.obj    \ 
  60. xrbtngrp.obj    \
  61. xrtglbtn.obj
  62.  
  63.  
  64.  
  65. !if $(YACLPLATFORM) == os2
  66. PLATFORM_OBJECTS = os2evt.obj  printjob.obj
  67. !elif $(YACLPLATFORM) == windows
  68. PLATFORM_OBJECTS =  printjob.obj winevt.obj
  69. !endif
  70.  
  71.  
  72.  
  73. # ---------------------- Compilation rules -----------------------
  74.  
  75.  
  76. .SUFFIXES:
  77. .SUFFIXES: .cxx .obj
  78.  
  79.  
  80. CCOPTS    = $(CCOPTS) -Jgd
  81.  
  82.  
  83. !if $d(RAMDRIVE)
  84. CCOPTS =  -I$(RAMDRIVE)\ $(CCOPTS) 
  85. !endif
  86.  
  87. TARGET = $(LIBRARYP).lib
  88.  
  89. !if $d(BUILD_DLL)
  90. !if $(YACLPLATFORM) == windows
  91. CCOPTS = $(CCOPTS) -DBUILD_DLL -WD
  92. !elif $(YACLPLATFORM) == os2
  93. CCOPTS = $(CCOPTS) -sd  -DBUILD_DLL
  94. TARGET = $(LIBRARYP).dll
  95. !else
  96. !error Cannot build DLL for $(YACLPLATFORM).
  97. !endif
  98. !endif
  99.  
  100.  
  101.  
  102.  
  103. .cxx.obj:
  104.     $(CC) $(DEBUG) +$(LIBRARY).cfg  { $<}
  105.  
  106.  
  107.         
  108. all: $(LIBRARY).cfg $(TARGET)
  109.  
  110.  
  111. $(LIBRARY).cfg: makefile.bc
  112.     copy &&|
  113. $(WARNINGS) $(CCOPTS)
  114. | $(LIBRARY).cfg
  115.  
  116.  
  117. $(LIBRARYP).lib: $(OBJECTS) $(PLATFORM_OBJECTS)
  118.     $(LIBR) $(LIBRARYP)  /P64 @&&!
  119. -+$(OBJECTS: = -+)
  120. !
  121.     $(LIBR) $(LIBRARYP)  /P64 @&&!
  122. -+$(PLATFORM_OBJECTS: = -+)
  123. !
  124.     -$(DELETE) $(LIBRARYP).bak
  125.  
  126.  
  127. $(LIBRARYP).dll: $(OBJECTS)  $(PLATFORM_OBJECTS)
  128.     tlink -c -x -v -Tod -L$(BCPATH)\lib $(BCPATH)\lib\c02d.obj @&&|
  129.     $(OBJECTS)
  130. |, $(LIBRARYP).dll, NUL, c2 + os2, $(LIBRARYP)
  131.     implib $(LIBRARYP).lib $(LIBRARYP).dll
  132.  
  133.  
  134.  
  135. # ------------------ Other targets ---------------------------
  136.  
  137.  
  138.  
  139.  
  140. clean:
  141.     -del *.obj
  142.     -del *.cfg
  143.     -del $(LIBRARYP).lib
  144.     -del $(LIBRARYP).bak
  145.     -del $(YACLLIB)\$(MEMORY).lib
  146.     -del $(YACLLIB)\$(MEMORY).bak
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.