summaryrefslogtreecommitdiff
path: root/Makefile
blob: 44208185170df13e2644183be3347429c38d128e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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