Use macros for maximum string length
[gps-tracker] / Makefile
index 9f9fb87..e7a58d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 # define a list of pkg-config packages we want to use
-pkg_packages := gtk+-2.0 hildon-1 liblocation
+pkg_packages := gtk+-2.0 hildon-1 liblocation hildon-fm-2
 
 # get the necessary flags for compiling
 PKG_CFLAGS := $(shell pkg-config --cflags $(pkg_packages))
@@ -21,7 +21,7 @@ targets = gps-tracker
 .PHONY: all
 all: $(targets)
 
-gps-tracker: gps-tracker.o
+%: %.o
        $(CC) $^ -o $@ $(LDFLAGS)
 
 .PHONY: clean