Debian Codegraph @

src/routers/Makefile

raw symbols SCIP
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.
5 #
6 # Copyright (c) The Exim Maintainers 2021 - 2026
7
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 with
11 # definitions from scripts/Configure-Makefile.
12
13 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE
14
15 all: routers.a $(MODS)
16 $(FE):
17
18 routers.a: $(OBJ)
19 @$(RM_COMMAND) -f routers.a
20 @echo "$(AR) routers.a"
21 @$(AR) routers.a $(OBJ)
22 $(RANLIB) $@
23
24 .SUFFIXES: .o .c .so
25 .c.o:; @echo "$(CC) $*.c"
26 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
27
28 .c.so:; @echo "$(CC) -shared $*.c"
29 $(FE)$(CC) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) \
30 $(DLFLAGS) $*.c -o $@
31
32
33
34 $(OBJ) $(MOD): $(HDRS) rf_functions.h
35
36 accept.o accept.so: accept.c accept.h
37 dnslookup.o dnslookup.so: dnslookup.c dnslookup.h
38 ipliteral.o ipliteral.so: ipliteral.c ipliteral.h
39 iplookup.o iplookup.so: iplookup.c iplookup.h
40 manualroute.o manualroute.so: manualroute.c manualroute.h
41 queryprogram.o queryprogram.so: queryprogram.c queryprogram.h
42 redirect.o redirect.so: redirect.c redirect.h
43
44 # End