home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vile-src.zip / vile-8.1 / makefile.emx < prev    next >
Makefile  |  1998-04-12  |  4KB  |  235 lines

  1. #
  2. # 'vile' and 'mktbls' makefile for EMX using GNU make (OS/2)
  3. # $Header: /usr/build/vile/vile/RCS/makefile.emx,v 1.2 1998/04/12 17:47:14 tom Exp $
  4. #
  5.  
  6. # Compiler flags:
  7. #
  8. CC = gcc
  9.  
  10. # Debug options:
  11. DEBUG_FLAGS = -Wall
  12.  
  13. # Production options:
  14. PROD_FLAGS  = -O
  15.  
  16. #
  17. CFLAGS = $(DEBUG_FLAGS) -I. -DHAVE_CONFIG_H
  18.  
  19. # File extension for object files:
  20. O = .o
  21.  
  22. # File extension for executable files:
  23. E = .exe
  24.  
  25. # What source file should be built for display support?  (.c suffix assumed)
  26. SCREEN = tcap
  27.  
  28. MKTBLS = mktbls$E
  29. TARGET = vile$E
  30.  
  31. BUILTHDRS = nebind.h neproto.h nefunc.h nemode.h nename.h nevars.h nefkeys.h nefsms.h
  32.  
  33. all:    $(TARGET)
  34.  
  35. clean:
  36.     -del *$O
  37.     -del config.h
  38.     -del *.bak
  39.     -del ne*.h
  40.     -del $(MKTBLS)
  41.  
  42. clobber:    clean
  43.     -del $(TARGET)
  44.  
  45. #        *List Macros*
  46.  
  47.  
  48. MKTBLS_DEPS =\
  49. mktbls$O
  50.  
  51. #        *Explicit Rules*
  52. $(MKTBLS): $(MKTBLS_DEPS)
  53.     $(CC) $(CFLAGS) $(MKTBLS_DEPS) -o $@
  54.  
  55. #        *Individual File Dependencies*
  56. mktbls$O: mktbls.c 
  57.  
  58. VILE_DEPS =  \
  59.  basic$O \
  60.  bind$O \
  61.  btree$O \
  62.  buffer$O \
  63.  crypt$O \
  64.  csrch$O \
  65.  display$O \
  66.  dumbterm$O \
  67.  eval$O \
  68.  exec$O \
  69.  externs$O \
  70.  fences$O \
  71.  file$O \
  72.  filec$O \
  73.  fileio$O \
  74.  finderr$O \
  75.  glob$O \
  76.  globals$O \
  77.  history$O \
  78.  input$O \
  79.  insert$O \
  80.  itbuff$O \
  81.  isearch$O \
  82.  line$O \
  83.  map$O \
  84.  modes$O \
  85.  msgs$O \
  86.  npopen$O \
  87.  oneliner$O \
  88.  opers$O \
  89.  path$O \
  90.  random$O \
  91.  regexp$O \
  92.  region$O \
  93.  search$O \
  94.  select$O \
  95.  spawn$O \
  96.  tags$O \
  97.  tbuff$O \
  98.  termio$O \
  99.  undo$O \
  100.  version$O \
  101.  window$O \
  102.  word$O \
  103.  wordmov$O \
  104.  main$O \
  105.  $(SCREEN)$O
  106.  
  107. #        *Explicit Rules*
  108.  
  109. version:
  110.     @-del version$O
  111.  
  112. $(TARGET): version $(VILE_DEPS)
  113.     $(CC) $(CFLAGS) $(VILE_DEPS) -o $@ -ltermcap
  114.  
  115. FILT_DEPS = c-filt$O
  116.  
  117. vile-c-filt$E : $(FILT_DEPS)
  118.     $(CC) $(CFLAGS) -o $@ $(FILT_DEPS)
  119.  
  120. #        *Individual File Dependencies*
  121. config.h:    config.emx
  122.     copy config.emx config.h
  123.  
  124. VILE_CFG=    config.h estruct.h nefkeys.h nemode.h edef.h proto.h
  125.  
  126. basic$O:    $(VILE_CFG) basic.c 
  127.  
  128. bind$O:        $(VILE_CFG) bind.c    nefunc.h    btree.h
  129.  
  130. btree$O:    $(VILE_CFG) btree.c     btree.h
  131.  
  132. buffer$O:    $(VILE_CFG) buffer.c 
  133.  
  134. crypt$O:    $(VILE_CFG) crypt.c 
  135.  
  136. csrch$O:    $(VILE_CFG) csrch.c 
  137.  
  138. display$O:    $(VILE_CFG) display.c 
  139.  
  140. dumbterm$O:    $(VILE_CFG) dumbterm.c 
  141.  
  142. eval$O:        $(VILE_CFG) eval.c    nevars.h
  143.  
  144. exec$O:        $(VILE_CFG) exec.c     nefunc.h
  145.  
  146. externs$O:    $(VILE_CFG) externs.c    nebind.h nename.h nefunc.h
  147.  
  148. fences$O:    $(VILE_CFG) fences.c 
  149.  
  150. file$O:        $(VILE_CFG) file.c 
  151.  
  152. filec$O:    $(VILE_CFG) filec.c    dirstuff.h
  153.  
  154. fileio$O:    $(VILE_CFG) fileio.c 
  155.  
  156. finderr$O:    $(VILE_CFG) finderr.c 
  157.  
  158. glob$O:        $(VILE_CFG) glob.c    dirstuff.h
  159.  
  160. globals$O:    $(VILE_CFG) globals.c     nefunc.h
  161.  
  162. history$O:    $(VILE_CFG) history.c 
  163.  
  164. input$O:    $(VILE_CFG) input.c 
  165.  
  166. insert$O:    $(VILE_CFG) insert.c 
  167.  
  168. isearch$O:    $(VILE_CFG) isearch.c 
  169.  
  170. itbuff$O:    $(VILE_CFG) itbuff.c 
  171.  
  172. line$O:        $(VILE_CFG) line.c 
  173.  
  174. map$O:        $(VILE_CFG) map.c 
  175.  
  176. modes$O:    $(VILE_CFG) modes.c 
  177.  
  178. msgs$O:        $(VILE_CFG) msgs.c 
  179.  
  180. npopen$O:    $(VILE_CFG) npopen.c 
  181.  
  182. oneliner$O:    $(VILE_CFG) oneliner.c 
  183.  
  184. opers$O:    $(VILE_CFG) opers.c     nefunc.h
  185.  
  186. path$O:        $(VILE_CFG) path.c    dirstuff.h
  187.  
  188. random$O:    $(VILE_CFG) random.c    nefunc.h
  189.  
  190. regexp$O:    $(VILE_CFG) regexp.c 
  191.  
  192. region$O:    $(VILE_CFG) region.c 
  193.  
  194. search$O:    $(VILE_CFG) search.c 
  195.  
  196. select$O:    $(VILE_CFG) select.c     nefunc.h
  197.  
  198. spawn$O:    $(VILE_CFG) spawn.c     nefunc.h
  199.  
  200. tags$O:        $(VILE_CFG) tags.c     btree.h
  201.  
  202. tbuff$O:    $(VILE_CFG) tbuff.c 
  203.  
  204. termio$O:    $(VILE_CFG) termio.c     nefunc.h
  205.  
  206. trace$O:    $(VILE_CFG) trace.c
  207.  
  208. undo$O:        $(VILE_CFG) undo.c 
  209.  
  210. version$O:    $(VILE_CFG) version.c     patchlev.h
  211.  
  212. window$O:    $(VILE_CFG) window.c 
  213.  
  214. word$O:        $(VILE_CFG) word.c     nefunc.h
  215.  
  216. wordmov$O:    $(VILE_CFG) wordmov.c 
  217.  
  218. main$O:        $(VILE_CFG) main.c    nevars.h
  219.  
  220. $(SCREEN)$O:    $(VILE_CFG) $(SCREEN).c 
  221.  
  222. nebind.h \
  223. nefunc.h \
  224. nefkeys.h \
  225. nename.h :    cmdtbl $(MKTBLS)
  226.     @echo making $@
  227.     $(MKTBLS) cmdtbl
  228.  
  229. nevars.h \
  230. nefsms.h \
  231. nemode.h:    modetbl $(MKTBLS)
  232.     @echo making $@
  233.     $(MKTBLS) modetbl
  234.