A tad different. <g>
from /xacc/src/motif
Makefile:
# Generated automatically from Makefile.in by
configure.
# Makefile -- makefile for gnucash/src/motif
# Copyright (C) 1997 Robin Clark
# Copyright (C) 1998 Rob Browning <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute
it and/or
# modify it under the terms of the GNU General Public
License as
# published by the Free Software Foundation; either
version 2 of
# the License, or (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General
Public License
# along with this program; if not, write to the Free
Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
USA.
#
# Author: Robin Clark
# Internet: [EMAIL PROTECTED]
# Address: 609 8th Street
# Huntington Beach, CA 92648-4632
include ../../Makefile.init
INCLPATH = -I.. \
-I../.. \
-I../guile \
-I../engine \
-I../register \
-I../reports \
-I./../../include \
-I./../../lib/ComboBox-1.33 \
-I./../../ \
-I./../../lib/Xbae-4.6.2-linas \
-I../../lib/g-wrap-install/include \
-I../../src/g-wrap \
-I${includedir}
CFLAGS = -g -O2 -Werror -Wno-unused -DFUNCPROTO
-DCELL_WIDGETS=1 ${INCLPATH}
LDFLAGS =
GUILELIBS = -L/usr/local/lib -lguile -ldl -lreadline
-ltermcap -lsocket -lnsl -lm
LIBS = -L$(prefix)/lib \
-lSM -lICE -lXm -lsocket -lnsl -lXext
-lXmu -lXt -lX11 \
$(GUILELIBS) -lpng -lz -lm -lnana \
../../lib/g-wrap-install/lib/libgwrapguile.a
ifeq (${HAVE_PLOTUTILS},1)
LIBS += @PLOTUTILS_LIBS@
endif
# Have to use wildcard here otherwise filters below
won't get the expanded
# text to work on...
OTHER_OBJS := $(wildcard
../../lib/Xbae-4.6.2-linas/src/obj/motif/*.o)
OTHER_OBJS += $(wildcard
../../lib/ComboBox-1.33/obj/motif/*.o)
OTHER_OBJS += $(wildcard ../../src/obj/motif/*.o)
OTHER_OBJS += $(wildcard ../../src/engine/obj/*.o)
OTHER_OBJS += $(wildcard
../../src/register/obj/motif/*.o)
OTHER_OBJS += $(wildcard ../../src/reports/obj/*.o)
OTHER_OBJS += $(wildcard ../../src/guile/obj/*.o)
#OTHER_OBJS +=
../../src/swig/guile/obj/gnucash-all-guile_wrap.o
OTHER_OBJS += $(wildcard ../../src/swig/obj/*.o)
OTHER_OBJS += $(wildcard ../../src/g-wrap/obj/*.o)
OTHER_OBJS += $(wildcard
../../src/g-wrap/obj/motif/*.o)
######################################################################
# See Makefile.common for information about these
variables.
MOTIF_SRCS = AccWindow.c AccountMenu.c AdjBWindow.c \
BuildMenu.c FileBox.c \
HelpWindow.c MainWindow.c PriceMenu.c \
RecnWindow.c RegWindow.c Reports.c
TextBox.c \
XferWindow.c top-level.c xtutil.c
scripts_menu.c
######################################################################
all: motif
# This inclusion must come after the first target, and
after the
# definitions of *_SRCS, etc., but before the usage of
*_OBJS.
include ../../Makefile.common
motif: ../../gnucash.motif
../../gnucash.motif: ${MOTIF_OBJS} ${OTHER_OBJS}
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
motif.static: ../../gnucash.motif.static
../../gnucash.motif.static: ${MOTIF_OBJS}
${OTHER_OBJS}
$(CC) -static $(LDFLAGS) -o $@ $^ $(LIBS)
and just in case, /xacc/Makefile.common:
### -*-makefile-*-
#################################################
## Makefile.common
##
## standard targets and rules
####################################################################
# Autoconf notes...
# Need to handle -MD there.
# COMMON_SRCS: have to be compiled separately for all
flavors
# MOTIF_SRCS: are motif only sources
# GNOME_SRCS: are gnome only sources
# INDEP_SRCS: are for flavor independent sources
(like engine)
# OBJS is for flavor independent files
# GNOME/MOTIF_OBJS is for flavor dependent files
OBJS := $(addprefix obj/,${INDEP_SRCS:.c=.o})
GNOME_OBJS := $(addprefix
obj/gnome/,${COMMON_SRCS:.c=.o})
GNOME_OBJS += $(addprefix
obj/gnome/,${GNOME_SRCS:.c=.o})
MOTIF_OBJS := $(addprefix
obj/motif/,${COMMON_SRCS:.c=.o})
MOTIF_OBJS += $(addprefix
obj/motif/,${MOTIF_SRCS:.c=.o})
QT_OBJS := $(addprefix
obj/qt/,${COMMON_SRCS:.c=.o})
QT_OBJS += $(addprefix obj/qt/,${QT_SRCS:.cpp=.o})
ifdef GNOME_CONFIG_BIN
GNOME_CFLAGS += $(shell ${GNOME_CONFIG_BIN} --cflags
gnomeui)
endif
QT_FLAGS :=
%.c : %.h
# Basically take the output foo.d file and put it in
the right
# subdirectory, adding a prefix indicating where the
file actually
# lives (i.e. obj-pic/Foo.cc rather than Foo.cc. This
would all be
# unnecessary if gcc actually paid attention to the
argument to "-o".
# Note that this cannot handle subdirs in the Makefile
dir, so if the
# relevant Makefile was src/foo/Makefile, this rule
can't handle
# src/foo/bar/x.c src/foo/x.c and src/foo/bax/x.c.
You'd need another
# Makefile in src/foo/bar and src/foo/bax for now.
define cleanupdeps
sed -e "1 s|$(basename $<)\.o|$@|1" $(basename
$@).d.tmp > $(basename $@).d
rm $(basename $@).d.tmp
endef
# Default rule used for non-flavor dependent files
(i.e. all of register)
obj/%.o: %.c
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS) -o $@
$<
${cleanupdeps}
obj/%.o: %.cpp
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
g++ -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS) -o $@
$<
${cleanupdeps}
obj/motif/%.o: %.c
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS)
${MOTIF_CFLAGS} -DMOTIF -o $@ $<
${cleanupdeps}
obj/gnome/%.o: %.c
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS)
${GNOME_CFLAGS} -DGNOME -o $@ $<
${cleanupdeps}
obj/qt/%.o: %.cpp
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
g++ -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS)
${QT_CFLAGS} -DKDE -o $@ $<
${cleanupdeps}
obj/qt/%.o: %.c
@if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
$(CC) -Wp,-MD,$(basename $@).d.tmp -c $(CFLAGS)
${QT_CFLAGS} -DKDE -o $@ $<
${cleanupdeps}
clean-files:
rm -f *~ *.bak \#*
rm -rf obj
-rm -rf ${TRASH}
clean: clean-files
$(foreach dir,${CLEAN_SUBDIRS},(cd ${dir} && $(MAKE)
clean);)
distclean: clean-files
$(foreach dir,${CLEAN_SUBDIRS},(cd ${dir} && $(MAKE)
distclean);)
rm -f Makefile.bak
rm -f $(foreach f,$(wildcard *.in),$(filter-out
configure,$(f:.in=)))
-rm -rf ${DIST_TRASH}
.PHONY: clean clean-files distclean
# Get dependencies (if existent).
-include $(shell if [ -e obj ]; then find obj -name
"*.d"; fi) ""
# Local Variables:
# tab-width: 2
# End:
any suggestions, please forward them on.
Thanks for the help,
alan
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body