7740958643
- Remove lib/info.c that doesn't belong in the lib and add it into the bins. - Every binary now uses its own directory on bin/. This is in preparation for future changes for correct behaviour of the library and binaries. --HG-- extra : convert_revision : 880d16378bf940c4f5478de0362afe883cd5fd2c
24 lines
313 B
Makefile
24 lines
313 B
Makefile
TOPDIR = ../..
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
OBJS = main.o
|
|
BIN = xbps-pkgdb
|
|
|
|
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)
|