pkgconf/Makefile.in

38 lines
976 B
Makefile

prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
datarootdir = @datarootdir@
datadir = @datadir@
includedir = @includedir@
CC = @CC@
PROG = pkgconf@EXEEXT@
SRCS = main.c pkg.c bsdstubs.c getopt_long.c fragment.c argvsplit.c fileio.c tuple.c dependency.c
OBJS = ${SRCS:.c=.o}
CFLAGS += -DLIBDIR=\"${libdir}\" -DINCLUDEDIR=\"${includedir}\" -DPKG_DEFAULT_PATH=\"${libdir}/pkgconfig:${datadir}/pkgconfig\" -Wall -Wextra -Wformat=2 -std=gnu99 -D_FORTIFY_SOURCE=2
all: build
build: ${PROG}
clean:
rm *.o
rm $(PROG)
install:
mkdir -p $(DESTDIR)/$(bindir)
install -c -m755 $(PROG) $(DESTDIR)/$(bindir)/$(PROG)
mkdir -p $(DESTDIR)/$(datarootdir)/aclocal
install -c -m644 pkg.m4 $(DESTDIR)/$(datarootdir)/aclocal/pkg.m4
check: $(PROG)
$(SHELL) tests/run.sh ./$(PROG)
valgrind-check: $(PROG)
$(SHELL) tests/run.sh 'valgrind --leak-check=full --show-reachable=yes ./$(PROG)'
$(PROG): $(OBJS)
${CC} -o $@ $(OBJS)
.c.o:
${CC} ${CFLAGS} -c $< -o $@