home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PERL4036.ZIP / os2 / Makefile.a2p < prev    next >
Makefile  |  1993-02-26  |  638b  |  38 lines

  1. #
  2. # Makefile for compiling awk2perl under OS/2
  3. #
  4. # Needs emx 0.8e (gcc 2.2.2) or newer
  5. #
  6.  
  7. CC    = gcc -O -funsigned-char
  8. CFLAGS    = -DDEBUGGING
  9. LDFLAGS    = -s
  10. LIBS     = 
  11. O    = .o
  12.  
  13. YACC    = bison
  14. YFLAGS    = 
  15.  
  16. DEF     = ../os2/perl.def
  17. OBJ    = a2p$O hash$O str$O util$O walk$O
  18.  
  19. .SUFFIXES: .c $O
  20.  
  21. .c$O:
  22.     $(CC) -c $(CFLAGS) $<
  23.  
  24. all: ../a2p.exe
  25.  
  26. ../a2p.exe: $(OBJ)
  27.     $(CC) $(LDFLAGS) -o $@ $(DEF) $(OBJ) $(LIBS)
  28.  
  29. a2p.c:     a2p.y
  30.     @echo "Expect 231 shift/reduce conflicts..."
  31.     $(YACC) $(YFLAGS) -o $*.c $*.y
  32.  
  33. a2p$O:     a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h \
  34.     ../config.h str.h hash.h
  35.  
  36. clean:
  37.     rm -f a2p.exe *$O a2p.c
  38.