Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
1631:1bf7b032a45d | 1632:64eaceca611d |
---|---|
25 ## source tree, and to support both module and non-module building inside the | 25 ## source tree, and to support both module and non-module building inside the |
26 ## source tree. | 26 ## source tree. |
27 | 27 |
28 ## Note: This will be appended to the individual module Makefiles by configure. | 28 ## Note: This will be appended to the individual module Makefiles by configure. |
29 | 29 |
30 #define NOT_C_CODE | |
31 #include "../../src/config.h" | |
32 | |
30 SHELL=/bin/sh | 33 SHELL=/bin/sh |
31 RM=rm -f | 34 RM=rm -f |
32 PROGNAME=@PROGNAME@ | 35 PROGNAME=@PROGNAME@ |
33 CFLAGS=@CFLAGS@ | 36 CFLAGS=@CFLAGS@ |
34 INSTALL=@INSTALL@ | 37 INSTALL=@INSTALL@ |
52 MAKE_DOCFILE=@MAKE_DOCFILE@ | 55 MAKE_DOCFILE=@MAKE_DOCFILE@ |
53 MODCFLAGS=@MODCFLAGS@ | 56 MODCFLAGS=@MODCFLAGS@ |
54 INSTALLPATH=@INSTALLPATH@ | 57 INSTALLPATH=@INSTALLPATH@ |
55 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ | 58 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@ |
56 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ | 59 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@ |
60 #ifdef HAVE_MS_WINDOWS | |
61 IMPORT_LIB=../../src/xemacs-import.a | |
62 #endif | |
57 | 63 |
58 .PHONY: clean distclean install | 64 .PHONY: clean distclean install |
59 all: $(OBJECT_TO_BUILD) | 65 all: $(OBJECT_TO_BUILD) |
60 | 66 |
61 .c.o: | 67 .c.o: |
62 $(MODCC) $(MODCFLAGS) -c $< | 68 $(MODCC) $(MODCFLAGS) -c $< |
63 | 69 |
64 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | 70 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) |
65 $(MODCC) --mode=link --mode=verbose --mod-output=$@ \ | 71 $(MODCC) --mode=link --mode=verbose --mod-output=$@ \ |
66 $(OBJS) $(MODNAME)_i.o $(LDFLAGS) | 72 $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB) $(LDFLAGS) |
67 | 73 |
68 $(MODNAME)_i.c: $(SRCS) | 74 $(MODNAME)_i.c: $(SRCS) |
69 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ | 75 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ |
70 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | 76 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ |
71 --mod-title=$(MODTITLE) $(SRC_SRCS) | 77 --mod-title=$(MODTITLE) $(SRC_SRCS) |