From: Carl Worth Date: Fri, 7 Sep 2007 15:53:00 +0000 (-0700) Subject: Add simple Makefile X-Git-Url: https://git.cworth.org/git?p=svg2png;a=commitdiff_plain;h=f0864bafa0ded5ace595cb20f86168b0dc662f2b Add simple 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