2 # Makefile for config subdirectory
10 top_srcdir = @top_srcdir@
15 exec_prefix = @exec_prefix@
20 sendmailpath = @sendmailpath@
21 mailspool = @mailspool@
26 INCLUDES = -I$(top_srcdir) @CPPFLAGS@
27 CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' \
28 -DSENDMAILPATH='"$(sendmailpath)"' \
29 -DMAILSPOOL='"$(mailspool)"'
31 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
32 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
44 OBJS = config.o version.o
47 AUX = Makefile.in version.sh
49 # all files in this directory included in the distribution
52 # ========= DEPENDENCIES FOR BUILDING ==========
57 ${srcdir}/version.sh $(VERSION) > version.c
60 $(COMPILE2) $(srcdir)/config.c
68 # ========== DEPENDENCIES FOR CLEANUP ==========
83 # ========== DEPENDENCIES FOR MAINTENANCE ==========
87 Makefile: Makefile.in ../config.status
88 cd .. && ./config.status $(subdir)/$@
90 distdir = ../`cat ../distname`/$(subdir)
92 @echo "Copying distribution files in $(subdir)"
93 @for file in $(DIST); do \
94 cp -p $(srcdir)/$$file $(distdir); \