change to build system

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@181 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2003-01-25 17:33:04 +00:00
parent 7ca31d90cd
commit d7a43618bb
5 changed files with 4 additions and 304 deletions

View File

@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: qgis
# Generated by qmake (1.04a) (Qt 3.1.1) on: Sat Jan 25 07:52:29 2003
# Generated by qmake (1.04a) (Qt 3.1.1) on: Sat Jan 25 08:21:53 2003
# Project: qgis.pro
# Template: subdirs
# Command: $(QMAKE) -o Makefile qgis.pro

View File

@ -1,156 +0,0 @@
#############################################################################
# Makefile for building: libplugins.so.1.0.0
# Generated by qmake (1.04a) (Qt 3.1.1) on: Thu Jan 23 15:29:13 2003
# Project: plugins.pro
# Template: lib
# Command: $(QMAKE) -o Makefile plugins.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -g -D_REENTRANT -fPIC -DQT_THREAD_SUPPORT
CXXFLAGS = -pipe -Wall -W -g -D_REENTRANT -fPIC -DQT_THREAD_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I$(QTDIR)/mkspecs/default -I. -I$(QTDIR)/include
LINK = g++
LFLAGS = -shared -Wl,-soname,libplugins.so.1
LIBS = $(SUBLIBS) -Wl,-rpath,$(QTDIR)/lib -L$(QTDIR)/lib -lqt-mt -lpthread
AR = ar cqs
RANLIB =
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = ./
####### Files
HEADERS = qgisplugin.h \
qgisplugingui.h \
qgispluginmenu.h \
qgispluginguielement.h \
qgisplugintoolbar.h
SOURCES = qgistestplugin.cpp \
qgisplugingui.cpp
OBJECTS = qgistestplugin.o \
qgisplugingui.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC =
OBJMOC =
DIST = plugins.pro
QMAKE_TARGET = plugins
DESTDIR =
TARGET = libplugins.so.1.0.0
TARGETA = libplugins.a
TARGETD = libplugins.so.1.0.0
TARGET0 = libplugins.so
TARGET1 = libplugins.so.1
TARGET2 = libplugins.so.1.0
first: all
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS)
-$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
-ln -s $(TARGET) $(TARGET0)
-ln -s $(TARGET) $(TARGET1)
-ln -s $(TARGET) $(TARGET2)
staticlib: $(TARGETA)
$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC)
-$(DEL_FILE) $(TARGETA)
$(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)
mocables: $(SRCMOC)
$(MOC):
( cd $(QTDIR)/src/moc ; $(MAKE) )
Makefile: plugins.pro $(QTDIR)/mkspecs/default/qmake.conf
$(QMAKE) -o Makefile plugins.pro
qmake:
@$(QMAKE) -o Makefile plugins.pro
dist:
@mkdir -p .tmp/plugins && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/plugins/ && ( cd `dirname .tmp/plugins` && $(TAR) plugins.tar plugins && $(GZIP) plugins.tar ) && $(MOVE) `dirname .tmp/plugins`/plugins.tar.gz . && $(DEL_FILE) -r .tmp/plugins
mocclean:
uiclean:
yaccclean:
lexclean:
clean:
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)
-$(DEL_FILE) $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA)
FORCE:
####### Compile
qgistestplugin.o: qgistestplugin.cpp qgisplugin.h \
qgisplugingui.h
qgisplugingui.o: qgisplugingui.cpp qgisplugingui.h \
qgispluginguielement.h \
qgispluginns.h
####### Install
install: all
uninstall:

View File

@ -1,146 +0,0 @@
#############################################################################
# Makefile for building: libqgisplugin.so.1.0.0
# Generated by qmake (1.03a) on: Mon Oct 14 08:26:21 2002
# Project: qgisplugin.pro
# Template: lib
# Command: $(QMAKE) qgisplugin.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -g -fPIC
CXXFLAGS = -pipe -Wall -W -g -fPIC
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I$(QTDIR)/include -I$(QTDIR)/mkspecs/default
LINK = g++
LFLAGS = -shared -Wl,-soname,libqgisplugin.so.1
LIBS = $(SUBLIBS) -Wl,-rpath,$(QTDIR)/lib -L$(QTDIR)/lib -lqt
AR = ar cqs
RANLIB =
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv
####### Output directory
OBJECTS_DIR = ./
####### Files
HEADERS = qgisplugin.h \
qgisplugingui.h \
qgispluginmenu.h \
qgispluginguielement.h \
qgisplugintoolbar.h
SOURCES = qgistestplugin.cpp
OBJECTS = qgistestplugin.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC =
OBJMOC =
DIST = qgisplugin.pro
QMAKE_TARGET = qgisplugin
DESTDIR =
TARGET = libqgisplugin.so.1.0.0
TARGETA = libqgisplugin.a
TARGETD = libqgisplugin.so.1.0.0
TARGET0 = libqgisplugin.so
TARGET1 = libqgisplugin.so.1
TARGET2 = libqgisplugin.so.1.0
first: all
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS)
-$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
-ln -s $(TARGET) $(TARGET0)
-ln -s $(TARGET) $(TARGET1)
-ln -s $(TARGET) $(TARGET2)
staticlib: $(TARGETA)
$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC)
-$(DEL_FILE) $(TARGETA)
$(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)
mocables: $(SRCMOC)
$(MOC):
( cd $(QTDIR)/src/moc ; $(MAKE) )
Makefile: qgisplugin.pro $(QTDIR)/mkspecs/default/qmake.conf
$(QMAKE) qgisplugin.pro
qmake:
@$(QMAKE) qgisplugin.pro
dist:
@mkdir -p .tmp/qgisplugin && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/qgisplugin/ && ( cd `dirname .tmp/qgisplugin` && $(TAR) qgisplugin.tar qgisplugin && $(GZIP) qgisplugin.tar ) && $(MOVE) `dirname .tmp/qgisplugin`/qgisplugin.tar.gz . && $(DEL_DIR) .tmp/qgisplugin
mocclean:
uiclean:
clean:
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)
-$(DEL_FILE) $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA)
FORCE:
####### Compile
qgistestplugin.o: qgistestplugin.cpp qgisplugin.h \
qgisplugingui.h
####### Install
install: all
uninstall:

View File

@ -7,3 +7,5 @@ CONFIG += qt thread debug
TEMPLATE = subdirs
SUBDIRS += src \
plugins

View File

@ -5,7 +5,7 @@
TARGET = qgis
TEMPLATE = app
exists ( $(PGSQL) ) {
exists ( $(PGSQL)/bin/psql ) {
message ( "Configuring to build with PostgreSQL support" )
LIBS += -L$(PGSQL)/lib -lpq++
INCLUDEPATH += $(PGSQL)/include