29 lines
869 B
Makefile
29 lines
869 B
Makefile
# ============================================================================
|
|
# 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
|
|
|
|
# Project file paths.
|
|
APIINC = /usr/src/linux/include
|
|
|
|
# Tools options.
|
|
CFLAGS = -Wall -O2 -D$(OS_TYPE) -D_DEBUG_=$(DEBUG) -D_GNUC_ -I../lib -I$(APIINC)
|
|
|
|
####### RULES ################################################################
|
|
|
|
all: asyhdlc_api
|
|
@echo "Ok."
|
|
|
|
asyhdlc_api: asyhdlc_api.c ../lib/lib_api.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
rm -f asyhdlc_api
|