1 # define a list of pkg-config packages we want to use
2 pkg_packages := gtk+-2.0 hildon-1 liblocation
4 # get the necessary flags for compiling
5 PKG_CFLAGS := $(shell pkg-config --cflags $(pkg_packages))
6 # get the necessary flags for linking
7 PKG_LDFLAGS := $(shell pkg-config --libs $(pkg_packages))
12 ADD_CFLAGS := -Wall -g
14 # combine the flags (so that CFLAGS/LDFLAGS from the command line
16 CFLAGS := $(PKG_CFLAGS) $(ADD_CFLAGS) $(CFLAGS)
17 LDFLAGS := $(PKG_LDFLAGS) $(LDFLAGS)
24 gps-tracker: gps-tracker.o
25 $(CC) $^ -o $@ $(LDFLAGS)
32 run-standalone.sh `pwd`/gps-tracker