From f0864bafa0ded5ace595cb20f86168b0dc662f2b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 7 Sep 2007 08:53:00 -0700 Subject: [PATCH] Add simple Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4420818 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +ALL=svg2pdf + +MYCFLAGS=`pkg-config --cflags librsvg-2.0 cairo-pdf` -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing +MYLDFLAGS=`pkg-config --libs librsvg-2.0 cairo-pdf` + +all: $(ALL) + +%.o: %.c + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(MYCFLAGS) $< -o $@ + +%: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(MYCFLAGS) $(MYLDFLAGS) $^ -o $@ + +clean: + rm -f $(ALL) *.o -- 2.43.0