2008-10-20 16:34:27 +02:00
|
|
|
CFLAGS += -Wall -Werror -O3 -funroll-all-loops -ftree-loop-linear
|
2008-10-27 18:06:45 +01:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
PKGDB_CFLAGS += -Wall -Werror -I$(PREFIX)/include
|
|
|
|
PKGDB_LDFLAGS += -lprop
|
2008-10-20 16:34:27 +02:00
|
|
|
|
2008-10-28 08:10:53 +01:00
|
|
|
all: xbps-digest xbps-pkgdb clean_objs
|
2008-10-20 16:34:27 +02:00
|
|
|
|
|
|
|
xbps-digest: xbps-digest.o
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
|
2008-10-27 18:06:45 +01:00
|
|
|
xbps-pkgdb: xbps-pkgdb.o
|
|
|
|
$(CC) $(PKGDB_CFLAGS) $(CFLAGS) $(PKGDB_LDFLAGS) $< -o $@
|
|
|
|
|
2008-10-28 08:10:53 +01:00
|
|
|
clean_objs:
|
|
|
|
-rm -f *.o
|
|
|
|
|
|
|
|
clean: clean_objs
|
|
|
|
-rm -f xbps-digest xbps-pkgdb
|
2008-10-20 16:34:27 +02:00
|
|
|
|