D-Modem/pjproject-2.11.1/pjsip-apps/build/Footprint.mak

29 lines
730 B
Makefile
Raw Normal View History

2021-10-30 02:41:03 +08:00
#
# This file is used by get-footprint.py script to build samples/footprint.c
# to get the footprint report for PJSIP/PJMEDIA.
#
include ../../build.mak
include ../../build/common.mak
###############################################################################
# Gather all flags.
#
export _CFLAGS := $(APP_CFLAGS) $(CFLAGS)
export _CXXFLAGS:= $(APP_CXXFLAGS) $(CXXFLAGS)
export _LDFLAGS := $(APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS)
EXE := footprint.exe
all:
$(APP_CC) -o $(EXE) ../src/samples/footprint.c $(FCFLAGS) $(_CFLAGS) $(_LDFLAGS)
$(CROSS_COMPILE)strip --strip-all $(EXE)
clean:
rm -f $(EXE)
print_name:
@echo $(MACHINE_NAME) $(OS_NAME) $(CROSS_COMPILE)$(CC_NAME) `$(CROSS_COMPILE)$(CC_NAME) -dumpversion`