home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 32 / hot34.iso / ficheros / DTOOL / CPP2HTML.ZIP / CPP2HTML / MAKEFILE < prev    next >
Text File  |  1998-04-04  |  1KB  |  45 lines

  1. FLAVOR =
  2.  
  3. CC = gcc
  4. CFLAGS = -g $(FLAVOR) -L .
  5. LEX = flex
  6. # If you on SYSV uncomment the following line 
  7. LIBS = -lfl
  8. # If you have no libfl.a library supplied with flex , use libl.a
  9. #LIBS = -ll
  10.  
  11. .PHONY: all C_PLUSPLUS ANSI_C USE_NAME
  12.  
  13. all:    cpp2html
  14.  
  15. C_PLUSPLUS:
  16.     make cpp2latex FLAVOR=-DC_PLUSPLUS
  17.  
  18. ANSI_C:
  19.     make c2latex FLAVOR=-DANSI_C
  20.  
  21. USE_NAME:
  22.     make cpp2latex FLAVOR=-DUSE_NAME
  23.  
  24. c2latex.c: cpp2latex.c
  25.     -ren cpp2latex.c c2latex.c
  26.  
  27. cpp2latex:    cpp2latex.o getopt1.o getopt.o version.o
  28.     $(CC) $(CFLAGS) -o cpp2latex.exe cpp2latex.o getopt1.o getopt.o version.o $(LIBS)
  29.  
  30. c2latex:    c2latex.o getopt1.o getopt.o version.o
  31.     $(CC) $(CFLAGS) -o c2latex.exe c2latex.o getopt1.o getopt.o version.o $(LIBS)
  32.  
  33. cpp2html.c : lex.yy.c 
  34.     -ren lexyy.c cpp2html.c
  35.  
  36. lex.yy.c : cpp2html.l
  37.     flex cpp2html.l
  38. cpp2html : cpp2html.o getopt1.o getopt.o version.o
  39.     $(CC) $(CFLAGS) -o cpp2html.exe cpp2html.o getopt1.o getopt.o version.o $(LIBS)
  40.  
  41. clean:
  42.     -del *.o *.exe c2latex.c cpp2html.c cpp2latex.c
  43.  
  44.  
  45.