Forked from
Sven M. Hallberg / pdf
467 commits behind the upstream repository.
-
Sven M. Hallberg authored
Makefile 563 B
CFLAGS += -std=c99 -Wall -Werror -DLOG
# find our hammer build - adjust this to your needs
# i have, for instance, symlinks:
# hammer@ -> ../hammer/src
# lib@ -> ../hammer/build/opt/src
HAMMER_INCLUDE = .
HAMMER_LIB = ./lib
CFLAGS += -I$(HAMMER_INCLUDE)
LDFLAGS += -L$(HAMMER_LIB)
SOURCES = pdf.c lzw-lib.c
.PHONY: all test clean
all: pdf
test: pdf
LD_LIBRARY_PATH=$(HAMMER_LIB) sh -c \
'for x in t/*.pdf; do ./pdf "$$x" >/dev/null && echo OK: "$$x"; done'
@true
pdf: $(SOURCES)
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(SOURCES) -lhammer -lz
clean:
rm -f pdf