home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / samples / tp / tp.mak < prev    next >
Encoding:
Makefile  |  1993-03-12  |  1.7 KB  |  86 lines

  1. #   @(#)tp.mak 1.2 1/22/92 16:12:26 [1/26/92] (c)IBM Corp.  1992
  2. # Makefile for Tp (text processing) program
  3. # Created by IBM Corporation, 1991
  4. #
  5.  
  6. include ..\ibmsamp.inc
  7.  
  8. OBJS    = bt.obj helper.obj word.obj link.obj ll.obj fm.obj tpword.obj \
  9.       textline.obj colblk.obj page.obj ep.obj suep.obj footer.obj \
  10.       header.obj txtep.obj ipep.obj blep.obj main.obj
  11. LIBS    = som + $(STLIBS)
  12. SCPATH    = ..\..\..\sc
  13.  
  14. !if [set SMINCLUDE=.;$(SCPATH);] || \
  15.     [set SMEMIT=h;ih;ph;sc] || \
  16.     [set SMTMP=%TMP%]
  17. !endif
  18.  
  19. .SUFFIXES: .c .csc .ih
  20.  
  21. .c.obj:
  22.     $(CC) -I. $*.c
  23.  
  24. .csc.ih:
  25.     sc $*
  26.  
  27. all: tp.exe
  28.  
  29. bt.ih: bt.csc
  30. bt.obj: bt.c bt.ih
  31.  
  32. helper.obj: helper.c helper.h
  33.  
  34. word.ih: word.csc bt.ih
  35. word.obj: word.c word.ih
  36.  
  37. link.ih: link.csc bt.ih
  38. link.obj: link.c link.ih
  39.  
  40. ll.ih: ll.csc bt.ih
  41. ll.obj: ll.c ll.ih
  42.  
  43. fm.ih: fm.csc
  44. fm.obj: fm.c fm.ih
  45.  
  46. tpword.ih: tpword.csc word.ih
  47. tpword.obj: tpword.c tpword.ih
  48.  
  49. textline.ih: textline.csc ll.ih
  50. textline.obj: textline.c textline.ih
  51.  
  52. colblk.ih: colblk.csc ll.ih
  53. colblk.obj: colblk.c colblk.ih
  54.  
  55. page.ih: page.csc
  56. page.obj: page.c page.ih
  57.  
  58. ep.ih: ep.csc
  59. ep.obj: ep.c tpword.ih page.ih txtep.ih header.ih footer.ih ipep.ih blep.ih ep.ih
  60.  
  61. suep.ih: suep.csc ep.ih
  62. suep.obj: suep.c suep.ih
  63.  
  64. footer.ih: footer.csc ep.ih
  65. footer.obj: footer.c footer.ih page.ih tpword.ih
  66.  
  67. header.ih: header.csc ep.ih
  68. header.obj: header.c header.ih
  69.  
  70. txtep.ih: txtep.csc ep.ih
  71. txtep.obj: txtep.c txtep.ih
  72.  
  73. ipep.ih: ipep.csc txtep.ih
  74. ipep.obj: ipep.c ipep.ih
  75.  
  76. blep.ih: blep.csc txtep.ih
  77. blep.obj: blep.c blep.ih
  78.  
  79. main.obj: main.c suep.ih
  80.  
  81. tp.exe: $(OBJS)
  82.     $(LINK) /PM:VIO /NOI $(OBJS), tp, tp, $(LIBS), nul
  83.  
  84. clean:
  85.     del *.obj *.ih *.ph *.h *.sc *.exe *.map
  86.