# ============================================================================
# Makefile	Make script for building Linux WAN router utilities.
# ----------------------------------------------------------------------------
# Copyright (c) 1995-2000 Sangoma Technologies Inc.  All Rights Reserved.
# ============================================================================

####### MACROS ###############################################################

# Build options.
OS_TYPE	= _LINUX_
DEBUG	= 2
MAKE = make

# Project file paths.
#OUTDIR=bin 
SYSINC = /usr/src/linux/include/linux
VPATH  = $(SYSINC)

# Tools options.
CFLAGS  = -Wall -O2 -D_GNUC_ -D$(OS_TYPE) -D_DEBUG_=$(DEBUG)  -I/usr/src/linux/include
LIBS = -lncurses

####### RULES ################################################################

all:	
	make -C lxdialog all
	make -C ft1 all
	@echo "Ok."

install:
	make -C lxdialog install
	make -C ft1 install
	install -D -m 755 wancfg/wancfg $(WAN_VIRTUAL)/usr/sbin/wancfg
	install -D -m 755 ft1/cfgft1 $(WAN_VIRTUAL)/usr/sbin/cfgft1


uninstall:
	make -C lxdialog uninstall
	make -C ft1 uninstall
	rm -f $(WAN_VIRTUAL)/usr/sbin/wancfg
	rm -f $(WAN_VIRTUAL)/usr/sbin/cfgft1

clean:
	make -C lxdialog clean
	make -C ft1 clean

