swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: c0cd40d982ef10ef69b84d71633db1c18215c1b4 authored by Unknown Author on 06 February 2002, 11:51:07 UTC
This commit was manufactured by cvs2svn to create tag 'v3-00-06'.
This commit was manufactured by cvs2svn to create tag 'v3-00-06'.
Tip revision: c0cd40d
Module.mk
# Module.mk for srputils module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := srputils
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
SRPUTILSDIR := $(MODDIR)
SRPUTILSDIRS := $(SRPUTILSDIR)/src
SRPUTILSDIRI := $(SRPUTILSDIR)/inc
##### libSRPAuth #####
SRPUTILSH := $(wildcard $(MODDIRI)/*.h)
SRPUTILSS := $(wildcard $(MODDIRS)/*.cxx)
SRPUTILSO := $(SRPUTILSS:.cxx=.o)
SRPUTILSDEP := $(SRPUTILSO:.o=.d)
SRPUTILSLIB := $(LPATH)/libSRPAuth.$(SOEXT)
##### rpasswd #####
RPASSWDS := $(MODDIRS)/rpasswd.c
RPASSWDO := $(RPASSWDS:.c=.o)
RPASSWDDEP := $(RPASSWDO:.o=.d)
RPASSWD := bin/rpasswd
##### rtconf #####
RTCONFS := $(MODDIRS)/rtconf.c
RTCONFO := $(RTCONFS:.c=.o)
RTCONFDEP := $(RTCONFO:.o=.d)
RTCONF := bin/rtconf
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(SRPUTILSH))
ALLLIBS += $(SRPUTILSLIB)
ALLEXECS += $(RPASSWD) $(RTCONF)
# include all dependency files
INCLUDEFILES += $(SRPUTILSDEP) $(RPASSWDDEP) $(RTCONFDEP)
##### local rules #####
include/%.h: $(SRPUTILSDIRI)/%.h
cp $< $@
$(SRPUTILSLIB): $(SRPUTILSO) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libSRPAuth.$(SOEXT) $@ "$(SRPUTILSO)" \
"$(SRPUTILSLIBEXTRA) -L$(SRPDIR)/lib -lsrp -lgmp"
$(RPASSWD): $(RPASSWDO)
$(LD) $(LDFLAGS) -o $@ $(RPASSWDO) \
$(SRPDIR)/base/libmisc/libmisc.a \
$(SRPDIR)/base/lib/libshadow.a \
-L$(SRPDIR)/lib -lsrp -lgmp -lcrack
$(RTCONF): $(RTCONFO)
$(LD) $(LDFLAGS) -o $@ $(RTCONFO) \
-L$(SRPDIR)/lib -lsrp -lgmp
all-srputils: $(SRPUTILSLIB) $(RPASSWD) $(RTCONF)
clean-srputils:
@rm -f $(SRPUTILSO) $(RPASSWDO) $(RTCONFO)
clean:: clean-srputils
distclean-srputils: clean-srputils
@rm -f $(SRPUTILSDEP) $(SRPUTILSLIB) $(RPASSWDDEP) $(RPASSWD) \
$(RTCONFDEP) $(RTCONF)
distclean:: distclean-srputils
##### extra rules ######
$(SRPUTILSO): %.o: %.cxx
$(CXX) $(OPT) $(CXXFLAGS) -I$(SRPDIR)/include -o $@ -c $<
$(RPASSWDO): $(RPASSWDS)
$(CC) $(OPT) $(CFLAGS) -I$(SRPDIR)/base/lib -I$(SRPDIR)/include \
-o $@ -c $<
$(RTCONFO): $(RTCONFS)
$(CC) $(OPT) $(CFLAGS) -I$(SRPDIR)/base/lib -I$(SRPDIR)/include \
-o $@ -c $<