865b06be5d
as foo.static. Updated README to note the new requirements for it. It will be used to reduce the number of dependencies when building packages in the chroot. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091015222234-360i67zychjge3nh
27 lines
501 B
Makefile
27 lines
501 B
Makefile
BIN_STATIC ?= $(BIN).static
|
|
OBJS ?= main.o
|
|
|
|
all: $(BIN) $(BIN_STATIC)
|
|
.PHONY: all
|
|
|
|
$(BIN_STATIC): $(OBJS)
|
|
$(CC) -static $^ $(LDFLAGS) $(STATIC_LIBS) -o $@
|
|
|
|
$(BIN): $(OBJS)
|
|
$(CC) $^ $(LDFLAGS) -o $@
|
|
|
|
.PHONY: clean
|
|
clean: clean-bins clean-objs
|
|
|
|
clean-bins:
|
|
-rm -f $(BIN) $(BIN_STATIC)
|
|
|
|
clean-objs:
|
|
-rm -f $(OBJS)
|
|
|
|
.PHONY: install
|
|
install: $(BIN) $(BIN_STATIC)
|
|
install -d $(SBINDIR)
|
|
install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR)
|
|
install $(INSTALL_STRIPPED) -m 755 $(BIN_STATIC) $(SBINDIR)
|