Use a common mk file for all bins, install bins stripped.
--HG-- extra : convert_revision : dd739bbc9c67b099ef690533e02bb3f40aa2dc8a
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user