diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -64,14 +64,15 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \ .PHONY: all all: bin/mds + bin/mds: obj/mds.o mkdir -p bin gcc $(C_FLAGS) -o $@ $^ -obj/mds.o: src/mds.c +obj/%.o: src/%.c src/*.h mkdir -p obj - gcc $(C_FLAGS) -c -o $@ $^ + gcc $(C_FLAGS) -c -o $@ $< |