vp-build/bin/Makefile
Juan RP bc9bf83f0a xbps-src: update PATH with default PREFIX set by make.
--HG--
extra : convert_revision : 235ae5d28d075ffda87734224a4edf724799e2f1
2009-01-14 16:50:30 +01:00

38 lines
716 B
Makefile

include ../vars.mk
EXTRA_CFLAGS = -funroll-all-loops -ftree-loop-linear
LDFLAGS += -L../lib -L$(PREFIX)/lib -lxbps
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
$(CC) $(LDFLAGS) $^ -o $@
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)
install -d $(SBINDIR)
install -m 755 $(BINS) $(SBINDIR)
install -m 755 xbps-src.sh $(SBINDIR)/xbps-src
sed -i -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" $(SBINDIR)/xbps-src