~yolanda.robla/ubuntu/saucy/freeradius/dep-8-tests

« back to all changes in this revision

Viewing changes to src/modules/rules.mak

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20091123035737-snauioz5r9tf8sdr
Tags: upstream-2.1.7+dfsg
ImportĀ upstreamĀ versionĀ 2.1.7+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#######################################################################
2
2
#
3
 
# $Id: rules.mak,v 1.70 2008/01/10 10:12:01 aland Exp $
 
3
# $Id$
4
4
#
5
5
#  Each module should have a few common defines at the TOP of the
6
6
# Makefile, and the 'include ../rules.mak'
42
42
#######################################################################
43
43
LT_OBJS         += $(SRCS:.c=.lo)
44
44
LT_OBJS         += $(SRCS:.cpp=.lo)
45
 
CFLAGS          += -I$(top_builddir)/src -I$(top_builddir)/libltdl
 
45
CFLAGS          += -I$(top_builddir)/src $(INCLTDL)
46
46
 
47
47
#######################################################################
48
48
#
106
106
#
107
107
#######################################################################
108
108
 
 
109
#
 
110
#  We can't use $(PWD), because that's apparently where the "make"
 
111
#  started.  Any child builds (make -C foo) don't change PWD.
 
112
#
 
113
WHERE=$(shell pwd)
 
114
 
109
115
build-module: $(TARGET).la $(RLM_UTILS)
110
116
        @[ "x$(RLM_SUBDIRS)" = "x" ] || $(MAKE) $(MFLAGS) WHAT_TO_MAKE=all common
111
117
        @[ -d $(top_builddir)/src/modules/lib/.libs ] || mkdir $(top_builddir)/src/modules/lib/.libs
112
 
        @cp .libs/* $(top_builddir)/src/modules/lib/.libs
113
 
        @cp $< $(top_builddir)/src/modules/lib
 
118
        for x in .libs/* $^; do \
 
119
                rm -rf $(top_builddir)/src/modules/lib/$$x; \
 
120
                ln -s $(WHERE)/$$x $(top_builddir)/src/modules/lib/$$x; \
 
121
        done
114
122
 
115
123
$(TARGET).la: $(LT_OBJS)
116
124
        $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
166
174
            rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la; \
167
175
            ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit $$?; \
168
176
        fi
 
177
 
 
178
.PHONY: scan
 
179
scan:
 
180
        @[ "$(SCAN_BUILD)" == "" ] || ($(MAKE) SCAN=yes LIBTOOL= 2>&1) | grep 'scan-view' || true