"Fossies" - the Fresh Open Source Software Archive

Member "citadel/Makefile.in" (5 Jun 2021, 10100 Bytes) of package /linux/www/citadel.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Makefile.in": 8.24_vs_9.01.

    1 ########################################################################
    2 #
    3 # Makefile for Citadel Server
    4 #
    5 # NOTE: normally you should not have to modify the Makefile.  All
    6 # system-dependent configuration is in the "configure" script, which
    7 # uses "Makefile.in" to generate a "Makefile".  In the rare instance
    8 # that you have to modify something here, please edit Makefile.in,
    9 # *not* Makefile.
   10 #
   11 ########################################################################
   12 
   13 prefix=@prefix@
   14 srcdir=@srcdir@
   15 VPATH=$(srcdir)
   16 
   17 TARGETS=@TARGETS@
   18 RUN_DIR=@MAKE_RUN_DIR@
   19 SPOOL_DIR=@MAKE_SPOOL_DIR@
   20 ETC_DIR=@MAKE_ETC_DIR@
   21 DATA_DIR=@MAKE_DATA_DIR@
   22 STATICDATA_DIR=@MAKE_STATICDATA_DIR@
   23 HELP_DIR=@MAKE_HELP_DIR@
   24 DOC_DIR=@MAKE_DOC_DIR@
   25 UTILBIN_DIR=@MAKE_UTILBIN_DIR@
   26 DEPEND_FLAG=@DEPEND_FLAG@
   27 all: buildinfo $(TARGETS)
   28 
   29 .SUFFIXES: .o .d .c
   30 
   31 EXEEXT=@EXEEXT@
   32 
   33 SERVER_TARGETS=citserver$(EXEEXT)
   34 
   35 include Make_modules
   36 
   37 UTIL_TARGETS=citmail$(EXEEXT) sendcommand$(EXEEXT)
   38 
   39 UTILBIN_TARGETS= setup$(EXEEXT) \
   40 	chkpw$(EXEEXT) chkpwd$(EXEEXT) \
   41 	ctdlmigrate$(EXEEXT)
   42 
   43 ACLOCAL=@ACLOCAL@
   44 AUTOCONF=@AUTOCONF@
   45 chkpwd_LIBS=@chkpwd_LIBS@
   46 CC=@CC@
   47 CFLAGS=@CFLAGS@ -I.
   48 CPPFLAGS=@CPPFLAGS@ -I.
   49 DATABASE=@DATABASE@
   50 DEFS=@DEFS@ -DDIFF=\"@DIFF@\" -DPATCH=\"@PATCH@\"
   51 LDFLAGS=@LDFLAGS@ -rdynamic
   52 LIBS=@LIBS@
   53 LIBOBJS=@LIBOBJS@
   54 INSTALL=@INSTALL@
   55 INSTALL_DATA=@INSTALL_DATA@
   56 RESOLV=@RESOLV@
   57 SHELL=/bin/sh
   58 SERVER_LDFLAGS=@SERVER_LDFLAGS@ -rdynamic
   59 SERVER_LIBS=@SERVER_LIBS@
   60 SETUP_LIBS=@SETUP_LIBS@
   61 YACC=@YACC@
   62 DIFF=@DIFF@
   63 PATCH=@PATCH@
   64 LOCALEDIR=@LOCALEDIR@
   65 
   66 # End configuration section
   67 
   68 .SILENT:
   69 
   70 
   71 SOURCES=citmail.c setup.c chkpw.c \
   72 	sendcommand.c  ctdlmigrate.c chkpwd.c \
   73 	citadel_dirs.c \
   74 	citserver.c clientsocket.c config.c control.c $(DATABASE) \
   75 	domain.c serv_extensions.c genstamp.c \
   76 	housekeeping.c default_timezone.c internet_addressing.c \
   77 	locate_host.c auth.c msgbase.c parsedate.c \
   78 	room_ops.c euidindex.c server_main.c ldap.c \
   79 	support.c sysdep.c user_ops.c journaling.c threads.c \
   80 	context.c netconfig.c
   81 
   82 include Make_sources
   83 
   84 # for VPATH builds (invoked by configure)
   85 mkdir-init:
   86 	DIRS=`/bin/ls $(VPATH)/modules/`
   87 	echo $(DIRS)
   88 	@for d in `/bin/ls $(VPATH)/modules/`; do \
   89 		(mkdir -p modules/$$d ) ; \
   90 	done
   91 	DIRS=`/bin/ls $(VPATH)/user_modules/`
   92 	echo $(DIRS)
   93 	@for d in `/bin/ls $(VPATH)/user_modules/`; do \
   94 		(mkdir -p user_modules/$$d ) ; \
   95 	done
   96 	mkdir locale
   97 
   98 svn_revision.c: ${SOURCES}
   99 	$(srcdir)/scripts/mk_svn_revision.sh
  100 
  101 DEP_FILES=$(SOURCES:.c=.d) modules_init.d modules_upgrade.d
  102 
  103 noinst: $(NOINST_TARGETS)
  104 
  105 server: $(SERVER_TARGETS) $(SERV_MODULES)
  106 
  107 utils: $(UTIL_TARGETS) $(UTILBIN_TARGETS)
  108 
  109 .y.c:
  110 	$(YACC) $(YFLAGS) $<
  111 	mv -f y.tab.c $@
  112 
  113 parsedate.o: parsedate.c
  114 
  115 Make_sources: modules_init.c
  116 
  117 Make_modules: modules_init.c
  118 
  119 modules_upgrade.c: modules_init.c
  120 
  121 SERV_OBJS = server_main.o citadel_dirs.o \
  122 	user_ops.o citserver.o sysdep.o serv_extensions.o \
  123 	$(DATABASE:.c=.o) domain.o \
  124 	control.o config.o support.o room_ops.o \
  125 	msgbase.o euidindex.o \
  126 	locate_host.o housekeeping.o default_timezone.o \
  127 	internet_addressing.o journaling.o \
  128 	parsedate.o genstamp.o threads.o context.o \
  129 	clientsocket.o modules_init.o modules_upgrade.o $(SERV_MODULES) \
  130 	svn_revision.o ldap.o netconfig.o
  131 
  132 citserver$(EXEEXT): $(SERV_OBJS)
  133 	$(CC) $(SERV_OBJS) $(LDFLAGS) $(SERVER_LDFLAGS) $(LIBS) $(SERVER_LIBS) $(RESOLV) -o citserver$(EXEEXT)
  134 
  135 %.o: %.c ${HEADERS}
  136 	echo "CC $<"
  137 	$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
  138 
  139 citmail$(EXEEXT): citmail.o citadel_dirs.o
  140 	$(CC) citmail.o citadel_dirs.o \
  141 		$(LDFLAGS) -o citmail$(EXEEXT) $(LIBS)
  142 
  143 # setup does need LIBS defined, because it uses network functions which are in -lsocket -lnsl on Solaris.
  144 setup$(EXEEXT): setup.o citadel_dirs.o
  145 	$(CC) setup.o citadel_dirs.o \
  146 		$(LDFLAGS) -o setup$(EXEEXT) $(LIBS) $(SETUP_LIBS)
  147 
  148 ctdlmigrate$(EXEEXT): ctdlmigrate.o citadel_dirs.o
  149 	$(CC) ctdlmigrate.o citadel_dirs.o \
  150 		$(LDFLAGS) -lreadline -o ctdlmigrate$(EXEEXT) $(LIBS)
  151 
  152 chkpwd$(EXEEXT): chkpwd.o auth.o
  153 	$(CC) chkpwd.o auth.o $(LDFLAGS) -o chkpwd$(EXEEXT) $(chkpwd_LIBS)
  154 
  155 chkpw$(EXEEXT): chkpw.o auth.o citadel_dirs.o
  156 	$(CC) chkpw.o auth.o citadel_dirs.o \
  157 		$(LDFLAGS) -o chkpw$(EXEEXT) $(chkpwd_LIBS)
  158 
  159 sendcommand$(EXEEXT): sendcommand.o citadel_dirs.o $(LIBOBJS)
  160 	$(CC) sendcommand.o citadel_dirs.o \
  161 		$(LIBOBJS) $(LDFLAGS) -o sendcommand$(EXEEXT) $(LIBS)
  162 
  163 .PHONY: install-data install-doc install-exec clean cleaner distclean
  164 
  165 install-locale:
  166 	cd po/citadel-setup
  167 	$(MAKE)
  168 	for i in `find locale -type d | grep -v .svn` \
  169 		; do \
  170 		test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
  171 	done
  172 	for i in `find locale -type f | grep -v .svn`; do \
  173 		$(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
  174 	done
  175 
  176 install: install-exec install-data install-doc install-locale
  177 	@echo 
  178 	@echo Installation is complete.
  179 	@echo Now go to your Citadel directory and run 'setup'.
  180 	@echo 
  181 
  182 install-new: install-exec-new install-data-new install-doc-new install-locale
  183 	@echo 
  184 	@echo Installation is complete.
  185 	@echo Now go to your Citadel directory and run 'setup'.
  186 	@echo 
  187 
  188 upgrade: install-exec install-doc
  189 	@echo
  190 	@echo Upgrade is complete.
  191 	@echo Now go to your Citadel directory and run 'setup'.
  192 	@echo
  193 
  194 install-data:
  195 	$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/messages
  196 	-@if test -d $(DESTDIR)/etc/pam.d; then \
  197 		echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
  198 		$(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
  199 	fi
  200 
  201 install-data-new:
  202 	$(srcdir)/mkinstalldirs $(DESTDIR)$(ETC_DIR)/
  203 
  204 	$(srcdir)/mkinstalldirs $(DESTDIR)$(STATICDATA_DIR)/messages
  205 	@for i in  \
  206 		 `find $(srcdir)/messages  -type f | grep -v .svn`; do \
  207 		echo $(INSTALL_DATA) $$i $(DESTDIR)$(STATICDATA_DIR)/$$i; \
  208 		$(INSTALL_DATA) $$i $(DESTDIR)$(STATICDATA_DIR)/$$i; \
  209 	done
  210 	-@if test -d $(DESTDIR)/etc/pam.d; then \
  211 		echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
  212 		$(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
  213 	fi
  214 	@for i in files; do \
  215 		$(srcdir)/mkinstalldirs $(DESTDIR)$(DATA_DIR)/$$i; \
  216 	done
  217 
  218 install-doc:
  219 	@$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/docs
  220 	@for i in `find $(srcdir)/docs -type f | grep -v .svn`; do \
  221 		echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
  222 		$(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
  223 	done
  224 	echo $(INSTALL_DATA) README.txt $(DESTDIR)$(prefix)/README.txt
  225 	$(INSTALL_DATA) README.txt $(DESTDIR)$(prefix)/README.txt
  226 
  227 install-doc-new:
  228 	@$(srcdir)/mkinstalldirs $(DESTDIR)$(DOC_DIR)/docs
  229 	@for i in `find $(srcdir)/docs -type f | grep -v .svn`; do \
  230 		echo $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
  231 		$(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
  232 	done
  233 	@$(srcdir)/mkinstalldirs $(DESTDIR)$(DOC_DIR)/techdoc
  234 	@for i in `find $(srcdir)/techdoc -type f | grep -v .svn`; do \
  235 		echo $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
  236 		$(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
  237 	done
  238 	$(INSTALL_DATA) README.txt $(DESTDIR)$(DOC_DIR)/README.txt
  239 
  240 install-exec: all
  241 	@for i in files; do \
  242 		$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/$$i; \
  243 	done
  244 	@for i in $(SERVER_TARGETS) $(UTIL_TARGETS) $(UTILBIN_TARGETS); do \
  245 		if test -f $$i; then \
  246 			echo $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i; \
  247 			$(INSTALL) $$i $(DESTDIR)$(prefix)/$$i; \
  248 		fi \
  249 	done
  250 	$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/unstripped
  251 	cp $(SERVER_TARGETS) $(DESTDIR)$(prefix)/unstripped/
  252 
  253 	@for i in utilsmenu database_cleanup.sh ; do \
  254 		if test -f $(srcdir)/$$i; then \
  255 			echo $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
  256 			$(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
  257 		fi \
  258 	done
  259 
  260 install-exec-new: all
  261 	$(srcdir)/mkinstalldirs $(DESTDIR)/usr/sbin; 
  262 	$(srcdir)/mkinstalldirs $(DESTDIR)/usr/bin; 
  263 	$(srcdir)/mkinstalldirs $(DESTDIR)/usr/bin; 
  264 	$(srcdir)/mkinstalldirs $(DESTDIR)$(UTILBIN_DIR); 
  265 	$(srcdir)/mkinstalldirs $(DESTDIR)$(DOC_DIR);
  266 	@for i in $(SERVER_TARGETS) $(UTIL_TARGETS); do \
  267 		if test -f $$i; then \
  268 			echo $(INSTALL) $$i $(DESTDIR)/usr/sbin/$$i; \
  269 			$(INSTALL) $$i $(DESTDIR)/usr/sbin/$$i; \
  270 		fi \
  271 	done
  272 	cp citserver $(DESTDIR)/$(UTILBIN_DIR)/citserver.unstripped
  273 	@for i in $(UTILBIN_TARGETS); do \
  274 		if test -f $$i; then \
  275 			echo $(INSTALL) $$i $(DESTDIR)/$(UTILBIN_DIR)/$$i; \
  276 			$(INSTALL) $$i $(DESTDIR)/$(UTILBIN_DIR)/$$i; \
  277 		fi \
  278 	done
  279 
  280 	$(INSTALL) citmail $(DESTDIR)/usr/sbin/sendmail;
  281 	@for i in utilsmenu database_cleanup.sh; do \
  282 		if test -f $(srcdir)/$$i; then \
  283 			echo $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(DOC_DIR)/$$i; \
  284 			$(INSTALL) $(srcdir)/$$i $(DESTDIR)$(DOC_DIR)/$$i; \
  285 		fi \
  286 	done
  287 
  288 clean:
  289 	rm -vfr locale/*
  290 	rm -vf *.o 
  291 	rm -vf *.o ;\
  292 	for i in $(srcdir)/modules/* ; do \
  293 		rm -vf $$i/*.o ;\
  294 	done
  295 	if test -d $(srcdir)/user_modules ; then \
  296 		for i in $(srcdir)/user_modules/* ; do \
  297 			rm -vf $$i/*.o ;\
  298 		done \
  299 	fi
  300 	rm -vf $(SERVER_TARGETS) $(UTIL_TARGETS) $(UTILBIN_TARGETS) $(NOINST_TARGETS)
  301 
  302 cleaner: clean
  303 	rm -vrf $(SERVER_TARGETS) $(UTIL_TARGETS) $(UTILBIN_TARGETS) $(NOINST_TARGETS) *.la
  304 	rm -vrf modules_upgrade.c modules_init.c modules_init.h Make_modules Make_sources
  305 
  306 distclean: cleaner
  307 	find . -name '*~' -o -name '.#*' | xargs rm -vf
  308 	rm -vf po/Makefile 
  309 	rm -vf Makefile configure sysdep.h config.cache config.log config.status *.d package-version.txt
  310 	for i in $(srcdir)/modules/* ; do \
  311 		rm -vf $$i/*.d ;\
  312 	done
  313 	if test -d $(srcdir)/user_modules ; then \
  314 		for i in $(srcdir)/user_modules/* ; do \
  315 			rm -vf $$i/*.o ;\
  316 		done \
  317 	fi
  318 
  319 .c.d:
  320 	@echo Checking dependencies for $<
  321 	@$(CC) $(DEPEND_FLAG) $(CPPFLAGS) $< | sed -e 's!$*.o!$*.o $*/.o $@!' > $@
  322 	@test -s $@ || rm -f $@
  323 
  324 Makefile: $(srcdir)/Makefile.in config.status
  325 	CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
  326 
  327 config.status: $(srcdir)/configure
  328 	$(SHELL) ./config.status --recheck
  329 
  330 $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4
  331 	cd $(srcdir) && $(AUTOCONF)
  332 
  333 $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
  334 	cd $(srcdir) && $(ACLOCAL)
  335 
  336 buildinfo:
  337 	echo
  338 	echo "Dependencies: $(CC) $(DEPEND_FLAG) $(CPPFLAGS) $< | sed -e 's!$*.o!$*.o $*/.o $@!' > $@"
  339 	echo "Compile: $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@ "
  340 	echo "LDFLAGS: $(LDFLAGS)"
  341 	echo
  342 
  343 -include $(DEP_FILES)