1 # Make file for building a library containing all the available routers and
2 # calling it routers.a. This is called from the main make file, after cd'ing
3 # to the directors subdirectory. The library also contains functions that
4 # are called only from within the individual routers.
6 # Copyright (c) The Exim Maintainers 2021 - 2024
8 # nb: at build time, the version of this file used will have had some
9 # extra variable definitions and prepended to it and module build rules
10 # interpolated below. This is done by scripts/drivers-Makefile.
12 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
14 RF_OBJ = rf_change_domain.o rf_expand_data.o rf_get_errors_address.o \
15 rf_get_munge_headers.o rf_get_transport.o rf_get_ugid.o \
16 rf_lookup_hostlist.o \
17 rf_queue_add.o rf_self_action.o \
22 all: routers.a $(MODS)
25 @$(RM_COMMAND) -f routers.a
26 @echo "$(AR) routers.a"
27 @$(AR) routers.a $(OBJ)
31 .c.o:; @echo "$(CC) $*.c"
32 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
34 .c.so:; @echo "$(CC) -shared $*.c"
35 $(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@
39 $(OBJ) $(MOD): $(HDRS) rf_functions.h
41 rf_change_domain.o: rf_change_domain.c
42 rf_expand_data.o: rf_expand_data.c
43 rf_get_errors_address.o: rf_get_errors_address.c
44 rf_get_munge_headers.o: rf_get_munge_headers.c
45 rf_get_transport.o: rf_get_transport.c
46 rf_get_ugid.o: rf_get_ugid.c
47 rf_lookup_hostlist.o: rf_lookup_hostlist.c
48 rf_queue_add.o: rf_queue_add.c
49 rf_self_action.o: rf_self_action.c
50 rf_set_ugid.o: rf_set_ugid.c
52 accept.o accept.so: accept.c accept.h
53 dnslookup.o dnslookup.so: dnslookup.c dnslookup.h
54 ipliteral.o ipliteral.so: ipliteral.c ipliteral.h
55 iplookup.o iplookup.so: iplookup.c iplookup.h
56 manualroute.o manualroute.so: manualroute.c manualroute.h
57 queryprogram.o queryprogram.so: queryprogram.c queryprogram.h
58 redirect.o redirect.so: redirect.c redirect.h