home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / vrac / ged2ht23.zip / MAKEFILE < prev    next >
Text File  |  1995-07-09  |  2KB  |  66 lines

  1. # Change the following to specify the desired output language
  2. # Currently only ENGLISH is supported.
  3. LANGUAGE= ENGLISH
  4.  
  5. # You must use an ANSI C compiler (like gcc)
  6. CC= gcc
  7. CFLAGS= -D${LANGUAGE} -g -DHAVE_FGETLN -DHAVE_STRDUP
  8.  
  9. SRCS=main.c read.c database.c index.c output.c tags.c nstrdup.c
  10. OBJS=main.o read.o database.o index.o output.o tags.o nstrdup.o
  11. HDRS=database.h index.h node.h output.h read.h tags.h
  12.  
  13. ged2html: ${OBJS}
  14.     ${CC} ${CFLAGS} -o ged2html ${OBJS}
  15.  
  16. main.o: main.c node.h read.h database.h output.h tags.h
  17.     ${CC} ${CFLAGS} -c main.c
  18.  
  19. read.o: read.c node.h read.h tags.h
  20.     ${CC} ${CFLAGS} -c read.c
  21.  
  22. database.o: database.c node.h database.h index.h tags.h
  23.     ${CC} ${CFLAGS} -c database.c
  24.  
  25. index.o: index.c index.h
  26.     ${CC} ${CFLAGS} -c index.c
  27.  
  28. output.o: output.c tags.h node.h database.h output.h
  29.     ${CC} ${CFLAGS} -c output.c
  30.  
  31. tags.o: tags.c tags.h
  32.     ${CC} ${CFLAGS} -c tags.c
  33.  
  34. nstrdup.o: nstrdup.c
  35.     ${CC} ${CFLAGS} -c nstrdup.c
  36.  
  37. clean:
  38.     rm  -f ged2html *.o *~ #*
  39.  
  40. indiv.tpl: ged2html
  41.     ./ged2html -t - > indiv.tpl
  42.  
  43. index.tpl: ged2html
  44.     ./ged2html -T - > index.tpl
  45.  
  46. surname.tpl: ged2html
  47.     ./ged2html -S - > surname.tpl
  48.  
  49. release: COPYRIGHT README OPTIONS MSDOS \
  50.         indiv.tpl index.tpl surname.tpl \
  51.         Makefile ${HDRS} ${SRCS} \
  52.         g2hdos.mak g2hwin.mak g2hdos.exe g2hwin.exe \
  53.         royal92.ged
  54.     tar cfz release.tar.gz \
  55.         COPYRIGHT README OPTIONS MSDOS \
  56.         indiv.tpl index.tpl surname.tpl \
  57.         Makefile ${HDRS} ${SRCS} \
  58.         g2hdos.mak g2hwin.mak g2hdos.exe g2hwin.exe \
  59.         royal92.ged
  60.     zip release.zip \
  61.         COPYRIGHT README OPTIONS MSDOS \
  62.         indiv.tpl index.tpl surname.tpl \
  63.         Makefile ${HDRS} ${SRCS} \
  64.         g2hdos.mak g2hwin.mak g2hdos.exe g2hwin.exe \
  65.         royal92.ged
  66.