changes to makefiles / build system
Kai-Uwe Behrmann
ku.b at gmx.de
Thu Jun 5 10:05:12 BST 2003
Am 05.06.03, 01:22 +0200 schrieb Pablo d'Angelo:
> Hallo Kai-Uwe!
>
> Kai-Uwe Behrmann schrieb am Dienstag, den 03. Juni 2003:
>
> > Am 30.05.03, 12:48 +0200 schrieb Pablo d'Angelo:
> >
> > > o locale_path is not reset to "../po" to the config file all the time.
> >
> > I did not figure out an way to get the absolute path to binary like in
> > bash. So I ask You to put the PREFIX variable in
> > hugin/src/include/hugin/config.h . Then I refere only to PREFIX/po and
> > PREFIX/share/locale/(..?)
>
> I can do that. But I do not see great value in compiling all the the
> pathes into hugin. I think its better to have ./configure create the
> right config file and put it in /etc or wherever the wxConfig class
> looks for global settings. Maybe that path could be compiled in if
> needed.
It is as well possible to do so. Good. After You create an /etc/hugin with
all paths set, I take the values from there with an config object.
> Is that ok?
>
> ciao
> Pablo
By the way I changed the config object to an global one outside huginApp,
to easy touch it from other classes (MainFrame). Hope thats good?
Is it possible to install xrc files as well. I looked at it but did not
figure out what has to be changed. xrc/Makefile is attached.
Kai-Uwe
-------------- next part --------------
# ========================================================================
#
# Makefile.template
#
# Author: Patric Jensfelt
#
# Changes by Pablo d'Angelo
# - removed CORBA stuff
# - added LIBS, APPS and TESTS expansion (written by Boris Kluge)
# - make static instead of shared libraries
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ========================================================================
# ====================================================================
# relative path to the src directory
# ====================================================================
PREFIX = ../..
# ====================================================================
# include config
# ====================================================================
include $(PREFIX)/makefiles/config.mk
# ====================================================================
# If you wish to add an extra directory to this makefile
# this is the only place you have to change. Just add it
# to the SUBDIRS variable. NOTE: they will be make:ed in
# the order they are written here.
# ====================================================================
SUBDIRS = data
# ====================================================================
# Files that should be considered while creating the dependencies
# ====================================================================
DEPEND_FILES =
# ====================================================================
# special compiler/linker flags needed in this directory
# ====================================================================
CFLAGS +=
LFLAGS +=
# ====================================================================
# Some of the object in this directory you might want to put in a
# library to make them easily available from other locations. The
# library name should be without the leading lib and trailing
# .a. Those are added automatically.
# This is useful for code that is needed from other directories.
#
# Multiple libraries can be defined here, by adding them to the
# LIBS list and specifying details in LIB_x_BIN LIB_x_OBJ
# LIB_x_LFLAGS
# ====================================================================
LIBS =
#LIBS = 1
# Defaults
LIB_LFLAGS = $(LFLAGS)
# Library 1
LIB_1_BIN =
LIB_1_OBJ =
LIB_1_LFLAGS = $(LIB_LFLAGS)
# ====================================================================
# Applications
#
# Note: All the files referenced here should be in the local directory
# This also applies to XRC and XRC_DATA, they should have separate
# Makefile's in their directory.
# ====================================================================
APPS =
#APPS = 1 2
# Defaults
APP_LFLAGS = $(LFLAGS)
# App 1
APP_1_BIN = hugin
APP_1_OBJ =
# for XRC files (in the current directory)
APP_1_XRC = *.xrc
# App 2
APP_2_BIN =
APP_2_OBJ =
APP_2_LFLAGS = $(TEST_LFLAGS)
# ====================================================================
# Some applications are only for testing. To make these compile you
# must explicitly type "make tests"
# ====================================================================
TESTS =
# Defaults
TEST_LFLAGS = $(LFLAGS)
# Test 1
TEST_1_BIN =
TEST_1_OBJ =
TEST_1_LFLAGS = $(TEST_LFLAGS)
# ====================================================================
# include our rules here
# ====================================================================
include $(PREFIX)/makefiles/rules.mk
# ====================================================================
# add custom rules here if needed
# ====================================================================
# ====================================================================
# do not edit stuff below here.
# ====================================================================
-include $(DEPEND)
More information about the ptX
mailing list