vp-build/utils/Makefile
Juan RP 6a16f41237 Add WIP xbps-bin utility to handle binpkgs/repos.
--HG--
extra : convert_revision : 8bfa759a11b09cfe1ebc45f9357e6e942552ed32
2008-12-19 10:31:53 +01:00

40 lines
838 B
Makefile

PREFIX ?= /usr/local
CFLAGS += -Wall -Werror -O3 -I$(PREFIX)/include
CFLAGS += -funroll-all-loops -ftree-loop-linear
LDFLAGS += -lprop
all: xbps_digest xbps_pkgdb xbps_bin xbps-cmpver clean_objs
xbps-cmpver: xbps-cmpver.o
$(CC) $(CFLAGS) $< -o $@
sha256_digest: sha256_digest.o
$(CC) $(CFLAGS) -c $@
xbps-digest: xbps-digest.o
$(CC) $(CFLAGS) -c $@
xbps_digest: xbps-digest.o sha256_digest.o
$(CC) -o xbps-digest xbps-digest.o sha256_digest.o
xbps-pkgdb:
$(CC) $(CFLAGS) -c $@
plist_utils:
$(CC) $(CFLAGS) -c $@
xbps_pkgdb: xbps-pkgdb.o plist_utils.o
$(CC) $(LDFLAGS) -o xbps-pkgdb xbps-pkgdb.o plist_utils.o
xbps-bin:
$(CC) $(CFLAGS) -c $@
xbps_bin: xbps-bin.o plist_utils.o
$(CC) $(LDFLAGS) -o xbps-bin xbps-bin.o plist_utils.o
clean_objs:
-rm -f *.o
clean: clean_objs
-rm -f xbps-digest xbps-pkgdb xbps-cmpver