2b24128059
--HG-- extra : convert_revision : 24b2d30a94c95b22b1c524203cf578da03314335
25 lines
359 B
Makefile
25 lines
359 B
Makefile
TOPDIR = ../..
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
OBJS = main.o ../xbps-repo/util.o
|
|
BIN = xbps-bin
|
|
|
|
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
|
|
-rm -f ../xbps-repo/util.o
|
|
|
|
install: $(BIN)
|
|
install -d $(SBINDIR)
|
|
install -m 755 $(BIN) $(SBINDIR)
|