Commit 2c4a8eef authored by jkvis's avatar jkvis

Added header deps

parent 23e6ec23
......@@ -4,14 +4,17 @@ CPPFLAGS = -DNDEBUG -Wall -Wextra
TARGETS = sais-lite-lcp
SOURCES = sais-lite-lcp/sais.c
OBJECTS = $(SOURCES:.c=.o)
DEPS = $(OBJECTS:.o=.d)
.PHONY: clean
-include $(DEPS)
lib$(TARGETS:./%=%).a: $(OBJECTS)
ar rcs $@ $<
clean:
rm -f $(OBJECTS) lib$(TARGETS:./%=%).a
rm -f $(OBJECTS) $(DEPS) lib$(TARGETS:./%=%).a
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
$(CC) $(CFLAGS) $(CPPFLAGS) -MMD -o $@ -c $<
Subproject commit 0b537397d30f4a341ef4da1fdeecf7b21394d3bb
Subproject commit 5979cbfba2387aef06e30f5e0c29103d79d3e83d
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment