aboutsummaryrefslogtreecommitdiffstats
path: root/modules/Makefile
blob: c2a709b0cd4d024fa2af394297a6f0856c4d824b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id$
#
# Makefile for autofs
#

SRCS = lookup_yp.c  lookup_file.c  lookup_program.c  \
       parse_sun.c  \
       mount_generic.c  mount_nfs.c  mount_smbfs.c
MODS = lookup_yp.so lookup_file.so lookup_program.so \
       parse_sun.so \
       mount_generic.so mount_nfs.so mount_smbfs.so

include ../Makefile.rules

CFLAGS += -I../include -fpic -DAUTOFS_LIB_DIR=\"$(autofslibdir)\"

all: $(MODS)

clean:
	rm -f *.o *.s *.so

install: all
	install -d -m 755 $(autofslibdir)
	install -c $(MODS) -m 644 -o root $(autofslibdir)

#
# Ad hoc compilation rules for modules which need auxilliary libraries
#
lookup_yp.so: lookup_yp.c
	$(CC) $(SOLDFLAGS) $(CFLAGS) -o lookup_yp.so lookup_yp.c $(YPLIBS)
	$(STRIP) lookup_yp.so