blob: 31519848a7a299631f14ecc8950b3ad280ce59cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff --git a/Makefile b/Makefile
index 7634553..9bfd025 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,12 @@
PACKAGE_VERSION = 2.0
-CC = gcc
-CXX = g++
+CC ?= gcc
+CXX ?= g++
EXEEXT =
-PKG_CONFIG=pkg-config
-CFLAGS = -Wall -O2
-LDFLAGS = -Wall -O2 -lm
+PKG_CONFIG?=pkg-config
+CFLAGS ?= -Wall -O2
+LDFLAGS ?= -Wall -O2
GTK = 3
COBJS = main-command.o unixtime.o gpx-read.o correlate.o exif-gps.o latlong.o
@@ -20,6 +20,7 @@ CFLAGSINC = `$(PKG_CONFIG) --cflags libxml-2.0 exiv2`
GTKFLAGS = `$(PKG_CONFIG) --cflags gtk+-$(GTK).0`
LIBS = `$(PKG_CONFIG) --libs libxml-2.0 exiv2`
LIBSGUI = `$(PKG_CONFIG) --libs gtk+-$(GTK).0`
+LIBS += -lm -lstdc++
CFLAGSINC += $(GTKFLAGS)
|