Makefile (298B)
1 .POSIX: 2 3 TARG =\ 4 main\ 5 repl 6 7 OBJ =\ 8 bus\ 9 cell\ 10 mem\ 11 util\ 12 13 HEAD =\ 14 bus\ 15 cell\ 16 util\ 17 mem 18 19 OBJS=${OBJ:=.o} 20 21 all: repl main 22 23 main: ${OBJS} main.o 24 cc -o $@ ${OBJS} main.o 25 26 repl: ${OBJS} repl.o 27 cc -o $@ ${OBJS} repl.o 28 29 .c.o: 30 cc -o $@ -c $< 31 32 clean: 33 rm -rf ${OBJS} main repl main.o repl.o 34