61f0b09698
This implementation will be faster and resolv the dependency chain correctly taking into account indirect/direct deps and priority. --HG-- extra : convert_revision : cc4ec186f06f944fa8825b176344c4d612658f85
25 lines
314 B
Makefile
25 lines
314 B
Makefile
TOPDIR = ../..
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
OBJS = main.o
|
|
BIN = xbps-bin
|
|
|
|
all: $(BIN)
|
|
.PHONY: all
|
|
|
|
$(BIN): $(OBJS)
|
|
$(CC) -g $(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)
|