]> git.cworth.org Git - svg2png/commitdiff
Add simple Makefile
authorCarl Worth <cworth@cworth.org>
Fri, 7 Sep 2007 15:53:00 +0000 (08:53 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 7 Sep 2007 15:53:00 +0000 (08:53 -0700)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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