2008-10-27 18:06:45 +01:00
|
|
|
PREFIX ?= /usr/local
|
2008-12-19 04:18:49 +01:00
|
|
|
CFLAGS += -Wall -Werror -O3 -I$(PREFIX)/include
|
|
|
|
CFLAGS += -funroll-all-loops -ftree-loop-linear
|
|
|
|
LDFLAGS += -lprop
|
2008-12-20 03:10:34 +01:00
|
|
|
BINS ?= xbps-bin xbps-cmpver xbps-digest xbps-pkgdb
|
2008-10-20 16:34:27 +02:00
|
|
|
|
2008-12-19 10:31:53 +01:00
|
|
|
all: xbps_digest xbps_pkgdb xbps_bin xbps-cmpver clean_objs
|
2008-10-20 16:34:27 +02:00
|
|
|
|
2008-10-28 16:51:58 +01:00
|
|
|
xbps-cmpver: xbps-cmpver.o
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
|
2008-12-20 03:07:46 +01:00
|
|
|
sha256: sha256.o
|
2008-12-19 04:18:49 +01:00
|
|
|
$(CC) $(CFLAGS) -c $@
|
|
|
|
|
2008-10-20 16:34:27 +02:00
|
|
|
xbps-digest: xbps-digest.o
|
2008-12-19 04:18:49 +01:00
|
|
|
$(CC) $(CFLAGS) -c $@
|
|
|
|
|
2008-12-20 03:07:46 +01:00
|
|
|
xbps_digest: xbps-digest.o sha256.o
|
|
|
|
$(CC) -o xbps-digest xbps-digest.o sha256.o
|
2008-12-19 04:18:49 +01:00
|
|
|
|
|
|
|
xbps-pkgdb:
|
|
|
|
$(CC) $(CFLAGS) -c $@
|
|
|
|
|
2008-12-20 03:07:46 +01:00
|
|
|
plist:
|
2008-12-19 04:18:49 +01:00
|
|
|
$(CC) $(CFLAGS) -c $@
|
2008-10-20 16:34:27 +02:00
|
|
|
|
2008-12-20 03:07:46 +01:00
|
|
|
xbps_pkgdb: xbps-pkgdb.o plist.o
|
|
|
|
$(CC) $(LDFLAGS) -o xbps-pkgdb xbps-pkgdb.o plist.o
|
2008-10-27 18:06:45 +01:00
|
|
|
|
2008-12-19 10:31:53 +01:00
|
|
|
xbps-bin:
|
|
|
|
$(CC) $(CFLAGS) -c $@
|
|
|
|
|
2008-12-20 03:07:46 +01:00
|
|
|
xbps_bin: xbps-bin.o plist.o
|
|
|
|
$(CC) $(LDFLAGS) -o xbps-bin xbps-bin.o plist.o
|
2008-12-19 10:31:53 +01:00
|
|
|
|
2008-10-28 08:10:53 +01:00
|
|
|
clean_objs:
|
2008-12-20 03:10:34 +01:00
|
|
|
strip -s $(BINS)
|
2008-10-28 08:10:53 +01:00
|
|
|
-rm -f *.o
|
|
|
|
|
|
|
|
clean: clean_objs
|
2008-10-28 16:51:58 +01:00
|
|
|
-rm -f xbps-digest xbps-pkgdb xbps-cmpver
|