Use RM_COMMAND everywhere during building.
[exim.git] / src / src / routers / Makefile
CommitLineData
ebcb507f 1# $Cambridge: exim/src/src/routers/Makefile,v 1.3 2005/09/12 13:50:03 ph10 Exp $
0756eb3c
PH
2
3# Make file for building a library containing all the available routers and
4# calling it routers.a. This is called from the main make file, after cd'ing
5# to the directors subdirectory. The library also contains functions that
6# are called only from within the individual routers.
7
8OBJ = accept.o dnslookup.o ipliteral.o iplookup.o manualroute.o \
9 queryprogram.o redirect.o \
10 rf_change_domain.o rf_expand_data.o rf_get_errors_address.o \
11 rf_get_munge_headers.o rf_get_transport.o rf_get_ugid.o \
12 rf_lookup_hostlist.o \
13 rf_queue_add.o rf_self_action.o \
14 rf_set_ugid.o
15
16routers.a: $(OBJ)
ebcb507f 17 @$(RM_COMMAND) -f routers.a
c1ac6996
PH
18 @echo "$(AR) routers.a"
19 @$(AR) routers.a $(OBJ)
0756eb3c 20 $(RANLIB) $@
ebcb507f 21 @$(RM_COMMAND) -rf ../drtables.o
0756eb3c
PH
22
23.SUFFIXES: .o .c
c1ac6996
PH
24.c.o:; @echo "$(CC) $*.c"
25 $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $*.c
0756eb3c
PH
26
27rf_change_domain.o: $(HDRS) rf_change_domain.c rf_functions.h
28rf_expand_data.o: $(HDRS) rf_expand_data.c rf_functions.h
29rf_get_errors_address.o: $(HDRS) rf_get_errors_address.c rf_functions.h
30rf_get_munge_headers.o: $(HDRS) rf_get_munge_headers.c rf_functions.h
31rf_get_transport.o: $(HDRS) rf_get_transport.c rf_functions.h
32rf_get_ugid.o: $(HDRS) rf_get_ugid.c rf_functions.h
33rf_lookup_hostlist.o: $(HDRS) rf_lookup_hostlist.c rf_functions.h
34rf_queue_add.o: $(HDRS) rf_queue_add.c rf_functions.h
35rf_self_action.o: $(HDRS) rf_self_action.c rf_functions.h
36rf_set_ugid.o: $(HDRS) rf_set_ugid.c rf_functions.h
37
38accept.o: $(HDRS) accept.c rf_functions.h accept.h
39dnslookup.o: $(HDRS) dnslookup.c rf_functions.h dnslookup.h
40ipliteral.o: $(HDRS) ipliteral.c rf_functions.h ipliteral.h
41iplookup.o: $(HDRS) iplookup.c rf_functions.h iplookup.h
42manualroute.o: $(HDRS) manualroute.c rf_functions.h manualroute.h
43queryprogram.o: $(HDRS) queryprogram.c rf_functions.h queryprogram.h
44redirect.o: $(HDRS) redirect.c rf_functions.h redirect.h
45
46# End