Modules always fail to build for me on FreeBSD, turns out that the
Makefile needed a little tweaking (gnu make works fine). Not tested
anywhere other than FreeBSD.
2003-01-30 Robert Pluim <rpluim(a)bigfoot.com>
* Makefile.common: FreeBSD make compatability fixes, expand
SRC_SRCS immediately, use MODCC rather than CC.
PS Please CC me on any replies, I'm no longer on xemacs-beta
Robert
Index: Makefile.common
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/modules/common/Makefile.common,v
retrieving revision 1.2
diff -u -r1.2 Makefile.common
--- Makefile.common 2002/11/18 06:52:30 1.2
+++ Makefile.common 2003/01/30 08:06:59
@@ -27,7 +27,7 @@
## Note: This will be appended to the individual module Makefiles by configure.
-SRC_SRCS=$(SRCS:%=$(srcdir)/%)
+SRC_SRCS:=$(SRCS:%=$(srcdir)/%)
OBJS=$(SRCS:.c=.o)
SHELL=/bin/sh
@@ -47,7 +47,7 @@
srcdir=@srcdir@
VPATH=@srcdir@
-CC=@MOD_CC@
+MODCC=@MOD_CC@
MODARCHDIR=@MODARCHDIR@
MAKE_DOCFILE=@MAKE_DOCFILE@
MODCFLAGS=@MODCFLAGS@
@@ -59,13 +59,13 @@
all: $(OBJECT_TO_BUILD)
.c.o:
- $(CC) $(MODCFLAGS) -c $<
+ $(MODCC) $(MODCFLAGS) -c $<
$(MODNAME).ell: $(OBJS) $(MODNAME)_i.o
- $(CC) --mode=link --mode=verbose --mod-output=$@ $^ $(LDFLAGS)
+ $(MODCC) --mode=link --mode=verbose --mod-output=$@ $^ $(LDFLAGS)
$(MODNAME)_i.c: $(SRCS)
- ELLMAKEDOC=$(MAKE_DOCFILE) $(CC) --mode=init --mod-output=$@ \
+ ELLMAKEDOC=$(MAKE_DOCFILE) $(ELLCC) --mode=init --mod-output=$@ \
--mod-name=$(MODNAME) --mod-version=$(MODVER) \
--mod-title=$(MODTITLE) $(SRC_SRCS)
--