Rework Makefile files, fully parallel builds are now possible.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100118201826-q2zsyooicxi7lcfm
This commit is contained in:
Juan RP
2010-01-18 21:18:26 +01:00
parent e11a1fe651
commit 61d2ea8896
4 changed files with 41 additions and 55 deletions

View File

@@ -31,19 +31,19 @@ ifdef MAN
endif
%.o: %.c
@echo " [CC] $@"
@echo " [CC]\t\t$@"
@$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
$(MAN):
@echo " [ASCIIDOC] $(MAN)"
@echo " [ASCIIDOC]\t$(MAN)"
@a2x -f manpage $(MAN).txt
$(BIN).static: $(OBJS)
@echo " [CCLD] $@"
@echo " [CCLD]\t\t$@"
@$(CC) -static $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
$(STATIC_LIBS) -o $@ >/dev/null 2>&1
$(BIN): $(OBJS)
@echo " [CCLD] $@"
@echo " [CCLD]\t\t$@"
@$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -pie -o $@