From 58d40dd25150df1f2399f3ba1c31fc07d8440816 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Sat, 30 Nov 2019 13:44:36 +0100 Subject: [PATCH] add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5e8e3e --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CFLAGS += -Wall -Werror + +# find our hammer build - adjust this to your needs +# i have, for instance, symlinks: +# hammer@ -> ../hammer/src +# lib@ -> ../hammer/build/opt/src +CFLAGS += -I. +LDFLAGS += -L./lib + +all: pdf +.PHONY: all + +pdf: pdf.c + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $> -lhammer -- GitLab