home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / gle / gle / makefile < prev    next >
Makefile  |  1992-11-29  |  3KB  |  107 lines

  1. include config.i
  2.  
  3. GLEOBJS = \
  4.     gle.o drawit.o pass.o token.o polish.o fn.o $(MEMMOVE) \
  5.     var.o eval.o general.o \
  6.     run.o sub.o font.o core.o name.o keyword.o axis.o graph.o  \
  7.     b_tab.o b_text.o fitbez.o fitcf.o begin.o key.o mychar.o graph2.o \
  8.     memory.o gprint.o edt.o menu.o \
  9.     curve.o tex.o wprintf_do.o \
  10.     unix_extra.o varargs.o unixscr.o unixinkey.o
  11.  
  12. PSOBJS = d_ps.o 
  13. VTOBJS = d_curses.o easydev.o 
  14. TEKOBJS = d_tek.o easydev.o 
  15. XOBJS = d_x.o 
  16. REGISOBJS = d_regis.o 
  17. HPGLOBJS = d_hpgl.o easydev.o 
  18. DVIOBJS  = d_bmp.o easydev.o
  19.  
  20. # rules to build gle executables
  21.  
  22. # varargs didn't work  with GCC on DEC-5400 Mips, so uses native compiler
  23. gleparts: warning gle surface gle_ps gle_vt fbuild makefmt dofonts \
  24.     inittex.ini gle_regis gle_hpgl $(XGLE) gle_tek gle_dvi \
  25.     gle_dviprint graph.idx
  26.     echo
  27.  
  28. warning:
  29.     more makewarn.h
  30.  
  31. gle: glecmd.c
  32.     $(CC) -DGLEBINS=\"$(GLE_BINS)\" glecmd.c -o gle $(CFLAGS) $(LIBS)
  33.  
  34. makeidx: makeidx.c
  35.     $(CC) makeidx.c -o makeidx $(CFLAGS) $(LIBS)
  36.  
  37. graph.idx: graph.hlp makeidx
  38.     makeidx
  39.  
  40. surface: surfcmd.c
  41.     $(CC) -DGLEBINS=\"$(GLE_BINS)\" surfcmd.c -o surface $(CFLAGS) $(LIBS)
  42.  
  43. #-ysymname to trace a symbol
  44. gle_ps: $(PSOBJS) $(GLEOBJS)
  45.     $(CC) -o gle_ps $(CFLAGS) $(GLEOBJS) $(PSOBJS) $(LIBS)
  46.  
  47. # if this rule is failing, make sure you have define GLE_TOP
  48. # and also delete any old copies of INITTEX.INI
  49. inittex.ini: init.tex
  50.     ./gle_ps init.tex
  51.  
  52. gle_vt: $(VTOBJS) $(GLEOBJS)
  53.     $(CC) -o gle_vt $(CFLAGS) $(GLEOBJS) $(VTOBJS) $(LIBS)
  54.  
  55. gle_hpgl: $(HPGLOBJS) $(GLEOBJS)
  56.     $(CC) -o gle_hpgl $(CFLAGS) $(GLEOBJS) $(HPGLOBJS) $(LIBS)
  57.  
  58. gle_tek: $(TEKOBJS) $(GLEOBJS)
  59.     $(CC) -o gle_tek $(CFLAGS) $(GLEOBJS) $(TEKOBJS) $(LIBS)
  60.  
  61. gle_dvi: $(DVIOBJS) $(GLEOBJS)
  62.     $(CC) -o gle_dvi $(CFLAGS) $(GLEOBJS) $(DVIOBJS) $(LIBS)
  63.  
  64. gle_x: $(XOBJS) $(GLEOBJS)
  65.     $(CC) -o gle_x $(CFLAGS) $(GLEOBJS) $(XOBJS) $(XLIBS)
  66.  
  67. gle_regis: $(REGISOBJS) $(GLEOBJS)
  68.     $(CC) -o gle_regis  $(CFLAGS) $(GLEOBJS) $(REGISOBJS) $(LIBS)
  69.  
  70. gle_dviprint: dvitobit.o bmp.o bmp.h dvivt.o 
  71.     $(CC) -o gle_dviprint $(CFLAGS) dvitobit.o bmp.o dvivt.o -lm -lc
  72.  
  73. dofonts:
  74.     cd font; $(MAKE); cd ..
  75.  
  76. doutils:
  77.     cd util/fitls; $(MAKE); cd ../../
  78.     cd util/fitz; $(MAKE); cd ../../
  79.     cd util/manip; $(MAKE); cd ../../
  80.     cd util/letz; $(MAKE); cd ../../
  81.     cd util/contour; $(MAKE); cd ../../
  82.     cd util/surf; $(MAKE); cd ../../
  83.  
  84. makefmt: makefmt.o parseafm.o parseafm.h
  85.     $(CC) -o makefmt makefmt.o parseafm.o -lm -lc
  86.  
  87. fbuild: fbuild.o token.o
  88.     $(CC) -o fbuild fbuild.o token.o -lm -lc
  89.  
  90. gle.o: gle.c glepath.h all.h
  91.     $(CC) -c -DGLEPATH=\"$(GLE_PATH)/\" $(CFLAGS) gle.c
  92.  
  93. varargs.o: varargs.c
  94.     cc -w -c varargs.c
  95.  
  96. $(GLEOBJS): \
  97.     all.h axis.h begin.h color.h core.h edt.h \
  98.     font.h glepro.h global.h graph.h justify.h key.h \
  99.     mydev.h mygraph.h tex.h 
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.