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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
# SandroFurieri (c) 2008
# Makefile ( Mingw & wxwidgets) for spatialite-GUI
SRC = Main.cpp TableTree.cpp QueryView.cpp ResultSetView.cpp BlobExplorer.cpp \
Dialogs.cpp Shapefiles.cpp Network.cpp Exif.cpp TextCsv.cpp \
Objects.cpp QueryViewComposer.cpp MalformedGeoms.cpp DialogsGraph.cpp \
Raster.cpp Styles.cpp RasterSymbolizers.cpp VectorSymbolizers1.cpp \
VectorSymbolizers2.cpp Wfs.cpp win_resource/resource.rc
OBJ = Main.o TableTree.o QueryView.o ResultSetView.o BlobExplorer.o \
Dialogs.o Shapefiles.o Network.o Exif.o TextCsv.o Objects.o \
QueryViewComposer.o MalformedGeoms.o DialogsGraph.o \
Raster.o Styles.o RasterSymbolizers.o VectorSymbolizers1.o \
VectorSymbolizers2.o Wfs.o win_resource/resource.o
EXE = ./static_bin/spatialite_gui.exe
INCLUDE = Classdef.h
# Define default flags:
CXXFLAGS = $(shell wx-config --cxxflags)
LIB = -Wl,--subsystem,windows /usr/local/lib/libwx_mswu-3.0.a \
-lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 \
-lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32
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
REZ = $(shell wx-config --rescomp)
EXTRALIBS = /usr/local/lib/librasterlite2.a /usr/local/lib/libspatialite.a \
/usr/local/lib/libxml2.a /usr/local/lib/liblwgeom.a \
/usr/local/lib/libgeos_c.a /usr/local/lib/libiconv.a \
/usr/local/lib/libgeos.a /usr/local/lib/libproj.a \
/usr/local/lib/libcairo.a /usr/local/lib/libpixman-1.a \
/usr/local/lib/libfreexl.a /usr/local/lib/libfontconfig.a \
/usr/local/lib/libfreetype.a /usr/local/lib/libexpat.a \
/usr/local/lib/libgeotiff.a /usr/local/lib/libtiff.a \
/usr/local/lib/libpng.a /usr/local/lib/libjpeg.a \
/usr/local/lib/libsqlite3.a /usr/local/lib/libcurl.a \
/usr/local/lib/libwebp.a /usr/local/lib/libgif.a \
/usr/local/lib/libssl.a /usr/local/lib/libcrypto.a \
/usr/local/lib/libz.a /usr/local/lib/liblzma.a \
/usr/local/lib/libCharLS.a /usr/local/lib/libopenjp2.a
EXTRALIB2 = -lmsimg32 -lws2_32 -lwldap32
all: $(EXE)
$(EXE): $(OBJ) $(EXTRALIBS)
$(CXX) $(OBJ) -o $(EXE) $(EXTRALIBS) $(EXTRALIB2) $(LIB) \
-static-libstdc++ -static-libgcc
strip --strip-all $(EXE)
clean :
$(RM) $(OBJ) $(EXE)
Main.o: Main.cpp $(INCLUDE)
$(CXX) -c Main.cpp $(CXXFLAGS) $(EXTRAFLAGS)
TableTree.o: TableTree.cpp $(INCLUDE)
$(CXX) -c TableTree.cpp $(CXXFLAGS) $(EXTRAFLAGS)
QueryView.o: QueryView.cpp $(INCLUDE)
$(CXX) -c QueryView.cpp $(CXXFLAGS) $(EXTRAFLAGS)
ResultSetView.o: ResultSetView.cpp $(INCLUDE)
$(CXX) -c ResultSetView.cpp $(CXXFLAGS) $(EXTRAFLAGS)
BlobExplorer.o: BlobExplorer.cpp $(INCLUDE)
$(CXX) -c BlobExplorer.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Dialogs.o: Dialogs.cpp $(INCLUDE)
$(CXX) -c Dialogs.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Raster.o: Raster.cpp $(INCLUDE)
$(CXX) -c Raster.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Styles.o: Styles.cpp $(INCLUDE)
$(CXX) -c Styles.cpp $(CXXFLAGS) $(EXTRAFLAGS)
RasterSymbolizers.o: RasterSymbolizers.cpp $(INCLUDE)
$(CXX) -c RasterSymbolizers.cpp $(CXXFLAGS) $(EXTRAFLAGS)
VectorSymbolizers1.o: VectorSymbolizers1.cpp $(INCLUDE)
$(CXX) -c VectorSymbolizers1.cpp $(CXXFLAGS) $(EXTRAFLAGS)
VectorSymbolizers2.o: VectorSymbolizers2.cpp $(INCLUDE)
$(CXX) -c VectorSymbolizers2.cpp $(CXXFLAGS) $(EXTRAFLAGS)
DialogsGraph.o: DialogsGraph.cpp $(INCLUDE)
$(CXX) -c DialogsGraph.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Shapefiles.o: Shapefiles.cpp $(INCLUDE)
$(CXX) -c Shapefiles.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Network.o: Network.cpp $(INCLUDE)
$(CXX) -c Network.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Exif.o: Exif.cpp $(INCLUDE)
$(CXX) -c Exif.cpp $(CXXFLAGS) $(EXTRAFLAGS)
TextCsv.o: TextCsv.cpp $(INCLUDE)
$(CXX) -c TextCsv.cpp $(CXXFLAGS) $(EXTRAFLAGS)
Objects.o: Objects.cpp $(INCLUDE)
$(CXX) -c Objects.cpp $(CXXFLAGS) $(EXTRAFLAGS)
QueryViewComposer.o: QueryViewComposer.cpp $(INCLUDE)
$(CXX) -c QueryViewComposer.cpp $(CXXFLAGS) $(EXTRAFLAGS)
MalformedGeoms.o: MalformedGeoms.cpp $(INCLUDE)
$(CXX) -c MalformedGeoms.cpp $(CXXFLAGS) $(EXTRAFLAGS)
win_resource/resource.o: win_resource/resource.rc
$(REZ) -i win_resource/resource.rc -o win_resource/resource.o
|