ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/contrib/Makefile.in
Revision: 715
Committed: Fri Jul 14 21:01:55 2006 UTC (20 years, 1 month ago) by michael
File size: 3305 byte(s)
Log Message:
- Rebuilt configure using autoconf 2.60

File Contents

# User Rev Content
1 adx 30 #
2     # Makefile.in for ircd/contrib
3     #
4 knight 31 # $Id$
5 adx 30 #
6     CC = @CC@
7     RM = @RM@
8     SED = @SED@
9     SEDOBJ = @SEDOBJ@
10     STDOUT = @STDOUT@
11     MV = @MV@
12     CFLAGS = @IRC_CFLAGS@
13     LD = @LD@
14     LN = @LN@
15     PICFLAGS = @PICFLAGS@
16     MKDEP = @MKDEP@
17     INSTALL = @INSTALL@
18     INSTALL_DATA = @INSTALL_DATA@
19    
20     prefix = $(DESTDIR)@prefix@
21 michael 715 datarootdir = $(DESTDIR)@datarootdir@
22 adx 30
23     AUTOMODULEDIR = ${prefix}/modules
24    
25     SSL_LIBS = @SSL_LIBS@
26     SSL_INCLUDES = @SSL_INCLUDES@
27    
28     IRCDLIBS = @LIBS@ $(SSL_LIBS)
29    
30     INCLUDES = -I../include -I../lib/pcre $(SSL_INCLUDES)
31     CPPFLAGS = ${INCLUDES} @CPPFLAGS@
32    
33     SRCS = \
34     ip_cloaking.c \
35     m_capture.c \
36     m_change.c \
37     m_clearchan.c \
38     m_classlist.c \
39     m_ctrace.c \
40     m_flags.c \
41     m_force.c \
42     m_jupe.c \
43     m_killhost.c \
44     m_ltrace.c \
45     m_mkpasswd.c \
46     m_ojoin.c \
47     m_operspy.c \
48     m_opme.c \
49     m_services.c \
50     m_spoof.c
51    
52     SHARED_ONLY_SRCS = \
53     spy_admin_notice.c \
54     spy_info_notice.c \
55     spy_links_notice.c \
56     spy_motd_notice.c \
57     spy_stats_notice.c \
58     spy_stats_p_notice.c \
59     spy_trace_notice.c \
60     spy_whois_notice.c
61    
62     OBJS = ${SRCS:.c=.so} ${SHARED_ONLY_SRCS:.c=.so}
63     SOBJS = ${SRCS:.c=.o}
64     SLOBJS = ${OBJS:.so=.sl}
65    
66     default: build
67     build: all
68     all: .depend @MOD_TARGET@
69    
70     libmodules.a: ../modules/libmodules.a $(SOBJS)
71     @echo "WARNING WARNING WARNING"
72     @echo "These modules are unsupported by the hybrid team, but due to the"
73     @echo "limits of your OS we link them all in by default. If you do NOT"
74     @echo "want this to happen, take out references to the modules you don't"
75     @echo "want in include/modules.h, src/modules.c, and this Makefile (SRCS.)"
76     @echo "YOU HAVE BEEN WARNED!"
77    
78     $(AR) csrv ../modules/libmodules.a $(SOBJS)
79    
80     cd ../src && \
81     $(CC) $(CPPFLAGS) $(CFLAGS) -DBUILD_CONTRIB -c modules.c || exit; \
82     ${MAKE} ircd
83    
84     @echo "New statically linked ircd binary has been generated; suggest $(MAKE) install."
85    
86     shared_modules: $(OBJS)
87    
88     hpux_shared: $(OBJS) $(SLOBJS)
89    
90     ../modules/libmodules.a:
91     cd ../modules && ${MAKE}
92    
93     install: all install_@MOD_TARGET@ install_help
94    
95     install_shared_modules: $(OBJS)
96     mkdir -p $(AUTOMODULEDIR)
97     @echo "Installing modules into $(AUTOMODULEDIR) .."
98     @for file in $(OBJS); do \
99     $(INSTALL_DATA) $$file $(AUTOMODULEDIR); \
100     done
101    
102     install_hpux_shared: $(SLOBJS)
103     mkdir -p $(AUTOMODULEDIR)
104     @echo "Installing modules into $(AUTOMODULEDIR) .."
105     @for file in $(SLOBJS); do \
106     $(INSTALL_DATA) $$file $(AUTOMODULEDIR); \
107     done
108    
109     install_help:
110     cd help && ${MAKE} install || exit; cd ..;
111    
112     install_libmodules.a:
113     # Ye olde noop.
114    
115     .SUFFIXES: .so .sl .o
116    
117     .c.so:
118     ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@
119    
120     .c.o:
121     ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@
122    
123     .so.sl:
124     ${LD} -b $< -o $@
125    
126     .depend:
127     ${MKDEP} ${CPPFLAGS} ${SRCS} ${STDOUT}
128     ${SED} -e '${SEDOBJ}' < .depend > .depend.tmp
129     @${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend
130     @echo '# Autogenerated - do not delete' >>Makefile.depend
131     @echo 'include .depend' >> Makefile.depend
132     @${MV} Makefile.depend Makefile
133     ${MV} -f .depend.tmp .depend
134    
135     clean:
136     ${RM} -f *.so *.o *.sl *~
137     cd help && ${MAKE} clean || exit; cd ..;
138    
139     distclean: clean
140     ${RM} -f Makefile .depend
141     cd help && ${MAKE} distclean || exit; cd ..;
142    
143     .PHONY: depend clean distclean install_hpux_shared install_libmodules.a install_help shared_modules install hpux_shared build

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision