home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / MAKEFILE.OS2 < prev    next >
Text File  |  1993-01-17  |  1KB  |  46 lines

  1. SRC = align.c alloc.c arith.c box.c boxlist.c chr.c \
  2.     cmd.c cond.c def.c dvi.c error.c eval.c expand.c \
  3.     fileio.c hyph.c math.c mathlist.c mlst-hlst.c \
  4.     pack.c page.c par.c print.c \
  5.     scan.c str.c sym.c tex.c texext.c \
  6.     tfm.c tok.c toklist.c
  7.  
  8. OBJ = align.o alloc.o arith.o box.o boxlist.o chr.o \
  9.     cmd.o cond.o def.o dvi.o error.o eval.o expand.o \
  10.     fileio.o hyph.o math.o mathlist.o mlst-hlst.o \
  11.     pack.o page.o par.o print.o \
  12.     scan.o str.o sym.o tex.o texext.o \
  13.     tfm.o tok.o toklist.o
  14.  
  15. CFLAGS = -g -traditional -O2 -DOS2
  16. LDFLAGS = -g
  17.  
  18. EMXL = /emx/bin/emxl.exe
  19.  
  20. initex.exe: ${OBJ}
  21.     ${CC} -o $@ ${LDFLAGS} ${OBJ}
  22.  
  23. tex.exe: initex.exe
  24.     -.\initex plain \dump
  25.     emxbind -x initex.exe a.out
  26.     -strip a.out
  27.     emxbind -ccore $(EMXL) a.out tex.exe
  28. #    undump tex initex
  29.     rm core a.out
  30.  
  31. latex.exe: initex.exe
  32.     -.\initex lplain \dump
  33.     emxbind -x initex.exe a.out
  34.     -strip a.out
  35.     emxbind -ccore $(EMXL) a.out latex.exe
  36. #    undump latex initex
  37.     rm core a.out
  38.  
  39. all: initex.exe tex.exe latex.exe
  40.  
  41. clean::
  42.     -rm -f *.o errs
  43.  
  44. veryclean::clean
  45.     -rm -f initex tex latex *.log *.dvi *.aux
  46.