eleni@0: src = $(wildcard src/*.c) eleni@0: obj = $(src:.c=.o) eleni@0: dep = $(obj:.o=.d) eleni@0: bin = dtms eleni@0: eleni@0: dbg = -g eleni@0: opt = -O0 eleni@0: eleni@0: CC = gcc eleni@0: INCLUDE = -I/usr/include eleni@0: CFLAGS = -pedantic -Wall -std=c99 -D_XOPEN_SOURCE=600 $(dbg) $(INCLUDE) eleni@0: LDFLAGS = -L/usr/lib $(libs) eleni@0: eleni@0: $(bin): $(obj) eleni@0: $(CC) -o $@ $(obj) $(LDFLAGS) eleni@0: eleni@0: -include $(dep) eleni@0: eleni@0: %.d: %.c eleni@0: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ eleni@0: eleni@0: .PHONY: clean eleni@0: clean: eleni@0: rm -f $(obj) $(bin) $(dep)