vp-build/utils/Makefile
Juan RP 48b2f033da A bit of reorganization in C/shell code.
With these changes:
 - Added 'sanitize-plist' action to xbps-pkgdb. It takes a plist
   file as argument and writes another one "sanitized" by proplib.
   Use it to sanitize the pkgindex plist file.
 - Split xbps-pkgdb functions to be shared by other files.
 - Split xbps-digest functions to be shared by other files.
 - Rename the plist file to register/unregister installed pkgs to
   regpkgdb.plist, and related stuff in shell scripts.

--HG--
extra : convert_revision : 37731b04c6b41aebac629dfa06106175b9b5e59c
2008-12-19 04:18:49 +01:00

34 lines
715 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-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) $(LDFLAGS) -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
clean_objs:
-rm -f *.o
clean: clean_objs
-rm -f xbps-digest xbps-pkgdb xbps-cmpver