2 # Makefile for config subdirectory
10 top_srcdir = @top_srcdir@
15 exec_prefix = @exec_prefix@
20 sendmailpath = @sendmailpath@
25 INCLUDES = -I.. -I$(top_srcdir) @CPPFLAGS@
26 CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
27 -DSENDMAILPATH='"$(sendmailpath)"'
29 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
30 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
42 OBJS = config.o version.o
45 AUX = Makefile.in version.sh
47 # all files in this directory included in the distribution
50 # ========= DEPENDENCIES FOR BUILDING ==========
55 ${srcdir}/version.sh $(VERSION) > version.c
58 $(COMPILE2) $(srcdir)/config.c
66 # ========== DEPENDENCIES FOR CLEANUP ==========
81 # ========== DEPENDENCIES FOR MAINTENANCE ==========
85 Makefile: Makefile.in ../config.status
86 cd .. && ./config.status $(subdir)/$@
88 distdir = ../`cat ../distname`/$(subdir)
90 @echo "Copying distribution files in $(subdir)"
91 @for file in $(DIST); do \
92 cp -p $(srcdir)/$$file $(distdir); \