14 lines
282 B
Makefile
14 lines
282 B
Makefile
|
# Override PREFIX to look in correct path.
|
||
|
#
|
||
|
PREFIX ?= /usr/local
|
||
|
CFLAGS += -Wall -Werror -I$(PREFIX)/include
|
||
|
LDFLAGS += -L$(PREFIX)/lib -Wl,-R$(PREFIX)/lib -lprop
|
||
|
|
||
|
all: xbps-pkgdb
|
||
|
|
||
|
xbps-pkgdb: xbps-pkgdb.o
|
||
|
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
|
||
|
|
||
|
clean:
|
||
|
-rm -f *.o *.core xbps-pkgdb
|