2008-12-21 22:57:02 +00:00
|
|
|
include ../vars.mk
|
|
|
|
|
|
|
|
EXTRA_CFLAGS = -funroll-all-loops -ftree-loop-linear
|
2008-12-23 11:28:21 +00:00
|
|
|
LDFLAGS += -L../lib -L$(PREFIX)/lib -lxbps
|
2008-12-21 22:57:02 +00:00
|
|
|
|
|
|
|
BINS = xbps-bin xbps-cmpver xbps-digest xbps-pkgdb
|
|
|
|
|
|
|
|
all: $(BINS)
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
xbps-bin: xbps-bin.o
|
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
xbps-cmpver: xbps-cmpver.o
|
2008-12-23 11:28:21 +00:00
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
2008-12-21 22:57:02 +00:00
|
|
|
|
|
|
|
xbps-digest: xbps-digest.o
|
|
|
|
$(CC) $(EXTRA_CFLAGS) $(LDFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
xbps-pkgdb: xbps-pkgdb.o
|
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: clean-bins clean-objs
|
|
|
|
|
|
|
|
clean-bins:
|
|
|
|
-rm -f $(BINS)
|
|
|
|
|
|
|
|
clean-objs:
|
|
|
|
-rm -f *.o
|
|
|
|
|
|
|
|
install: $(BINS)
|
2008-12-22 01:14:40 +00:00
|
|
|
install -d $(SBINDIR)
|
|
|
|
install -m 755 $(BINS) $(SBINDIR)
|
2008-12-22 01:26:28 +00:00
|
|
|
install -m 755 xbps-src.sh $(SBINDIR)/xbps-src
|
2009-01-14 15:50:30 +00:00
|
|
|
sed -i -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" $(SBINDIR)/xbps-src
|
|
|
|
|