blob: f014bbff1f52f697fc6d94b7e0f2427444475d5c (
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
31
32
|
--- gpscorrelate-1.5.6.orig/Makefile
+++ gpscorrelate-1.5.6/Makefile
@@ -4,22 +4,23 @@
COBJS = main-command.o unixtime.o gpx-read.o correlate.o exif-gps.o
GOBJS = main-gui.o gui.o unixtime.o gpx-read.o correlate.o exif-gps.o
-CFLAGS = -Wall `pkg-config --cflags libxml-2.0 gtk+-2.0` -I/usr/include/exiv2
-OFLAGS = -Wall `pkg-config --libs libxml-2.0 gtk+-2.0` -lm -lexiv2
+PKG_CFLAGS = -Wall `pkg-config --cflags libxml-2.0 gtk+-2.0` -I/usr/include/exiv2
+PKG_OFLAGS = -Wall `pkg-config --libs libxml-2.0` -lm -lexiv2
+PKG_OFLAGS_GUI = -Wall `pkg-config --libs libxml-2.0 gtk+-2.0` -lm -lexiv2
all: gpscorrelate gpscorrelate-gui
gpscorrelate: $(COBJS)
- gcc $(OFLAGS) -o $@ $(COBJS)
+ gcc $(PKG_OFLAGS) ${CFLAGS} -o $@ $(COBJS)
gpscorrelate-gui: $(GOBJS)
- gcc $(OFLAGS) -o $@ $(GOBJS)
+ gcc $(PKG_OFLAGS_GUI) ${CFLAGS} -o $@ $(GOBJS)
.c.o:
- gcc $(CFLAGS) -c -o $*.o $<
+ gcc $(PKG_CFLAGS) ${CFLAGS} -c -o $*.o $<
.cpp.o:
- g++ $(CFLAGS) -c -o $*.o $<
+ g++ $(PKG_CFLAGS) ${CFLAGS} -c -o $*.o $<
clean:
rm -f *.o gpscorrelate gpscorrelate-gui
|