home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / wp_dtp / detex24.lha / Makefile < prev    next >
Makefile  |  1993-01-02  |  1KB  |  82 lines

  1. #    Makefile for detex and delatex
  2. #
  3. #    Daniel Trinkle
  4. #    Computer Science Department
  5. #    Purdue University
  6.  
  7. #
  8. # Amiga port for the SAS/C version 6.1 compiler by Kari Sutela
  9. #
  10.  
  11. #
  12. # Detex is a program to remove TeX and LaTeX constructs from text source.
  13.  
  14. # Installation directory
  15. #
  16. DESTDIR    = sys:bin
  17.  
  18. # Compile time flags, just uncomment the necessary lines
  19. #
  20. DEFS    = DEFINE MAXPATHLEN=512 DEFINE NOFILE=10
  21. #
  22. # Add -traditional for GNU cc on ISC 386/ix system and possibly others
  23. # (reported by pinard@iro.umontreal.ca)
  24. #
  25. #DEFS    = ${DEFS} -traditional
  26. #
  27. # Add -DUSG for the SysV string manipulation routines
  28. #
  29. #DEFS    = ${DEFS} -DUSG
  30. #
  31. # Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h
  32. #
  33. #DEFS    = ${DEFS} -DMAXPATHLEN=1024
  34. #
  35. # Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration
  36. # in detex.l (reported by pinard@iro.umontreal.ca)
  37. #
  38. #DEFS    = ${DEFS} -DNO_MALLOC_DECL
  39. #
  40. CFLAGS    = ${DEFS}
  41. LFLAGS  = -8 -L
  42.  
  43. # Program names
  44. #
  45. PROGS    = detex
  46.  
  47. # Header files
  48. #
  49. HDR    = detex.h
  50.  
  51. # Sources
  52. #
  53. SRC    = detex.l
  54.  
  55. # Objects for various programs
  56. #
  57. D_OBJ    = detex.c
  58.  
  59. all:    ${PROGS}
  60.  
  61. detex: ${D_OBJ}
  62.     ${CC} ${CFLAGS} ${D_OBJ}
  63.  
  64. detex.c: detex.l
  65.     flex ${LFLAGS} detex.l
  66. # This one requires WShell
  67.     "if exists('detex.c') then 'delete detex.c';"
  68.     rename lex.yy.c detex.c
  69.  
  70. distclean:
  71.     delete \#?.(info|lnk)
  72.  
  73. clean:
  74.     delete \#?.(info|o|lnk) ${PROGS}
  75.  
  76. realclean:
  77.     delete \#?.(info|o|lnk|c) ${PROGS}
  78.  
  79. # Dependencies
  80. #
  81. detex.c: detex.h detex_protos.h detex.l
  82.