Makefile
1 #include "config.mk" 2 3 all: twn 4 5 twn: config.mk config.h main.c term.o subterm.o window.o 6 $(CC) main.c term.o window.o -o twn 7 8 window.o: config.h window.c window.h 9 $(CC) window.c -c -o window.o 10 11 subterm.o: config.h subterm.c subterm.h 12 $(CC) subterm.c -c -o subterm.o 13 14 term.o: config.h term.c term.h 15 $(CC) term.c -c -o term.o 16 17 clean: 18 rm -f window.o term.o twn 19 20 install: twn 21 cp -f twn $(PREFIX)/bin 22 23 PHONEY: install