Makefile 280 B

12345678910111213141516171819202122
  1. CFLAGS = -g -Wall -Wextra $(OFLAGS) $(XFLAGS)
  2. OFLAGS = -DDEBUG
  3. PACKCC=./packcc
  4. all : gml
  5. # option --debug to packcc
  6. gml: gml.peg
  7. $(PACKCC) --debug gml.peg
  8. $(CC) $(CFLAGS) gml.c -o gml
  9. cat t.gml |./gml
  10. clean :
  11. rm -f *~ *.o
  12. rm -v -f gml
  13. rm -v -f gml.c
  14. rm -v -f gml.h