]>
Commit | Line | Data |
---|---|---|
d494bff0 MG |
1 | Description: Fix the Makefile |
2 | This patch adds hardening flags, makes the clean target work when there is nothing to clean and only links against needed libraries. | |
3 | Forwarded: no | |
4 | Author: Marius Gavrilescu <marius@ieval.ro> | |
5 | Last-Update: 2013-09-04 | |
6 | --- a/Makefile | |
7 | +++ b/Makefile | |
f3b8ada0 | 8 | @@ -4,7 +4,7 @@ |
d494bff0 MG |
9 | cat rateit.glade | perl -e 'print "static unsigned char rateit_glade[]=";while(<>){s/"/\\"/g; s/^/"/; s/$$/\\n"/; print}print ";\n"' > rateit_glade.h |
10 | ||
11 | rateit: rateit.c rateit_glade.h | |
12 | - gcc -g -O2 rateit.c -o rateit `pkg-config --cflags --libs libglade-2.0` -export-dynamic | |
13 | + gcc $(shell pkg-config --cflags libglade-2.0) $(CFLAGS) $(CPPFLAGS) rateit.c -o rateit $(LDFLAGS) -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgobject-2.0 -lglib-2.0 -export-dynamic | |
f3b8ada0 MG |
14 | |
15 | clean: | |
16 | rm rateit rateit_glade.h |