wanpipe/api/aft/Makefile

44 lines
1.2 KiB
Makefile
Raw Normal View History

2021-12-29 16:56:27 +00:00
# ============================================================================
# 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
2021-12-29 16:57:21 +00:00
SYSINC=$(shell if [ -f ../../.sysinclude ]; then cat ../../.sysinclude; else echo ""; fi)
ifeq "$(SYSINC)" ""
SYSINC=/usr/src/linux/include
endif
2021-12-29 16:56:27 +00:00
VPATH = $(SYSINC)
# Tools options.
CFLAGS = -Wall -O2 -D$(OS_TYPE) -D_DEBUG_=$(DEBUG) -D_GNUC_ -I../lib -I$(SYSINC)
2021-12-29 16:57:21 +00:00
TARGETS=aft_api
TARGETS+= aft_api_ss7
TARGETS+= aft_api_check
2021-12-29 16:56:27 +00:00
####### RULES ################################################################
2021-12-29 16:57:21 +00:00
all: $(TARGETS)
2021-12-29 16:56:27 +00:00
@echo "Ok."
aft_api: aft_api.c ../lib/lib_api.c
$(CC) $(CFLAGS) -o $@ $^
2021-12-29 16:57:21 +00:00
aft_api_check: aft_api_check.c ../lib/lib_api.c
$(CC) $(CFLAGS) -o $@ $^
aft_api_ss7: aft_api_ss7.c ../lib/lib_api.c
2021-12-29 16:56:27 +00:00
$(CC) $(CFLAGS) -o $@ $^
2021-12-29 16:57:21 +00:00
2021-12-29 16:56:27 +00:00
clean:
2021-12-29 16:57:21 +00:00
rm -f $(TARGETS)