home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / the25.zip / thesrc251.zip / gccdos.mak < prev    next >
Makefile  |  1998-07-23  |  7KB  |  172 lines

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8.  
  9. VER = 25
  10. SRC       = h:/the-2.5
  11. ASRC      = h:\the-2.5
  12. CURSBIN   = h:/pdc/dos/djg
  13. CURSLIB   = $(CURSBIN)/pdcurses.a
  14. CURSINC   = -Ic:/curses
  15. REGINA_BIN = h:/regina/dos/djg
  16. REGINA_REXXLIBS = $(REGINA_BIN)/libregna.a
  17. REGINA_REXXINC = -Ih:/regina08 -DUSE_REGINA
  18. DJGPP_HOME = d:/djgpp
  19. ADJGPP_HOME = d:\djgpp
  20.  
  21. #########################################################################
  22. # DJGPP compiler on DOS
  23. #########################################################################
  24.  
  25. REXXLIB = $(REGINA_REXXLIBS)
  26. REXXINC =  $(REGINA_REXXINC)
  27.  
  28. ifeq ($(DEBUG),Y)
  29. CFLAGS    = -c -g -Wall -DSTDC_HEADERS -DUSE_REGINA -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
  30. LDEBUG    = -g
  31. TRACE     = trace.o
  32. else
  33. CFLAGS    = -c -O -Wall -DSTDC_HEADERS -DUSE_REGINA -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
  34. LDEBUG    = 
  35. TRACE     =
  36. endif
  37.  
  38. LDFLAGS   = $(LDEBUG)
  39.  
  40. CC        = gcc
  41. THERES    = $(SRC)\icc-the.res
  42. THEDEF    = $(SRC)\icc-the.def
  43. LD        = $(CC) $(LDEBUG) -o the @the.rsp -L$(DJGPP_HOME)/lib $(CURSLIB) $(REXXLIB)
  44. MAN       = manext.exe
  45. MANLD     = link386 manext+getopt+g:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK:2 /PACKCODE /PACKDATA /ALIGN:4;
  46. #########################################################################
  47. #
  48. #
  49. # Object files
  50. #
  51. OBJ1A = box.o colour.o comm1.o comm2.o comm3.o comm4.o comm5.o
  52. OBJ1B = commset1.o commset2.o commsos.o cursor.o default.o
  53. OBJ1C = edit.o error.o execute.o linked.o column.o mouse.o
  54. OBJ1D = nonansi.o prefix.o reserved.o scroll.o show.o sort.o
  55. OBJ1E = memory.o target.o the.o util.o
  56. OBJ1 = $(OBJ1A) $(OBJ1B) $(OBJ1C) $(OBJ1D) $(OBJ1E)
  57. OBJ2 = commutil.o $(TRACE)
  58. OBJ3 = getch.o
  59. OBJ4 = query.o
  60. OBJ5 = fnmatch.o
  61. OBJ6 = directry.o file.o
  62. OBJ7 = rexx.o
  63. OBJ8 = 
  64. OBJOTH = $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
  65. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
  66.  
  67. COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
  68.     $(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c
  69.  
  70. APPENDIX = $(SRC)/appendix.1 $(SRC)/appendix.2 $(SRC)/appendix.3
  71. GLOSSARY = $(SRC)/glossary
  72.  
  73. all: the.exe dist
  74. #
  75. #########################################################################
  76. the.exe:    $(OBJS)
  77.     @echo $(OBJ1A) > the.rsp
  78.     @echo $(OBJ1B) >> the.rsp
  79.     @echo $(OBJ1C) >> the.rsp
  80.     @echo $(OBJ1D) >> the.rsp
  81.     @echo $(OBJ1E) >> the.rsp
  82.     @echo $(OBJOTH) >> the.rsp
  83.     $(LD)
  84.     strip the
  85.     coff2exe the
  86.     del the.rsp
  87. #########################################################################
  88. box.o:    $(SRC)/box.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  89.     $(CC) $(CFLAGS) $(SRC)/$*.c
  90. colour.o:    $(SRC)/colour.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  91.     $(CC) $(CFLAGS) $(SRC)/$*.c
  92. comm1.o:    $(SRC)/comm1.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  93.     $(CC) $(CFLAGS) $(SRC)/$*.c
  94. comm2.o:    $(SRC)/comm2.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  95.     $(CC) $(CFLAGS) $(SRC)/$*.c
  96. comm3.o:    $(SRC)/comm3.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  97.     $(CC) $(CFLAGS) $(SRC)/$*.c
  98. comm4.o:    $(SRC)/comm4.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  99.     $(CC) $(CFLAGS) $(SRC)/$*.c
  100. comm5.o:    $(SRC)/comm5.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  101.     $(CC) $(CFLAGS) $(SRC)/$*.c
  102. commset1.o:    $(SRC)/commset1.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  103.     $(CC) $(CFLAGS) $(SRC)/$*.c
  104. commset2.o:    $(SRC)/commset2.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  105.     $(CC) $(CFLAGS) $(SRC)/$*.c
  106. commsos.o:    $(SRC)/commsos.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  107.     $(CC) $(CFLAGS) $(SRC)/$*.c
  108. cursor.o:    $(SRC)/cursor.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  109.     $(CC) $(CFLAGS) $(SRC)/$*.c
  110. default.o:    $(SRC)/default.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  111.     $(CC) $(CFLAGS) $(SRC)/$*.c
  112. edit.o:    $(SRC)/edit.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  113.     $(CC) $(CFLAGS) $(SRC)/$*.c
  114. error.o:    $(SRC)/error.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  115.     $(CC) $(CFLAGS) $(SRC)/$*.c
  116. execute.o:    $(SRC)/execute.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  117.     $(CC) $(CFLAGS) $(SRC)/$*.c
  118. linked.o:    $(SRC)/linked.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  119.     $(CC) $(CFLAGS) $(SRC)/$*.c
  120. column.o:    $(SRC)/column.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  121.     $(CC) $(CFLAGS) $(SRC)/$*.c
  122. mouse.o:    $(SRC)/mouse.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  123.     $(CC) $(CFLAGS) $(SRC)/$*.c
  124. memory.o:    $(SRC)/memory.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  125.     $(CC) $(CFLAGS) $(SRC)/$*.c
  126. nonansi.o:    $(SRC)/nonansi.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  127.     $(CC) $(CFLAGS) $(SRC)/$*.c
  128. prefix.o:    $(SRC)/prefix.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  129.     $(CC) $(CFLAGS) $(SRC)/$*.c
  130. reserved.o:    $(SRC)/reserved.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  131.     $(CC) $(CFLAGS) $(SRC)/$*.c
  132. scroll.o:    $(SRC)/scroll.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  133.     $(CC) $(CFLAGS) $(SRC)/$*.c
  134. show.o:    $(SRC)/show.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  135.     $(CC) $(CFLAGS) $(SRC)/$*.c
  136. sort.o:    $(SRC)/sort.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  137.     $(CC) $(CFLAGS) $(SRC)/$*.c
  138. target.o:    $(SRC)/target.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  139.     $(CC) $(CFLAGS) $(SRC)/$*.c
  140. the.o:    $(SRC)/the.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  141.     $(CC) $(CFLAGS) $(SRC)/$*.c
  142. util.o:    $(SRC)/util.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  143.     $(CC) $(CFLAGS) $(SRC)/$*.c
  144. commutil.o:    $(SRC)/commutil.c $(SRC)/the.h $(SRC)/command.h $(SRC)/defines.h $(SRC)/proto.h $(SRC)/getch.h $(SRC)/key.h
  145.     $(CC) $(CFLAGS) $(SRC)/$*.c
  146. trace.o:    $(SRC)/trace.c $(SRC)/the.h $(SRC)/command.h $(SRC)/defines.h $(SRC)/proto.h $(SRC)/getch.h $(SRC)/key.h
  147.     $(CC) $(CFLAGS) $(SRC)/$*.c
  148. getch.o:    $(SRC)/getch.c $(SRC)/getch.h $(SRC)/defines.h $(SRC)/proto.h
  149.     $(CC) $(CFLAGS) $(SRC)/$*.c
  150. query.o:    $(SRC)/query.c $(SRC)/query.h $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  151.     $(CC) $(CFLAGS) $(SRC)/$*.c
  152. fnmatch.o:    $(SRC)/fnmatch.c $(SRC)/the.h $(SRC)/fnmatch.h
  153.     $(CC) $(CFLAGS) $(SRC)/$*.c
  154. directry.o:    $(SRC)/directry.c $(SRC)/the.h $(SRC)/directry.h $(SRC)/defines.h $(SRC)/proto.h
  155.     $(CC) $(CFLAGS) $(SRC)/$*.c
  156. file.o:    $(SRC)/file.c $(SRC)/the.h $(SRC)/directry.h $(SRC)/defines.h $(SRC)/proto.h
  157.     $(CC) $(CFLAGS) $(SRC)/$*.c
  158. rexx.o:    $(SRC)/rexx.c $(SRC)/the.h $(SRC)/therexx.h $(SRC)/proto.h $(SRC)/defines.h $(SRC)/query.h
  159.     $(CC) $(CFLAGS) $(SRC)/$*.c
  160. ########################################################################
  161. manual:    $(MAN) $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY)
  162.     manext $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY) > the.man
  163. #
  164. $(MAN):    $(XTRAOBJ) manext.o
  165.     $(MANLD)
  166.     $(CHMODMAN)
  167.  
  168. #########################################################################
  169. dist: the.exe
  170.     echo run $(ASRC)\makedist.cmd
  171. #########################################################################
  172.