CC = gcc OPTS = $(addprefix -,Wall std=c99 fomit-frame-pointer O6) LIBS = $(addprefix -l,Judy z) DEPJ = highway.judy.c PROGS = autobahn highway gen high.judy high.judy.C high.judy.T high.judy.TC high.judy.P high.judy.PC high.judy.PT high.judy.PTC high.judy.I high.judy.IC high.judy.IT high.judy.ITC high.judy.IP high.judy.IPC high.judy.IPT high.judy.IPTC ############################################################################### .PHONY: default default: high.judy high.judy.IPT ############################################################################### high.judy: $(DEPJ) $(CC) $(OPTS) $^ -o $@ $(LIBS) high.judy.C: $(DEPJ) $(CC) -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.T: $(DEPJ) $(CC) -DTIMED $(OPTS) $^ -o $@ $(LIBS) high.judy.TC: $(DEPJ) $(CC) -DTIMED -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.P: $(DEPJ) $(CC) -DPROGRESS $(OPTS) $^ -o $@ $(LIBS) high.judy.PC: $(DEPJ) $(CC) -DPROGRESS -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.PT: $(DEPJ) $(CC) -DPROGRESS -DTIMED $(OPTS) $^ -o $@ $(LIBS) high.judy.PTC: $(DEPJ) $(CC) -DPROGRESS -DTIMED -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.I: $(DEPJ) $(CC) -DINTERRUPT $(OPTS) $^ -o $@ $(LIBS) high.judy.IC: $(DEPJ) $(CC) -DINTERRUPT -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.IT: $(DEPJ) $(CC) -DINTERRUPT -DTIMED $(OPTS) $^ -o $@ $(LIBS) high.judy.ITC: $(DEPJ) $(CC) -DINTERRUPT -DTIMED -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.IP: $(DEPJ) $(CC) -DINTERRUPT -DPROGRESS $(OPTS) $^ -o $@ $(LIBS) high.judy.IPC: $(DEPJ) $(CC) -DINTERRUPT -DPROGRESS -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) high.judy.IPT: $(DEPJ) $(CC) -DINTERRUPT -DPROGRESS -DTIMED $(OPTS) $^ -o $@ $(LIBS) high.judy.IPTC: $(DEPJ) $(CC) -DINTERRUPT -DPROGRESS -DTIMED -DCHECK_MAX $(OPTS) $^ -o $@ $(LIBS) ############################################################################### %: %.c $(CC) $(OPTS) $^ -o $@ ############################################################################### .PHONY: bakclean clean bakclean: rm -f *~ clean: bakclean rm -f $(PROGS