Don't link object files if not needed

This commit is contained in:
Nandor Kracser 2015-07-25 19:10:48 +02:00
parent a572a9eeae
commit 3633270de3
1 changed files with 4 additions and 2 deletions

View File

@ -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