summaryrefslogtreecommitdiff
path: root/examples/application9/Makefile.example
diff options
context:
space:
mode:
Diffstat (limited to 'examples/application9/Makefile.example')
-rw-r--r--examples/application9/Makefile.example17
1 files changed, 9 insertions, 8 deletions
diff --git a/examples/application9/Makefile.example b/examples/application9/Makefile.example
index 0561f77ca8..917e3c70f0 100644
--- a/examples/application9/Makefile.example
+++ b/examples/application9/Makefile.example
@@ -1,13 +1,14 @@
-CC = gcc
+CC ?= gcc
PKGCONFIG = $(shell which pkg-config)
-CFLAGS = `$(PKGCONFIG) --cflags gtk+-3.0`
-LIBS = `$(PKGCONFIG) --libs gtk+-3.0`
-GLIB_COMPILE_RESOURCES = `$(PKGCONFIG) --variable=glib_compile_resources gio-2.0`
-GLIB_COMPILE_SCHEMAS = `$(PKGCONFIG) --variable=glib_compile_schemas gio-2.0`
+CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0)
+LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0)
+GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources gio-2.0)
+GLIB_COMPILE_SCHEMAS = $(shell $(PKGCONFIG) --variable=glib_compile_schemas gio-2.0)
-SRC = resources.c exampleapp.c exampleappwin.c exampleappprefs.c main.c
+SRC = exampleapp.c exampleappwin.c exampleappprefs.c main.c
+BUILT_SRC = resources.c
-OBJS = $(SRC:.c=.o)
+OBJS = $(BUILT_SRC:.c=.o) $(SRC:.c=.o)
all: exampleapp
@@ -29,6 +30,6 @@ exampleapp: $(OBJS) gschemas.compiled
clean:
rm -f org.gtk.exampleapp.gschema.valid
rm -f gschemas.compiled
- rm -f resources.c
+ rm -f $(BUILT_SRC)
rm -f $(OBJS)
rm -f exampleapp