-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-static-MacOsX
77 lines (57 loc) · 2.5 KB
/
Makefile-static-MacOsX
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SandroFurieri (c) 2009
# Makefile ( MacOsX & wxwidgets) for spatialite-GIS
SRC = Main.cpp LayerTree.cpp MapView.cpp Dialogs.cpp Bitmaps.cpp Objects.cpp \
SqlHelpers.cpp GraphicsDlgs.cpp ClassifyDlgs.cpp MetadataInit.cpp \
Shapefiles.cpp TableDialogs.cpp MapDynamic.cpp Network.cpp OutputMap.cpp
OBJ = Main.o LayerTree.o MapView.o Dialogs.o Bitmaps.o Objects.o SqlHelpers.o \
GraphicsDlgs.o ClassifyDlgs.o MetadataInit.o Shapefiles.o \
TableDialogs.o MapDynamic.o Network.o OutputMap.o
EXE = ./static_bin/spatialite_gis
INCLUDE = Classdef.h
# Define default flags:
CXXFLAGS = $(shell wx-config --cxxflags)
LIB = $(shell wx-config --libs)
EXTRAFLAGS = -Wall -Wextra -Wno-ctor-dtor-privacy \
-fno-strict-aliasing -I/usr/local/include -D_LARGE_FILE=1 \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1
EXTRALIBS = /usr/local/lib/libspatialite.a /usr/local/lib/libgeos_c.a \
/usr/local/lib/libgeos.a /usr/local/lib/libproj.a \
/usr/local/lib/librasterlite.a /usr/local/lib/libgeotiff.a \
/usr/local/lib/libfreexl.a /usr/local/lib/libhpdf.a
EXTRALIB2 = -liconv
all: $(EXE)
$(EXE): $(OBJ) $(EXTRALIBS)
$(CXX) $(OBJ) -o $(EXE) $(LIB) $(EXTRALIBS) $(EXTRALIB2)
strip $(EXE)
clean :
$(RM) $(OBJ) $(EXE)
Main.o: Main.cpp $(INCLUDE)
$(CXX) -c Main.cpp $(CXXFLAGS) $(EXTRAFLAGS)
LayerTree.o: LayerTree.cpp $(INCLUDE)
$(CXX) -c LayerTree.cpp $(CXXFLAGS) $(EXTRAFLAGS)
MapView.o: MapView.cpp $(INCLUDE)
$(CXX) -c MapView.cpp $(CXXFLAGS) $(EXTRAFLAGS)
MapDynamic.o: MapDynamic.cpp $(INCLUDE)
$(CXX) -c MapDynamic.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Dialogs.o: Dialogs.cpp $(INCLUDE)
$(CXX) -c Dialogs.cpp $(CXXFLAGS) $(EXTRAFLAGS)
GraphicsDlgs.o: GraphicsDlgs.cpp $(INCLUDE)
$(CXX) -c GraphicsDlgs.cpp $(CXXFLAGS) $(EXTRAFLAGS)
ClassifyDlgs.o: ClassifyDlgs.cpp $(INCLUDE)
$(CXX) -c ClassifyDlgs.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Bitmaps.o: Bitmaps.cpp $(INCLUDE)
$(CXX) -c Bitmaps.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Objects.o: Objects.cpp $(INCLUDE)
$(CXX) -c Objects.cpp $(CXXFLAGS) $(EXTRAFLAGS)
SqlHelpers.o: SqlHelpers.cpp $(INCLUDE)
$(CXX) -c SqlHelpers.cpp $(CXXFLAGS) $(EXTRAFLAGS)
MetadataInit.o: MetadataInit.cpp $(INCLUDE)
$(CXX) -c MetadataInit.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Shapefiles.o: Shapefiles.cpp $(INCLUDE)
$(CXX) -c Shapefiles.cpp $(CXXFLAGS) $(EXTRAFLAGS)
TableDialogs.o: TableDialogs.cpp $(INCLUDE)
$(CXX) -c TableDialogs.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Network.o: Network.cpp $(INCLUDE)
$(CXX) -c Network.cpp $(CXXFLAGS) $(EXTRAFLAGS)
OutputMap.o: OutputMap.cpp $(INCLUDE)
$(CXX) -c OutputMap.cpp $(CXXFLAGS) $(EXTRAFLAGS)