# 2. Send e-mail to ajc@uncensored.citadel.org and let me know what you
# did, so any necessary changes can be put into the next release.
#
-# $Id$
-#
########################################################################
-TARGETS=@TARGETS@
-CHKPWD=@CHKPWD@
+prefix=@prefix@
+srcdir=@srcdir@
+VPATH=$(srcdir)
-all: $(TARGETS)
+TARGETS=@TARGETS@
+RUN_DIR=@MAKE_RUN_DIR@
+SPOOL_DIR=@MAKE_SPOOL_DIR@
+ETC_DIR=@MAKE_ETC_DIR@
+DATA_DIR=@MAKE_DATA_DIR@
+STATICDATA_DIR=@MAKE_STATICDATA_DIR@
+HELP_DIR=@MAKE_HELP_DIR@
+DOC_DIR=@MAKE_DOC_DIR@
+UTILBIN_DIR=@MAKE_UTILBIN_DIR@
+DEPEND_FLAG=@DEPEND_FLAG@
+all: buildinfo $(TARGETS)
.SUFFIXES: .o .d .c
EXEEXT=@EXEEXT@
-CLIENT_TARGETS=citadel$(EXEEXT) whobbs$(EXEEXT) stress$(EXEEXT)
-SERVER_TARGETS=citserver setup $(CHKPWD)
-SERV_MODULES=serv_chat.o \
- serv_upgrade.o \
- serv_smtp.o \
- serv_spam.o \
- serv_pop3.o \
- serv_vcard.o vcard.o \
- serv_mrtg.o \
- serv_imap.o imap_fetch.o imap_misc.o imap_search.o \
- imap_store.o imap_tools.o \
- serv_network.o \
- serv_listsub.o \
- serv_netfilter.o \
- serv_newuser.o \
- serv_notes.o \
- serv_pas2.o md5.o \
- serv_inetcfg.o \
- serv_rwho.o \
- serv_bio.o \
- serv_expire.o \
- serv_vandelay.o \
- serv_calendar.o \
- ical_dezonify.o \
- serv_ldap.o
-
-UTIL_TARGETS=aidepost msgform \
- citmail userlist sendcommand \
- base64
+SERVER_TARGETS=citserver$(EXEEXT)
+
+include Make_modules
+
+UTIL_TARGETS=citmail$(EXEEXT) sendcommand$(EXEEXT)
+
+UTILBIN_TARGETS= setup$(EXEEXT) \
+ chkpw$(EXEEXT) chkpwd$(EXEEXT) \
+ msgform$(EXEEXT) \
+ ctdlmigrate$(EXEEXT)
-prefix=@prefix@
-srcdir=@srcdir@
ACLOCAL=@ACLOCAL@
-AUTH=@AUTH@
AUTOCONF=@AUTOCONF@
chkpwd_LIBS=@chkpwd_LIBS@
CC=@CC@
-CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@ -I.
+CFLAGS=@CFLAGS@ -I ./include/
+CPPFLAGS=@CPPFLAGS@ -I. -I ./include/
DATABASE=@DATABASE@
-DEFS=@DEFS@
+DEFS=@DEFS@ -DDIFF=\"@DIFF@\" -DPATCH=\"@PATCH@\"
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
LIBOBJS=@LIBOBJS@
SERVER_LIBS=@SERVER_LIBS@
SETUP_LIBS=@SETUP_LIBS@
YACC=@YACC@
+DIFF=@DIFF@
+PATCH=@PATCH@
+LOCALEDIR=@LOCALEDIR@
# End configuration section
-VPATH=$(srcdir)
+.SILENT:
-SOURCES=aidepost.c auth.c base64.c chkpwd.c citadel.c citadel_ipc.c \
- citmail.c citserver.c client_chat.c client_passwords.c \
- clientsocket.c commands.c config.c control.c $(DATABASE) \
- domain.c serv_extensions.c file_ops.c genstamp.c getutline.c \
- housekeeping.c html.c ical_dezonify.c imap_fetch.c imap_misc.c \
- imap_search.c imap_store.c imap_tools.c internet_addressing.c \
- ipc_c_tcp.c locate_host.c md5.c messages.c \
- mime_parser.c msgbase.c msgform.c parsedate.c policy.c \
- room_ops.c rooms.c routines.c routines2.c \
- screen.c sendcommand.c serv_bio.c serv_calendar.c serv_chat.c \
- serv_crypto.c serv_expire.c serv_imap.c serv_inetcfg.c \
- serv_listsub.c serv_mrtg.c serv_netfilter.c serv_network.c \
- serv_newuser.c serv_pas2.c serv_pop3.c serv_rwho.c serv_smtp.c \
- serv_spam.c serv_test.c serv_mrtg.c serv_spam.c serv_upgrade.c \
- serv_vandelay.c serv_vcard.c server_main.c setup.c snprintf.c \
- stress.c support.c sysdep.c tools.c user_ops.c userlist.c \
- whobbs.c vcard.c serv_notes.c
-
-DEP_FILES=$(SOURCES:.c=.d)
-
-client: $(CLIENT_TARGETS)
-server: $(SERVER_TARGETS) $(SERV_MODULES)
+SOURCES=utils/citmail.c \
+ utils/setup.c utils/msgform.c utils/chkpw.c \
+ utils/sendcommand.c \
+ utils/ctdlmigrate.c utils/chkpwd.c \
+ utillib/citadel_dirs.c \
+ citserver.c clientsocket.c config.c control.c $(DATABASE) \
+ domain.c serv_extensions.c genstamp.c \
+ housekeeping.c default_timezone.c internet_addressing.c \
+ locate_host.c auth.c msgbase.c parsedate.c \
+ room_ops.c euidindex.c server_main.c ldap.c \
+ support.c sysdep.c user_ops.c journaling.c threads.c \
+ context.c netconfig.c md5.c
-utils: $(UTIL_TARGETS)
-citadel$(EXEEXT): citadel.o citadel_ipc.o client_chat.o client_passwords.o \
- commands.o html.o ipc_c_tcp.o md5.o messages.o rooms.o routines.o \
- routines2.o screen.o tools.o $(LIBOBJS)
- $(CC) citadel.o citadel_ipc.o client_chat.o client_passwords.o \
- commands.o html.o ipc_c_tcp.o md5.o messages.o rooms.o routines.o \
- routines2.o screen.o tools.o $(LIBOBJS) \
- $(LDFLAGS) -o citadel $(LIBS)
+include Make_sources
+
+# for VPATH builds (invoked by configure)
+mkdir-init:
+ DIRS=`/bin/ls $(VPATH)/modules/`
+ echo $(DIRS)
+ @for d in `/bin/ls $(VPATH)/modules/`; do \
+ (mkdir -p modules/$$d ) ; \
+ done
+ DIRS=`/bin/ls $(VPATH)/user_modules/`
+ echo $(DIRS)
+ @for d in `/bin/ls $(VPATH)/user_modules/`; do \
+ (mkdir -p user_modules/$$d ) ; \
+ done
+ mkdir -p utils utillib
+ mkdir locale
+
+svn_revision.c: ${SOURCES}
+ $(srcdir)/scripts/mk_svn_revision.sh
+
+DEP_FILES=$(SOURCES:.c=.d) modules_init.d modules_upgrade.d
+
+noinst: $(NOINST_TARGETS)
+
+server: $(SERVER_TARGETS) $(SERV_MODULES)
+
+utils: $(UTIL_TARGETS) $(UTILBIN_TARGETS)
.y.c:
$(YACC) $(YFLAGS) $<
parsedate.o: parsedate.c
-SERV_OBJS = server_main.o \
+Make_sources: modules_init.c
+
+Make_modules: modules_init.c
+
+modules_upgrade.c: modules_init.c
+
+SERV_OBJS = server_main.o utillib/citadel_dirs.o \
user_ops.o citserver.o sysdep.o serv_extensions.o \
- tools.o $(DATABASE:.c=.o) domain.o \
- control.o policy.o config.o support.o room_ops.o \
- file_ops.o msgbase.o \
- locate_host.o housekeeping.o mime_parser.o html.o \
- internet_addressing.o \
- serv_crypto.o parsedate.o genstamp.o \
- clientsocket.o $(AUTH) $(SERV_MODULES)
-
-citserver: $(SERV_OBJS)
- $(CC) $(SERV_OBJS) $(LDFLAGS) $(SERVER_LDFLAGS) $(LIBS) $(SERVER_LIBS) $(RESOLV) -o citserver
-
-.c.o:
+ $(DATABASE:.c=.o) domain.o \
+ control.o config.o support.o room_ops.o \
+ msgbase.o euidindex.o \
+ locate_host.o housekeeping.o default_timezone.o \
+ internet_addressing.o journaling.o \
+ parsedate.o genstamp.o threads.o context.o \
+ clientsocket.o modules_init.o modules_upgrade.o $(SERV_MODULES) \
+ svn_revision.o ldap.o netconfig.o md5.o
+
+citserver$(EXEEXT): $(SERV_OBJS)
+ $(CC) $(SERV_OBJS) $(LDFLAGS) $(SERVER_LDFLAGS) $(LIBS) $(SERVER_LIBS) $(RESOLV) -o citserver$(EXEEXT)
+
+%.o: %.c ${HEADERS}
+ echo "CC $<"
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
-aidepost: aidepost.o config.o
- $(CC) aidepost.o config.o $(LDFLAGS) -o aidepost $(LIBS)
-
-citmail: citmail.o config.o
- $(CC) citmail.o config.o $(LDFLAGS) -o citmail $(LIBS)
+citmail$(EXEEXT): utils/citmail.o utillib/citadel_dirs.o
+ $(CC) utils/citmail.o utillib/citadel_dirs.o \
+ $(LDFLAGS) -o citmail$(EXEEXT) $(LIBS)
# setup does need LIBS defined, because it uses network functions which are in -lsocket -lnsl on Solaris.
-setup: setup.o tools.o
- $(CC) setup.o tools.o $(LDFLAGS) -o setup $(LIBS) $(SETUP_LIBS)
+setup$(EXEEXT): utils/setup.o utillib/citadel_dirs.o
+ $(CC) utils/setup.o utillib/citadel_dirs.o \
+ $(LDFLAGS) -o setup$(EXEEXT) $(LIBS) $(SETUP_LIBS)
-chkpwd: chkpwd.o auth.o config.o
- $(CC) chkpwd.o auth.o config.o $(LDFLAGS) -o chkpwd $(chkpwd_LIBS)
+ctdlmigrate$(EXEEXT): utils/ctdlmigrate.o utillib/citadel_dirs.o
+ $(CC) utils/ctdlmigrate.o utillib/citadel_dirs.o \
+ $(LDFLAGS) -o ctdlmigrate$(EXEEXT) $(LIBS)
-whobbs$(EXEEXT): whobbs.o ipc_c_tcp.o tools.o citadel_ipc.o $(LIBOBJS)
- $(CC) whobbs.o ipc_c_tcp.o tools.o citadel_ipc.o $(LIBOBJS) $(LDFLAGS) -o whobbs $(LIBS)
+chkpwd$(EXEEXT): utils/chkpwd.o auth.o
+ $(CC) utils/chkpwd.o auth.o $(LDFLAGS) -o chkpwd$(EXEEXT) $(chkpwd_LIBS)
-stress$(EXEEXT): stress.o ipc_c_tcp.o tools.o citadel_ipc.o $(LIBOBJS)
- $(CC) stress.o ipc_c_tcp.o tools.o citadel_ipc.o $(LIBOBJS) $(LDFLAGS) -o stress $(LIBS)
+chkpw$(EXEEXT): utils/chkpw.o auth.o utillib/citadel_dirs.o
+ $(CC) utils/chkpw.o auth.o utillib/citadel_dirs.o \
+ $(LDFLAGS) -o chkpw$(EXEEXT) $(chkpwd_LIBS)
-sendcommand: sendcommand.o ipc_c_tcp.o citadel_ipc.o tools.o config.o $(LIBOBJS)
- $(CC) sendcommand.o ipc_c_tcp.o citadel_ipc.o tools.o config.o \
- $(LIBOBJS) $(LDFLAGS) -o sendcommand $(LIBS)
+sendcommand$(EXEEXT): utils/sendcommand.o utillib/citadel_dirs.o $(LIBOBJS)
+ $(CC) utils/sendcommand.o utillib/citadel_dirs.o \
+ $(LIBOBJS) $(LDFLAGS) -o sendcommand$(EXEEXT) $(LIBS)
-base64: base64.o
- $(CC) base64.o $(LDFLAGS) -o base64
+msgform$(EXEEXT): utils/msgform.o
+ $(CC) utils/msgform.o $(LDFLAGS) -o msgform$(EXEEXT)
-userlist: userlist.o ipc_c_tcp.o citadel_ipc.o tools.o $(LIBOBJS)
- $(CC) userlist.o ipc_c_tcp.o citadel_ipc.o tools.o \
- $(LIBOBJS) $(LDFLAGS) -o userlist $(LIBS)
+.PHONY: install-data install-doc install-exec clean cleaner distclean
-msgform: msgform.o
- $(CC) msgform.o $(LDFLAGS) -o msgform
+install-locale:
+ cd po/citadel-setup
+ $(MAKE)
+ for i in `find locale -type d | grep -v .svn` \
+ ; do \
+ test -d $(DESTDIR)$(LOCALEDIR)/$$i || mkdir -p $(DESTDIR)$(LOCALEDIR)/$$i; \
+ done
+ for i in `find locale -type f | grep -v .svn`; do \
+ $(INSTALL) $$i $(DESTDIR)$(LOCALEDIR)/$$i; \
+ done
-.PHONY: install-data install-doc install-exec clean cleaner distclean
+install: install-exec install-data install-doc install-locale
+ @echo
+ @echo Installation is complete.
+ @echo Now go to your Citadel directory and run 'setup'.
+ @echo
-install: install-exec install-data install-doc
+install-new: install-exec-new install-data-new install-doc-new install-locale
@echo
@echo Installation is complete.
@echo Now go to your Citadel directory and run 'setup'.
@echo
install-data:
- @for i in help messages network/spoolin network/spoolout \
- network/systems; do \
- $(srcdir)/mkinstalldirs $(root)$(prefix)/$$i; \
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/messages
+ @for i in public_clients citadel_urlshorteners.rc \
+ `find $(srcdir)/messages $(srcdir)/network -type f | grep -v .svn`; do \
+ echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
done
- @for i in citadel.rc public_clients \
- `find $(srcdir)/help $(srcdir)/messages $(srcdir)/network -type f | grep -v CVS`; do \
- echo $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
- $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
+ -@if test -d $(DESTDIR)/etc/pam.d; then \
+ echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
+ $(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
+ fi
+
+install-data-new:
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(ETC_DIR)/
+ $(INSTALL_DATA) $(srcdir)/public_clients $(DESTDIR)$(ETC_DIR)/public_clients
+ $(INSTALL_DATA) $(srcdir)/citadel_urlshorteners.rc $(DESTDIR)$(ETC_DIR)/citadel_urlshorteners.rc
+ $(INSTALL_DATA) $(srcdir)/network/mail.aliases $(DESTDIR)$(ETC_DIR)/mail.aliases
+
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(STATICDATA_DIR)/messages
+ @for i in \
+ `find $(srcdir)/messages -type f | grep -v .svn`; do \
+ echo $(INSTALL_DATA) $$i $(DESTDIR)$(STATICDATA_DIR)/$$i; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(STATICDATA_DIR)/$$i; \
done
- -@if test -d $(root)/etc/pam.d; then \
- echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \
- $(INSTALL_DATA) $(srcdir)/citadel.pam $(root)/etc/pam.d/citadel; \
+ -@if test -d $(DESTDIR)/etc/pam.d; then \
+ echo $(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
+ $(INSTALL_DATA) $(srcdir)/citadel.pam $(DESTDIR)/etc/pam.d/citadel; \
fi
+ @for i in files; do \
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(DATA_DIR)/$$i; \
+ done
install-doc:
- @$(srcdir)/mkinstalldirs $(root)$(prefix)/docs
- @for i in `find $(srcdir)/docs -type f | grep -v CVS`; do \
- echo $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
- $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
+ @$(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/docs
+ @for i in `find $(srcdir)/docs -type f | grep -v .svn`; do \
+ echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/$$i; \
+ done
+ echo $(INSTALL_DATA) README.txt $(DESTDIR)$(prefix)/README.txt
+ $(INSTALL_DATA) README.txt $(DESTDIR)$(prefix)/README.txt
+
+install-doc-new:
+ @$(srcdir)/mkinstalldirs $(DESTDIR)$(DOC_DIR)/docs
+ @for i in `find $(srcdir)/docs -type f | grep -v .svn`; do \
+ echo $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
done
- @$(srcdir)/mkinstalldirs $(root)$(prefix)/techdoc
- @for i in `find $(srcdir)/techdoc -type f | grep -v CVS`; do \
- echo $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
- $(INSTALL_DATA) $$i $(root)$(prefix)/$$i; \
+ @$(srcdir)/mkinstalldirs $(DESTDIR)$(DOC_DIR)/techdoc
+ @for i in `find $(srcdir)/techdoc -type f | grep -v .svn`; do \
+ echo $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(DOC_DIR)/$$i; \
done
- echo $(INSTALL_DATA) README.txt $(root)$(prefix)/README.txt
- $(INSTALL_DATA) README.txt $(root)$(prefix)/README.txt
+ $(INSTALL_DATA) README.txt $(DESTDIR)$(DOC_DIR)/README.txt
install-exec: all
- @for i in bio bitbucket files images info userpics; do \
- $(srcdir)/mkinstalldirs $(root)$(prefix)/$$i; \
+ @for i in files; do \
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/$$i; \
done
- @for i in $(CLIENT_TARGETS) $(SERVER_TARGETS) $(UTIL_TARGETS); do \
+ @for i in $(SERVER_TARGETS) $(UTIL_TARGETS) $(UTILBIN_TARGETS); do \
if test -f $$i; then \
- echo $(INSTALL) $$i $(root)$(prefix)/$$i; \
- $(INSTALL) $$i $(root)$(prefix)/$$i; \
+ echo $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i; \
+ $(INSTALL) $$i $(DESTDIR)$(prefix)/$$i; \
fi \
done
- @for i in utilsmenu database_cleanup.sh citadel-openldap.schema ; do \
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(prefix)/unstripped
+ cp $(SERVER_TARGETS) $(DESTDIR)$(prefix)/unstripped/
+
+ @for i in utilsmenu database_cleanup.sh migrate_aliases.sh; do \
if test -f $(srcdir)/$$i; then \
- echo $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/$$i; \
- $(INSTALL) $(srcdir)/$$i $(root)$(prefix)/$$i; \
+ echo $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
+ $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(prefix)/$$i; \
+ fi \
+ done
+
+install-exec-new: all
+ $(srcdir)/mkinstalldirs $(DESTDIR)/usr/sbin;
+ $(srcdir)/mkinstalldirs $(DESTDIR)/usr/bin;
+ $(srcdir)/mkinstalldirs $(DESTDIR)/usr/bin;
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(UTILBIN_DIR);
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(DOC_DIR);
+ @for i in $(SERVER_TARGETS) $(UTIL_TARGETS); do \
+ if test -f $$i; then \
+ echo $(INSTALL) $$i $(DESTDIR)/usr/sbin/$$i; \
+ $(INSTALL) $$i $(DESTDIR)/usr/sbin/$$i; \
+ fi \
+ done
+ cp citserver $(DESTDIR)/$(UTILBIN_DIR)/citserver.unstripped
+ cp migrate_aliases.sh $(DESTDIR)/$(UTILBIN_DIR)/
+ @for i in $(UTILBIN_TARGETS); do \
+ if test -f $$i; then \
+ echo $(INSTALL) $$i $(DESTDIR)/$(UTILBIN_DIR)/$$i; \
+ $(INSTALL) $$i $(DESTDIR)/$(UTILBIN_DIR)/$$i; \
+ fi \
+ done
+
+ $(INSTALL) citmail $(DESTDIR)/usr/sbin/sendmail;
+ @for i in utilsmenu database_cleanup.sh; do \
+ if test -f $(srcdir)/$$i; then \
+ echo $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(DOC_DIR)/$$i; \
+ $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(DOC_DIR)/$$i; \
fi \
done
- @if test x`find $(root)$(prefix)/chkpwd -user root` = x$(root)$(prefix)/chkpwd; then \
- echo chmod u+s $(root)$(prefix)/chkpwd; \
- chmod u+s $(root)$(prefix)/chkpwd; \
- fi
clean:
- rm -f *.o parsedate.c
+ rm -vfr locale/*
+ rm -vf *.o
+ rm -vf utils/*.o ;\
+ rm -vf utillib/*.o ;\
+ for i in $(srcdir)/modules/* ; do \
+ rm -vf $$i/*.o ;\
+ done
+ if test -d $(srcdir)/user_modules ; then \
+ for i in $(srcdir)/user_modules/* ; do \
+ rm -vf $$i/*.o ;\
+ done \
+ fi
+ rm -vf $(SERVER_TARGETS) $(UTIL_TARGETS) $(UTILBIN_TARGETS) $(NOINST_TARGETS)
+
cleaner: clean
- rm -rf $(CLIENT_TARGETS) $(SERVER_TARGETS) $(UTIL_TARGETS) *.la
+ rm -vrf $(SERVER_TARGETS) $(UTIL_TARGETS) $(UTILBIN_TARGETS) $(NOINST_TARGETS) database_cleanup.sh *.la
+ rm -vrf modules_upgrade.c modules_init.c modules_init.h Make_modules Make_sources
distclean: cleaner
- find . -name '*~' -o -name '.#*' | xargs rm -f
- rm -f Makefile sysdep.h config.cache config/.og config.status *.d
+ find . -name '*~' -o -name '.#*' | xargs rm -vf
+ rm -vf po/Makefile
+ rm -vf Makefile configure sysdep.h config.cache config.log config.status *.d package-version.txt
+ rm -vf utils/*.d ;
+ rm -vf utillib/*.d ;
+ for i in $(srcdir)/modules/* ; do \
+ rm -vf $$i/*.d ;\
+ done
+ if test -d $(srcdir)/user_modules ; then \
+ for i in $(srcdir)/user_modules/* ; do \
+ rm -vf $$i/*.o ;\
+ done \
+ fi
.c.d:
@echo Checking dependencies for $<
- @$(CC) -M $(CPPFLAGS) $< | sed -e 's!$*.o!$*.o $*/.o $@!' > $@
+ @$(CC) $(DEPEND_FLAG) $(CPPFLAGS) $< | sed -e 's!$*.o!$*.o $*/.o $@!' > $@
@test -s $@ || rm -f $@
Makefile: $(srcdir)/Makefile.in config.status
$(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4
cd $(srcdir) && $(ACLOCAL)
+buildinfo:
+ echo
+ echo "Dependencies: $(CC) $(DEPEND_FLAG) $(CPPFLAGS) $< | sed -e 's!$*.o!$*.o $*/.o $@!' > $@"
+ echo "Compile: $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@ "
+ echo "LDFLAGS: $(LDFLAGS)"
+ echo
+
-include $(DEP_FILES)