Mercurial > hg > xemacs-beta
diff modules/common/Makefile.common @ 1632:64eaceca611d
[xemacs-hg @ 2003-08-19 02:07:03 by james]
Enable module building and running on Cygwin and MinGW.
author | james |
---|---|
date | Tue, 19 Aug 2003 02:07:16 +0000 |
parents | 84bef38b39b6 |
children | 34abfb24e891 |
line wrap: on
line diff
--- a/modules/common/Makefile.common Mon Aug 18 21:52:34 2003 +0000 +++ b/modules/common/Makefile.common Tue Aug 19 02:07:16 2003 +0000 @@ -27,6 +27,9 @@ ## Note: This will be appended to the individual module Makefiles by configure. +#define NOT_C_CODE +#include "../../src/config.h" + SHELL=/bin/sh RM=rm -f PROGNAME=@PROGNAME@ @@ -54,6 +57,9 @@ INSTALLPATH=@INSTALLPATH@ INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ +#ifdef HAVE_MS_WINDOWS +IMPORT_LIB=../../src/xemacs-import.a +#endif .PHONY: clean distclean install all: $(OBJECT_TO_BUILD) @@ -61,9 +67,9 @@ .c.o: $(MODCC) $(MODCFLAGS) -c $< -$(MODNAME).ell: $(OBJS) $(MODNAME)_i.o +$(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) $(MODCC) --mode=link --mode=verbose --mod-output=$@ \ - $(OBJS) $(MODNAME)_i.o $(LDFLAGS) + $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) $(LDFLAGS) $(MODNAME)_i.c: $(SRCS) ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \