# Copyright (C) 1997-2000 SpellCaster Telecommunications Inc. # $Id: Makefile.in,v 1.9 2004/08/02 21:52:07 bcrl Exp $ # Released under the GNU Public License. See LICENSE file for details. TOPDIR=.. include ../common.mak CC = gcc -g -pthread CXX = g++ -g -pthread #CEXTRAS+=-DDEBUG_TRACE # for call enter/exit tracing CFLAGS += -I. -DVER='"$(VERSION)"' $(CEXTRAS) CXXFLAGS = $(CFLAGS) $(shell if gcc -v 2>&1 | egrep "(egcs-1\.|2\.95)" >/dev/null ; then echo "-fno-rtti -fno-exceptions" ; fi) OBJS = md5.o lcp.o pap.o chap.o ipcp.o protocol.o fsm.o \ usca.o debug.o iface.o queue.o link.o main.o channel.o \ timer.o call.o radius.o babd.o cause.o ctrlfd.o \ l2tpd.o l2tp_peer.o l2tp_tunnel.o bpppoe.o mlcp.o OBJS += l2tp_replication.o OBJS += dfs_parser.o OBJS += bvirt.o OBJS += selectops.o OBJS += netlink.o OBJS += multihop.o OBJS += compat.o OBJS += ippool.o OBJS += cluster.o OBJS += ipv6cp.o OBJS += l2tp_monitor.o THIS_TARGET = ../bin/babylond.$(TARGET) all: $(THIS_TARGET) -include $(OBJS:.o=.dep) babylond: $(OBJS) plugin.so $(CXX) -Wl,-E $(CXXFLAGS) -o $@ $(OBJS) -lrt -ldl plugin.so: plugin.cc $(CXX) $(CXXFLAGS) $(CFLAGS) -o plugin.so -shared -fPIC plugin.cc $(THIS_TARGET): babylond $(RM) $(THIS_TARGET) cp babylond $(THIS_TARGET) strip $(THIS_TARGET) install: $(THIS_TARGET) uninstall: clean clean: $(RM) *.o *.dep *.so core* babylond distclean: clean $(RM) Makefile *.sw?