makefile 964 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. CC = cc # the usual situation
  2. CFLAGS = # the usual situation
  3. CC = lcc # you will probably want to remove this
  4. CFLAGS = -g -N -I/usr/include/lcc -I/usr/include # and this
  5. YFLAGS = -d
  6. OFILES = picl.o main.o print.o misc.o symtab.o blockgen.o boxgen.o \
  7. circgen.o arcgen.o linegen.o movegen.o textgen.o \
  8. input.o for.o pltroff.o $(ALLOC)
  9. CFILES = main.c print.c misc.c symtab.c blockgen.c boxgen.c circgen.c \
  10. arcgen.c linegen.c movegen.c textgen.c \
  11. input.c for.c pltroff.c
  12. SRCFILES = picy.y picl.l pic.h $(CFILES) makefile FIXES README PS-PEmacros
  13. pic: picy.o $(OFILES) pic.h
  14. $(CC) $(CFLAGS) picy.o $(OFILES) -lm
  15. $(OFILES): pic.h prevy.tab.h
  16. picy.o: pic.h
  17. prevy.tab.h: y.tab.h
  18. -cmp -s y.tab.h prevy.tab.h || cp y.tab.h prevy.tab.h
  19. bundle:
  20. @bundle $(SRCFILES)
  21. bowell: $(SRCFILES) pictest.a
  22. push bowell $? /usr/src/cmd/pic
  23. touch bowell
  24. clean:
  25. rm *.o a.out *y.tab.h
  26. install:
  27. cp a.out /usr/bin/pic
  28. strip /usr/bin/pic