##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function:	- router
##			- route server
##

DEPTH   = ../../..

##
## global configuration
##
include $(DEPTH)/Config/config

##
## local configuration
##
VPATH	= $(DEPTH)/share/router:../../../otb/sys/router:$(DEPTH)/share/etc
INCLUDE	= -I$(IDIR)
DEFS	=
LCFLAGS = $(INCLUDE) $(DEFS)
LDFLAGS	= $(LIBBIND)

##
## modules and libraries
##
LIB	= -L$(OLDIR) -lt $(SYSLIBS)
BIN	= router
SRC	= router.c rtdinit.lam.c r_main.c
OBJ	= router.o rtdinit.lam.o r_main.o


all: $(BIN)

$(BIN): $(OBJ) $(OLDIR)/libt.a
	$(CC) $(LDFLAGS) -o $(BIN) $(OBJ) $(LIB)

install: $(OBDIR)/$(BIN)

$(OBDIR)/$(BIN): $(BIN)
	$(INSTALL) $(BIN) $(OBDIR)/$(BIN)

clean:
	$(RM) $(OBJ) $(BIN)

##
## depend:
##
include	$(DEPTH)/Config/depend

##
## automatic dependencies and rules
##
include Depends
