summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9413d1..b339e87 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ $(OUTDIR)/$(LIB): $(OBJ)
@mkdir -p $(OUTDIR)
$(AR) rcs $@ $(addprefix $(OUTDIR)/,$(OBJ))
+
%.o: %.c
@mkdir -p $(dir $(OUTDIR)/$@)
$(CC) $(CFLAGS) -c $< -o $(OUTDIR)/$@