makefile 907 B

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