Use a common mk file for all bins, install bins stripped.

--HG--
extra : convert_revision : dd739bbc9c67b099ef690533e02bb3f40aa2dc8a
This commit is contained in:
Juan RP
2009-02-16 18:03:03 +01:00
parent 1802997b0b
commit e59520869b
7 changed files with 40 additions and 117 deletions

View File

@@ -1,24 +1,5 @@
BIN = xbps-repo
OBJS = main.o util.o
TOPDIR = ../..
include $(TOPDIR)/vars.mk
OBJS = util.o main.o
BIN = xbps-repo
all: $(BIN)
.PHONY: all
$(BIN): $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
.PHONY: clean
clean: clean-bins clean-objs
clean-bins:
-rm -f $(BIN)
clean-objs:
-rm -f *.o
install: $(BIN)
install -d $(SBINDIR)
install -m 755 $(BIN) $(SBINDIR)
include $(TOPDIR)/prog.mk