diff options
author | Carl Worth <cworth@cworth.org> | 2007-09-07 08:53:00 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-09-07 08:53:00 -0700 |
commit | f0864bafa0ded5ace595cb20f86168b0dc662f2b (patch) | |
tree | 952a1fb631e2a530d7efd339f9974ee2e5355dcc | |
parent | 3d7514bb6cf22deffe57ca772eb893805d7551bf (diff) |
Add simple Makefile
-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 |