#
# $Id: MCONFIG,v 1.4 1996/03/15 13:54:02 lf Exp $
#
# Copyright (C) 1995 Lars Fenneberg
#
# See the file COPYRIGHT for the respective terms and conditions. 
# If the file is missing contact me at in5y050@public.uni-hamburg.de 
# and I'll send you a copy.
#

# if you make changes to the code and are considering redistribution
# please define this to something different (for example append your
# initials: 0.1-lf)
# BUT the best way is to send me the changes for inclusion in the
# main source tree and leave this as it is. see email above.
#
VERSION=0.2.1

# define your favourite optimization and warning flags here
#
CFLAGS=-Wall -Wstrict-prototypes -O2 -m486 -fomit-frame-pointer

# define all linker flags except libraries here
#
LDFLAGS=-s

# define the position of the radiusclient config file 
#
CFLAGS:=$(CFLAGS) -DRADIUSCLIENT_CONF=\"/etc/radiusclient.conf\"

# define PPP_NEW if you have ppp version >=2.2
#
CFLAGS:=$(CFLAGS) -DPPP_NEW

# define RADIUS_116 if you have an original Livingston radiusd v1.16,
# it has a bug in accounting request digest calculation.
# this define entirely disables the digest checking for _accounting_ (
# not authentication) requests. this is a possible security breach but
# not a very big one. you also loose the checksum function of the digest,
# but this shouldn't be a problem if your RADIUS server has UDP checksums
# enabled.
#
#CFLAGS:=$(CFLAGS) -DRADIUS_116

# define SCP if you want radlogin to derive the service type from
# the username (Susername is SLIP, Cusername is compress slip and
# Pusername is PPP) and supply it to the RADIUS server.
#
CFLAGS:=$(CFLAGS) -DSCP

# to use shadow password put -DSHADOW_PASSWORDS into CFLAGS and
# put -lshadow into LIBSHADOW
#
CFLAGS:=$(CFLAGS) -DSHADOW_PASSWORD

LIBSHADOW=-lshadow
#LIBSHADOW=

# define any global libs you need for your system here
#
LIBS=

# where the executables go
#
RC_LIB=/usr/local/lib/radiusclient

# config files go here
#
RC_CONFIG=/etc

# clients and dictionary files go into this directory
#
RC_RADDB=/etc/raddb

# where the header file radius.h goes
# leave it undefined if you dont want it installed
SYS_INCLUDE=/usr/local/lib

# where libradclient.a goes
# leave it undefined if you dont want it installed
SYS_LIB=/usr/local/lib

##############################################################################
# no need to change anything below this line
#

#CFLAGS:=$(CFLAGS) -DDIGEST_DEBUG

CO=co
COFLAGS=
CI=ci
CIFLAGS=

%.o:	%.c
	$(CC) $(CFLAGS) -c $<

%:	%.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)

.EXPORT_ALL_VARIABLES:
