summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4ba7959..640725b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,17 @@ SRC=$(shell find src -name "*.c")
OBJ=$(SRC:.c=.o)
LIB=libtinyff.a
+OUTDIR=dist
all: $(LIB)
$(LIB): $(OBJ)
- $(AR) rcs $(LIB) $(OBJ)
+ $(AR) rcs $(OUTDIR)/$(LIB) $(OUTDIR)/$(OBJ)
%.o: %.c
- $(CC) $(CFLAGS) -c $< -o $@
+ $(CC) $(CFLAGS) -c $< -o $(OUTDIR)/$@
clean:
- rm -f $(OBJ) $(LIB)
+ rm -f $(OUTDIR)/$(OBJ) $(LIB)
.PHONY: all clean