diff options
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
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 |