Footprint.mak 730 B

12345678910111213141516171819202122232425262728
  1. #
  2. # This file is used by get-footprint.py script to build samples/footprint.c
  3. # to get the footprint report for PJSIP/PJMEDIA.
  4. #
  5. include ../../build.mak
  6. include ../../build/common.mak
  7. ###############################################################################
  8. # Gather all flags.
  9. #
  10. export _CFLAGS := $(APP_CFLAGS) $(CFLAGS)
  11. export _CXXFLAGS:= $(APP_CXXFLAGS) $(CXXFLAGS)
  12. export _LDFLAGS := $(APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS)
  13. EXE := footprint.exe
  14. all:
  15. $(APP_CC) -o $(EXE) ../src/samples/footprint.c $(FCFLAGS) $(_CFLAGS) $(_LDFLAGS)
  16. $(CROSS_COMPILE)strip --strip-all $(EXE)
  17. clean:
  18. rm -f $(EXE)
  19. print_name:
  20. @echo $(MACHINE_NAME) $(OS_NAME) $(CROSS_COMPILE)$(CC_NAME) `$(CROSS_COMPILE)$(CC_NAME) -dumpversion`