summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 466dcd1..4ead32c 100644
--- a/Makefile
+++ b/Makefile
@@ -232,7 +232,10 @@ tests/xtimegm: xtime.o tests/xtimegm.o
$(BIN_GOALS):
+$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@
-%.o: %.c .flags
+%.o: src/%.c .flags
+ $(CC) $(ALL_CFLAGS) -c $< -o $@
+
+tests/%.o: tests/%.c .flags
$(CC) $(ALL_CFLAGS) -c $< -o $@
# Need a rule for .flags to convince make to apply the above pattern rule if