home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gawk-2.15.6-base.tgz / gawk-2.15.6-base.tar / fsf / gawk / pc / Makefile.emx < prev    next >
Makefile  |  1993-12-19  |  1KB  |  54 lines

  1. # Makefile for gawk (GNU awk) using EMX/gcc 
  2. #
  3. # This makefile is designed to work within the limits of the DOS
  4. # command-line length. OS/2 users can use Makefile.os2, which
  5. # has additional targets.
  6. #
  7.  
  8.  
  9. CC=gcc -O -s
  10. O=.o
  11. CFLAGS=-DOS2 -DMSDOS
  12.  
  13. LFLAGS=
  14. LFLAGS2=gawk-32.def
  15.  
  16. #BIND=emxbind -u /emx/bin/emx.exe $@
  17. BIND=
  18.  
  19. OBJ2=getid$O popen$O
  20.  
  21. AWKOBJS = main$O eval$O builtin$O msg$O iop$O io$O field$O array$O \
  22.     node$O version$O missing$O re$O
  23. ALLOBJS = $(AWKOBJS) awktab$O
  24. GNUOBJS= getopt$O getopt1$O regex$O dfa$O
  25.  
  26. .SUFFIXES: $O .c .y
  27.  
  28. .c$O:
  29.     $(CC) $(CFLAGS) -DGAWK -DHAVE_CONFIG_H -c $<
  30.  
  31. all: gawk.exe
  32.  
  33. gawk.exe: $(ALLOBJS) $(GNUOBJS) $(OBJ2)
  34.     $(CC) -o $@ $(LFLAGS) @names2.lnk $(LFLAGS2)
  35.     $(BIND)
  36.  
  37. $(AWKOBJS): awk.h config.h
  38. dfa$O:    awk.h config.h dfa.h
  39. regex$O: awk.h config.h regex.h
  40. main$O: patchlev.h
  41. awktab$O: awk.h awktab.c
  42.  
  43. awktab.c: awk.y
  44.     bison -o $@ awk.y
  45.  
  46. clean:
  47.     rm -f *.o core awk.output gmon.out make.out y.output
  48.  
  49. .PHONY: test
  50. test:
  51.     @echo Both dmake and GNU make require modifications to test/Makefile,
  52.     @echo but here we go...
  53.     cd test && $(MAKE) -k
  54.