Reorganize the Makefiles so that parallel build is possible.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118090545-wpvgwmnqyh77sgz8
This commit is contained in:
Juan RP
2009-11-18 10:05:45 +01:00
parent f847401c4f
commit e8d947e15b
4 changed files with 26 additions and 26 deletions

View File

@@ -1,11 +1,12 @@
OBJS ?= main.o
MAN ?= $(BIN).8
LDFLAGS += -lxbps
ifdef STATIC
all: $(BIN).static
MAN =
else
LDFLAGS += -lxbps
all: $(BIN) $(MAN)
endif
@@ -15,10 +16,11 @@ $(MAN):
a2x -f manpage $(MAN).txt
$(BIN).static: $(OBJS)
$(CC) $^ -static -lxbps $(LDFLAGS) -o $@
$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
$(STATIC_LIBS) -o $@
$(BIN): $(OBJS)
$(CC) $^ $(LDFLAGS) -o $@
$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
.PHONY: clean
clean: