/[cvs]/eggdrop1.8/src/mod/Makefile.in
ViewVC logotype

Contents of /eggdrop1.8/src/mod/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Oct 10 21:24:43 2010 UTC (9 years, 11 months ago) by pseudo
Branch: MAIN
Changes since 1.1: +2 -2 lines
Removed the unrecognized options warning when configuring modules.
Modified -v output and .status display configure options.

1 # Makefile for src/mod/
2 # $Id: Makefile.in,v 1.1.1.1 2010/07/26 21:11:06 simple Exp $
3
4 SHELL = @SHELL@
5 top_srcdir = @top_srcdir@
6 srcdir = @srcdir@
7 VPATH = @srcdir@
8 MOD_UPDIR = @MOD_UPDIR@
9
10 @SET_MAKE@
11 INSTALL = @INSTALL@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_SCRIPT = @INSTALL_SCRIPT@
15
16 CC = @CC@
17 LD = @CC@
18 STRIP = @STRIP@
19 CFLAGS = @CFLAGS@ -I../.. -I$(top_srcdir) @DEFS@ $(CFLGS)
20 CPPFLAGS = @CPPFLAGS@
21 MOD_CFLAGS = @CFLAGS@ -I. -I../../.. -I$(MOD_UPDIR)$(top_srcdir) \
22 -I$(MOD_UPDIR)$(top_srcdir)/src/mod @DEFS@ $(CFLGS)
23 MOD_CPPFLAGS = @CPPFLAGS@
24 XLIBS = @XLIBS@
25 MOD_EXT = @MOD_EXT@
26
27 # Note: The following three lines are automatically adjusted by
28 # misc/modconfig. They have to be present here.
29 mods =
30 mod_objs =
31 mod_libs =
32
33 modconfig = $(top_srcdir)/misc/modconfig --bindir=../.. \
34 --top_srcdir=$(top_srcdir)
35 egg_ac_parameters = @egg_ac_parameters@
36
37 MAKE_MOD = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
38 'STRIP=$(STRIP)' 'CFLAGS=$(MOD_CFLAGS)' 'CPPFLAGS=$(MOD_CPPFLAGS)' \
39 'XLIBS=$(XLIBS)' 'MOD_EXT=$(MOD_EXT)' 'SHELL=$(SHELL)' \
40 'MODULE_XLIBS=$(MODULE_XLIBS)'
41
42 MAKE_MODDEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' \
43 'CFLAGS=-I../../.. -I../../../src/mod -DMAKING_DEPEND -DHAVE_CONFIG_H -DMAKING_MODS'
44
45 doofus:
46 @echo ""
47 @echo "Let's try this from the right directory..."
48 @echo ""
49 @cd ../.. && $(MAKE)
50
51 modules: $(mod_libs)
52 @echo ""
53 @echo "All modules compiled."
54
55 static: $(mod_objs)
56 @$(modconfig) static.h
57
58 .SUFFIXES:
59 .SUFFIXES: .mod .mod_so .mod_o
60
61 .mod.mod_so:
62 @if test ! -d $*.mod; then mkdir $*.mod; fi; \
63 if test ! -r $*.mod/Makefile; then \
64 cp $(srcdir)/$*.mod/Makefile $*.mod/Makefile; \
65 fi; \
66 cd $*.mod && $(MAKE_MOD) 'VPATH=$(MOD_UPDIR)$(srcdir)/$*.mod' 'srcdir=$(MOD_UPDIR)$(srcdir)/$*.mod' 'MAKE=$(MAKE)' modules;
67
68 .mod.mod_o:
69 @if test ! -d $*.mod; then mkdir $*.mod; fi; \
70 if test ! -r $*.mod/Makefile; then \
71 cp $(srcdir)/$*.mod/Makefile $*.mod/Makefile; \
72 fi; \
73 cd $*.mod && $(MAKE_MOD) 'VPATH=$(MOD_UPDIR)$(srcdir)/$*.mod' 'srcdir=$(MOD_UPDIR)$(srcdir)/$*.mod' 'MAKE=$(MAKE)' static;
74
75 depend:
76 @for i in $(mods); do \
77 if test ! -d $$i; then mkdir $$i; fi; \
78 if test ! -r $$i/Makefile; then \
79 cp $(srcdir)/$$i/Makefile $$i/Makefile; \
80 fi; \
81 (cd $$i && $(MAKE_MODDEPEND) "VPATH=$(MOD_UPDIR)$(srcdir)/$$i" "srcdir=$(MOD_UPDIR)$(srcdir)/$$i" depend); \
82 done
83
84 config:
85 @for i in $(mods); do \
86 if test -f $(srcdir)/$$i/configure; then \
87 modname=`echo $$i | sed -e 's/.mod//'`; \
88 echo ""; \
89 echo "Configuring module '$${modname}'."; \
90 if test ! -d $$i; then mkdir $$i; fi; \
91 (cd $$i && $(MOD_UPDIR)$(srcdir)/$$i/configure --disable-option-checking $(egg_ac_parameters) --cache-file=../../../config.cache --srcdir=$(MOD_UPDIR)$(top_srcdir)/src/mod/$$i); \
92 fi; \
93 done; \
94 echo ""
95
96 clean:
97 @rm -f *.o *.$(MOD_EXT) *~ static.h mod.xlibs
98 @for i in *.mod; do \
99 if test ! -d $$i; then mkdir $$i; fi; \
100 if (test ! -r $$i/Makefile) && \
101 (test -r $(srcdir)/$$i/Makefile); then \
102 cp $(srcdir)/$$i/Makefile $$i/Makefile; \
103 fi; \
104 if (test -r $$i/Makefile); then \
105 (cd $$i; $(MAKE) "VPATH=$(MOD_UPDIR)$(srcdir)/$$i" "srcdir=$(MOD_UPDIR)$(srcdir)/$$i" 'MAKE=$(MAKE)' clean); \
106 fi; \
107 done
108
109 distclean:
110 @rm -f *.o *.$(MOD_EXT) *~ static.h mod.xlibs
111 @for i in *.mod; do \
112 if test ! -d $$i; then mkdir $$i; fi; \
113 if (test ! -r $$i/Makefile) && \
114 (test -r $(srcdir)/$$i/Makefile); then \
115 cp $(srcdir)/$$i/Makefile $$i/Makefile; \
116 fi; \
117 if (test -r $$i/Makefile); then \
118 (cd $$i; $(MAKE) "VPATH=$(MOD_UPDIR)$(srcdir)/$$i" "srcdir=$(MOD_UPDIR)$(srcdir)/$$i" 'MAKE=$(MAKE)' distclean); \
119 fi; \
120 done
121
122 install: install-help install-language
123
124 install-help:
125 @echo "Copying module help files."
126 @if test ! -d $(DEST)/help; then \
127 echo "Creating 'help' subdirectory."; \
128 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help >/dev/null; \
129 fi; \
130 for i in $(mods); do \
131 if test ! "x`echo $(srcdir)/$$i/help/*.help`" = "x$(srcdir)/$$i/help/*.help"; then \
132 for h in $(srcdir)/$$i/help/*.help; do \
133 $(INSTALL_DATA) $$h $(DEST)/help/; \
134 done; \
135 fi; \
136 done;
137 @if test ! -d $(DEST)/help/msg; then \
138 echo "Creating 'help/msg' subdirectory."; \
139 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg >/dev/null; \
140 fi; \
141 for i in $(mods); do \
142 if test ! "x`echo $(srcdir)/$$i/help/msg/*.help`" = "x$(srcdir)/$$i/help/msg/*.help"; then \
143 for h in $(srcdir)/$$i/help/msg/*.help; do \
144 $(INSTALL_DATA) $$h $(DEST)/help/msg/; \
145 done; \
146 fi; \
147 done;
148 @if test ! -d $(DEST)/help/set; then \
149 echo "Creating 'help/set' subdirectory."; \
150 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set >/dev/null; \
151 fi; \
152 for i in $(mods); do \
153 if test ! "x`echo $(srcdir)/$$i/help/set/*.help`" = "x$(srcdir)/$$i/help/set/*.help"; then \
154 for h in $(srcdir)/$$i/help/set/*.help; do \
155 $(INSTALL_DATA) $$h $(DEST)/help/set/; \
156 done; \
157 fi; \
158 done;
159
160 install-language:
161 @echo "Copying module language files."
162 @if test ! -d $(DEST)/language; then \
163 echo "Creating 'language' subdirectory."; \
164 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language >/dev/null; \
165 fi; \
166 for i in $(mods); do \
167 if test ! "x`echo $(srcdir)/$$i/language/*.lang`" = "x$(srcdir)/$$i/language/*.lang"; then \
168 for h in $(srcdir)/$$i/language/*.lang; do \
169 $(INSTALL_DATA) $$h $(DEST)/language/; \
170 done; \
171 fi; \
172 done;
173
174 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23