~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to Linux-PAM/modules/pam_radius/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This Makefile controls a build process of $(TITLE) module for
 
3
# Linux-PAM. You should not modify this Makefile (unless you know
 
4
# what you are doing!).
 
5
#
 
6
# Created by Cristian Gafton <gafton@redhat.com> 1996/09/10
 
7
#
 
8
# STATIC modules are not supported
 
9
#
 
10
 
 
11
include ../../Make.Rules
 
12
 
 
13
TITLE=pam_radius
 
14
CONFD=$(CONFIGED)/security
 
15
export CONFD
 
16
CONFILE=$(CONFD)/radius.conf
 
17
export CONFILE
 
18
 
 
19
ifeq ($(HAVE_LIBPWDB),yes)
 
20
 
 
21
#
 
22
 
 
23
LIBSRC = $(TITLE).c
 
24
LIBOBJ = $(TITLE).o
 
25
 
 
26
LIBOBJD = $(addprefix dynamic/,$(LIBOBJ))
 
27
#LIBOBJS = $(addprefix static/,$(LIBOBJ))
 
28
 
 
29
dynamic/%.o : %.c
 
30
        $(CC) $(CFLAGS) $(DYNAMIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
 
31
 
 
32
#static/%.o : %.c
 
33
#       $(CC) $(CFLAGS) $(STATIC) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
 
34
 
 
35
 
 
36
ifdef DYNAMIC
 
37
LIBSHARED = $(TITLE).so
 
38
endif
 
39
 
 
40
#ifdef STATIC
 
41
#LIBSTATIC = lib$(TITLE).o
 
42
#endif
 
43
 
 
44
####################### don't edit below #######################
 
45
 
 
46
all: dirs $(LIBSHARED) $(LIBSTATIC) register
 
47
 
 
48
dirs:
 
49
ifdef DYNAMIC
 
50
        $(MKDIR) ./dynamic
 
51
endif
 
52
#ifdef STATIC
 
53
#       $(MKDIR) ./static
 
54
#endif
 
55
 
 
56
register:
 
57
#ifdef STATIC
 
58
#       ( cd .. ; ./register_static $(TITLE) $(TITLE)/$(LIBSTATIC) )
 
59
#endif
 
60
 
 
61
ifdef DYNAMIC
 
62
$(LIBOBJD): $(LIBSRC)
 
63
 
 
64
$(LIBSHARED):   $(LIBOBJD)
 
65
        $(LD_D) -o $@ $(LIBOBJD) -lpwdb
 
66
endif
 
67
 
 
68
#ifdef STATIC
 
69
#$(LIBOBJS): $(LIBSRC)
 
70
#
 
71
#$(LIBSTATIC): $(LIBOBJS)
 
72
#       $(LD) -r -o $@ $(LIBOBJS) -lpwdb
 
73
#endif
 
74
 
 
75
install: all
 
76
ifdef DYNAMIC
 
77
        $(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
 
78
endif
 
79
 
 
80
remove:
 
81
        rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
 
82
 
 
83
clean:
 
84
        rm -f $(LIBOBJD) $(LIBOBJS) core *~
 
85
        rm -f *.a *.o *.so *.bak dynamic/* static/*
 
86
        rm -rf dynamic static
 
87
 
 
88
.c.o:   
 
89
        $(CC) $(CFLAGS) -c $<
 
90
 
 
91
else
 
92
 
 
93
include ../dont_makefile
 
94
 
 
95
endif