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

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

# Build options.
OS_TYPE	= __LINUX__
DEBUG	= 2

SYSINC=$(shell if [ -f ../../.sysinclude ]; then cat ../../.sysinclude;  else echo ""; fi)
ifeq "$(SYSINC)" "" 
SYSINC=usr/src/linux/include
endif
VPATH	= $(SYSINC)

# Tools options.
CFLAGS	= -Wall -O2 -D$(OS_TYPE) -I/common/include -I/wanpipe/code/include
CFLAGS	+= -I/usr/include/wanpipe

TARGETS += aft_tdm_ctrl_api_nolib

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

all:	$(TARGETS)  
	@echo "Ok."

aft_tdm_ctrl_api_nolib: aft_tdm_ctrl_api_nolib.c 
	$(CC) $(CFLAGS) -o $@ $^ 

clean:
	rm -f $(TARGETS)
