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

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. # emx dos
  6. #
  7. #########################################################################
  8. #
  9.  
  10. VER = 25
  11. VERDOT = 2.5
  12. SRC       = h:/the-2.5
  13. ASRC      = h:\the-2.5
  14. CURSBIN   = h:/pdc/dos/vcp
  15. CURSLIB   = $(CURSBIN)/pdcurses.a
  16. CURSINC   = -Ic:/curses
  17. REGINA_BIN = h:/regina/dos/vcp
  18. AREGINA_BIN = h:\regina\dos\vcp
  19. REGINA_REXXLIBS = $(REGINA_BIN)/regina.a
  20. REGINA_REXXINC = -Ih:/regina08 -DUSE_REGINA
  21.  
  22. #########################################################################
  23. # EMX compiler on OS/2
  24. #########################################################################
  25.  
  26. REXXLIB = $(REGINA_REXXLIBS)
  27. REXXINC =  $(REGINA_REXXINC)
  28.  
  29. ifeq ($(DEBUG),Y)
  30. CFLAGS    = -c -g -Wall -DEMXVIDEO -DMSDOS -DSTDC_HEADERS -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
  31. LDEBUG    = -g
  32. TRACE     = trace.o
  33. else
  34. CFLAGS    = -c -O -Wall -DEMXVIDEO -DMSDOS -DSTDC_HEADERS -DHAVE_PROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
  35. LDEBUG    = 
  36. TRACE     =
  37. endif
  38.  
  39. LDFLAGS   = $(LDEBUG)
  40.  
  41. CC        = gcc
  42. LD        = $(CC) $(LDEBUG) -o the *.o $(CURSLIB) $(REXXLIB) -lvideo
  43. MAN       = manext.exe
  44. MANLD     = link386 manext+getopt+g:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK:2 /PACKCODE /PACKDATA /ALIGN:4;
  45. #########################################################################
  46. #
  47. #
  48. # Object files
  49. #
  50. OBJ1A = box.o colour.o comm1.o comm2.o comm3.o comm4.o comm5.o
  51. OBJ1B = commset1.o commset2.o commsos.o cursor.o default.o
  52. OBJ1C = edit.o error.o execute.o linked.o column.o mouse.o
  53. OBJ1D = nonansi.o prefix.o reserved.o scroll.o show.o sort.o
  54. OBJ1E = memory.o target.o the.o util.o
  55. OBJ1 = $(OBJ1A) $(OBJ1B) $(OBJ1C) $(OBJ1D) $(OBJ1E)
  56. OBJ2 = commutil.o $(TRACE)
  57. OBJ3 = getch.o
  58. OBJ4 = query.o
  59. OBJ5 = fnmatch.o
  60. OBJ6 = directry.o file.o
  61. OBJ7 = rexx.o
  62. OBJ8 = 
  63. OBJOTH = $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
  64. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
  65.  
  66. COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
  67.     $(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c
  68.  
  69. APPENDIX = $(SRC)/appendix.1 $(SRC)/appendix.2 $(SRC)/appendix.3
  70. GLOSSARY = $(SRC)/glossary
  71.  
  72. all: the.exe dist
  73. #
  74. #########################################################################
  75. the.exe:    $(OBJS)
  76.     @echo $(OBJ1A) > the.rsp
  77.     @echo $(OBJ1B) >> the.rsp
  78.     @echo $(OBJ1C) >> the.rsp
  79.     @echo $(OBJ1D) >> the.rsp
  80.     @echo $(OBJ1E) >> the.rsp
  81.     @echo $(OBJOTH) >> the.rsp
  82.     $(LD)
  83.     emxbind the -acm
  84.     del the.rsp
  85. #########################################################################
  86. box.o:    $(SRC)/box.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  87.     $(CC) $(CFLAGS) $(SRC)/$*.c
  88. colour.o:    $(SRC)/colour.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  89.     $(CC) $(CFLAGS) $(SRC)/$*.c
  90. comm1.o:    $(SRC)/comm1.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  91.     $(CC) $(CFLAGS) $(SRC)/$*.c
  92. comm2.o:    $(SRC)/comm2.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  93.     $(CC) $(CFLAGS) $(SRC)/$*.c
  94. comm3.o:    $(SRC)/comm3.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  95.     $(CC) $(CFLAGS) $(SRC)/$*.c
  96. comm4.o:    $(SRC)/comm4.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  97.     $(CC) $(CFLAGS) $(SRC)/$*.c
  98. comm5.o:    $(SRC)/comm5.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  99.     $(CC) $(CFLAGS) $(SRC)/$*.c
  100. commset1.o:    $(SRC)/commset1.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  101.     $(CC) $(CFLAGS) $(SRC)/$*.c
  102. commset2.o:    $(SRC)/commset2.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  103.     $(CC) $(CFLAGS) $(SRC)/$*.c
  104. commsos.o:    $(SRC)/commsos.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  105.     $(CC) $(CFLAGS) $(SRC)/$*.c
  106. cursor.o:    $(SRC)/cursor.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  107.     $(CC) $(CFLAGS) $(SRC)/$*.c
  108. default.o:    $(SRC)/default.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  109.     $(CC) $(CFLAGS) $(SRC)/$*.c
  110. edit.o:    $(SRC)/edit.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  111.     $(CC) $(CFLAGS) $(SRC)/$*.c
  112. error.o:    $(SRC)/error.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  113.     $(CC) $(CFLAGS) $(SRC)/$*.c
  114. execute.o:    $(SRC)/execute.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  115.     $(CC) $(CFLAGS) $(SRC)/$*.c
  116. linked.o:    $(SRC)/linked.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  117.     $(CC) $(CFLAGS) $(SRC)/$*.c
  118. column.o:    $(SRC)/column.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  119.     $(CC) $(CFLAGS) $(SRC)/$*.c
  120. mouse.o:    $(SRC)/mouse.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  121.     $(CC) $(CFLAGS) $(SRC)/$*.c
  122. memory.o:    $(SRC)/memory.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  123.     $(CC) $(CFLAGS) $(SRC)/$*.c
  124. nonansi.o:    $(SRC)/nonansi.c $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  125.     $(CC) $(CFLAGS) $(SRC)/$*.c
  126. os2eas.o:    $(SRC)/os2eas.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.