]> arthur.barton.de Git - netatalk.git/blob - etc/uams/Makefile.am
fixed pgp UAM so that it builds at all
[netatalk.git] / etc / uams / Makefile.am
1 # Makefile.am for etc/uams/
2
3 if USE_DHX
4 DHX_UAMS = uams_dhx_pam.so uams_dhx_passwd.so uams_dhx.so uams_pgp.so
5 endif
6
7 uamsdir = $(CONFIG_DIR)/uams
8 uams_DATA = $(DHX_UAMS) uams_guest.so \
9         uams_pam.so uams_passwd.so \
10         uams_randnum.so uams_clrtxt.so
11
12 EXTRA_DIST = uams_dhx_pam.c uams_dhx_passwd.c uams_pgp.c \
13         uams_guest.c uams_pam.c uams_passwd.c uams_randnum.c
14
15 #
16 # standard library compilation:
17 #
18
19 SUFFIXES = .c .so
20 .c.so:
21         $(COMPILE) -DHAVE_CONFIG_H -fPIC -DPIC \
22           -I$(top_srcdir) -fomit-frame-pointer -c $< ; \
23         $(LD) -shared -o $@ $*.o $(LIBS)
24
25 #
26 # create symbolic links:
27 #
28
29 uams_clrtxt.so:
30         $(LN_S) uams_pam.so uams_clrtxt.so
31
32 uams_dhx.so:
33         $(LN_S) uams_dhx_pam.so uams_dhx.so
34
35 #
36 # install/install-strip:
37 #
38
39 install:
40         mkdir -p $(DESTDIR)$(UAMS_PATH); \
41         rm -f $(DESTDIR)$(UAMS_PATH)/uams_{clrtxt,dhx}.so; \
42         cp -dpf $(uams_DATA) $(DESTDIR)$(UAMS_PATH)/
43
44 install-strip:
45         strip $(uams_DATA); \
46         $(MAKE) $(AM_MAKEFLAGS) install
47
48 #
49 # cleanup
50 #
51
52 clean distclean clean-recursive distclean-recursive:
53         $(RM) $(uams_DATA) *.o core