~ubuntu-branches/ubuntu/dapper/freeradius/dapper-updates

« back to all changes in this revision

Viewing changes to src/modules/rlm_eap/libeap/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2004-12-29 20:19:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041229201942-uj2e95la965uthc7
Tags: 1.0.1-2
* freeradius-dialupadmin Suggests php4-mysql | php4-pgsql
   Closes: #279419
* Added a two-second pause to restart in init.d script
   Closes: #262635
* FreeRADIUS module packages now depend on the same source
  version of the main FreeRADIUS package.
   Closes: #284353
* FreeRADIUS-dialupadmin's default paths in admin.conf are
  now correct.
   Closes: #280942
* FreeRADIUS-dialupadmin's help.php3 can now find README.
   Closes: #280941
* Fixes stolen from 1.0.2 CVS:
  - Bug fix to make udpfromto code work
  - radrelay shouldn't dump core if it can't read a VP from the
    detail file.
  - Only initialize the random pool once.
  - In rlm_sql, don't escape characters twice.
  - In rlm_ldap, only claim Auth-Type if a plain text password is present.
  - Locking fixes in threading code
  - Fix building on gcc-4.0 by not trying to access static auth_port from
    other files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
include ../../../../Make.inc
 
3
 
 
4
SRCS            = fips186prf.c eapcrypto.c eapcommon.c eapsimlib.c
 
5
 
 
6
INCLUDES        = 
 
7
 
 
8
CFLAGS          += -DEAPLIB -I../../../include 
 
9
 
 
10
all:    static dynamic
 
11
 
 
12
TARGET=$(LIBPREFIX)eap
 
13
 
 
14
STATIC_OBJS     = $(SRCS:.c=.o)
 
15
DYNAMIC_OBJS    = $(SRCS:.c=.lo)
 
16
 
 
17
$(STATIC_OBJS):  $(INCLUDES)
 
18
$(DYNAMIC_OBJS): $(INCLUDES)
 
19
 
 
20
#######################################################################
 
21
#
 
22
# define new rules
 
23
#
 
24
#######################################################################
 
25
%.o : %.c
 
26
        $(CC) $(CFLAGS) -c $< -o $@
 
27
 
 
28
%.lo : %.c
 
29
        $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
 
30
 
 
31
 
 
32
$(TARGET).a: $(STATIC_OBJS)
 
33
        $(LIBTOOL) --mode=link $(LD) \
 
34
        -module -static $(CFLAGS) $^ -o $@ 
 
35
 
 
36
 
 
37
ifneq ($(USE_SHARED_LIBS),yes)
 
38
LINK_MODE=-static
 
39
endif
 
40
 
 
41
$(TARGET).la: $(DYNAMIC_OBJS)
 
42
        $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
 
43
        -module $(LINK_MODE) $(CFLAGS) -o $@ -rpath $(libdir) $^ 
 
44
 
 
45
static: $(TARGET).a
 
46
 
 
47
dynamic: $(TARGET).la
 
48
 
 
49
clean:
 
50
        rm -f *.o *.lo $(TARGET).a $(TARGET).la
 
51
        rm -rf .libs
 
52
 
 
53
install: static dynamic
 
54
        $(LIBTOOL) --mode=install $(INSTALL) -c \
 
55
                $(TARGET).la $(R)$(libdir)/$(TARGET).la;
 
56
        rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la;
 
57
        ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la