25 lines
314 B
Makefile
25 lines
314 B
Makefile
|
TOPDIR = ../..
|
||
|
include $(TOPDIR)/vars.mk
|
||
|
|
||
|
OBJS = main.o
|
||
|
BIN = xbps-cmpver
|
||
|
|
||
|
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)
|