commit aa1f475bab32a2dc1ad27da757fba73a0c6c2354
parent a572a9eeaeee753f0277924b6ff7d32c1e5605ff
Author: Joris Vink <joris@coders.se>
Date: Mon, 27 Jul 2015 18:10:22 +0200
Merge pull request #74 from bonifaido/master
Don't link object files if not needed
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -58,9 +58,11 @@ else
S_SRC+=src/bsd.c
endif
-all: $(S_OBJS)
+$(KORE): $(S_OBJS)
$(CC) $(S_OBJS) $(LDFLAGS) -o $(KORE)
+all: $(KORE)
+
install:
mkdir -p $(INCLUDE_DIR)
mkdir -p $(INSTALL_DIR)
@@ -78,4 +80,4 @@ clean:
find . -type f -name \*.o -exec rm {} \;
rm -f $(KORE)
-.PHONY: clean
+.PHONY: all clean