# Tidy-up targets
-clean:; @echo ""; echo '*** "make clean" just removes all .o and .a files'
+clean_exim:; cd build-$(buildname); \
+ $(RM_COMMAND) -f *.o; \
+ for d in lookups auths routers transports miscmods; do \
+ $(RM_COMMAND) -f $$d/*.{o,a,so}; \
+ done; \
+ $(RM_COMMAND) -fr dynmodules
+
+clean: clean_exim
+ @echo ""; echo '*** "make clean" just removes all .o and .a files'
@echo '*** Use "make makefile" to force a rebuild of the makefile'
@echo ""
- cd build-$(buildname); \
- $(RM_COMMAND) -f *.o lookups/*.o lookups/*.a auths/*.o auths/*.a \
- routers/*.o routers/*.a transports/*.o transports/*.a \
- pdkim/*.o pdkim/*.a
-
-clean_exim:; cd build-$(buildname); \
- $(RM_COMMAND) -f *.o lookups/*.o lookups/*.a auths/*.o auths/*.a \
- routers/*.o routers/*.a transports/*.o transports/*.a lookups/*.so
distclean:; $(RM_COMMAND) -rf build-* cscope*
FE="$(FE)" RANLIB="$(RANLIB)" RM_COMMAND="$(RM_COMMAND)" \
PERL_CC="$(PERL_CC)" PERL_CCOPTS="$(PERL_CCOPTS)" \
PERL_CFLAGS="$(PERL_CFLAGS)" PERL_LFLAGS="$(PERL_LFLAGS)" \
- INCLUDE="$(INCLUDE) $(IPV6_INCLUDE)"
+ INCLUDE="$(INCLUDE) $(IPV6_INCLUDE)" TLS_INCLUDE="$(TLS_INCLUDE)"
@echo " "
# The "clean", "install", and "makefile" targets just pass themselves back to
$(FE)$(CC) -c $(CFLAGS) $(INCLUDE) dkim.c
$(FE)$(CC) -c $(CFLAGS) $(INCLUDE) dkim_transport.c
$(FE)$(CC) -c $(CFLAGS) $(INCLUDE) pdkim.c
- $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) signing.c
+ $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $(TLS_INCLUDE) signing.c
$(FE)mv dkim.o dkim_tmp.o
$(FE)ld -r -o dkim.o $(LDFLAGS_PARTIAL) \
dkim_tmp.o dkim_transport.o pdkim.o signing.o
@echo "$(CC) -shared dkim.c dkim_transport.c pdkim.c signing.c"
$(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) -o $@ \
$(SUPPORT_$*_INCLUDE) $(SUPPORT_$*_LIBS) \
- $(CFLAGS) $(INCLUDE) $(DLFLAGS) \
+ $(CFLAGS) $(INCLUDE) $(TLS_INCLUDE) $(DLFLAGS) \
dkim.c dkim_transport.c pdkim.c signing.c
# Compile instructions for static perl.o for when EXIM_PERL is set
#ifndef DISABLE_DKIM /* rest of file */
#ifdef DISABLE_TLS
-# error Must no DISABLE_TLS, for DKIM
+# error Must not DISABLE_TLS, for DKIM
#endif