Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. include ../../../build.mak
  2. include ../../../build/common.mak
  3. export LIBDIR := ../../lib
  4. RULES_MAK := $(PJDIR)/build/rules.mak
  5. export BASECLASSES_LIB := libbaseclasses-$(TARGET_NAME)$(LIBEXT)
  6. ifeq ($(PJ_SHARED_LIBRARIES),)
  7. else
  8. export BASECLASSES_SONAME := libbaseclasses.$(SHLIB_SUFFIX)
  9. export BASECLASSES_SHLIB := $(BASECLASSES_SONAME).$(PJ_VERSION_MAJOR)
  10. endif
  11. ###############################################################################
  12. # Gather all flags.
  13. #
  14. export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
  15. $(CFLAGS) $(CC_INC)../../BaseClasses \
  16. $(CC_INC)../../../pjmedia/include $(CC_INC)../../../pjlib/include
  17. export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
  18. $(HOST_CXXFLAGS) $(CXXFLAGS)
  19. export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
  20. $(LDFLAGS)
  21. export BASECLASSES_SRCDIR = ../../BaseClasses
  22. export BASECLASSES_OBJS = amfilter.o amvideo.o arithutil.o combase.o ctlutil.o \
  23. mtype.o renbase.o wxdebug.o wxlist.o \
  24. wxutil.o
  25. export BASECLASSES_CFLAGS = $(_CFLAGS)
  26. export BASECLASSES_CXXFLAGS = -fpermissive -D__STRSAFE__NO_INLINE=1 -DPJMEDIA_VIDEO_DEV_HAS_DSHOW=1 $(_CFLAGS)
  27. export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
  28. ###############################################################################
  29. # Main entry
  30. #
  31. # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
  32. #
  33. TARGETS := $(BASECLASSES_LIB) $(BASECLASSES_SONAME)
  34. all: $(TARGETS)
  35. doc:
  36. cd .. && doxygen docs/doxygen.cfg
  37. dep: depend
  38. distclean: realclean
  39. .PHONY: all dep depend clean realclean distclean
  40. .PHONY: $(TARGETS)
  41. .PHONY: $(BASECLASSES_LIB) $(BASECLASSES_SONAME)
  42. libbaseclasses: $(BASECLASSES_LIB)
  43. $(BASECLASSES_SONAME): $(BASECLASSES_LIB)
  44. $(BASECLASSES_LIB) $(BASECLASSES_SONAME):
  45. $(MAKE) -f $(RULES_MAK) APP=BASECLASSES app=baseclasses $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
  46. clean print_lib:
  47. $(MAKE) -f $(RULES_MAK) APP=BASECLASSES app=baseclasses $@
  48. realclean:
  49. $(subst @@,$(subst /,$(HOST_PSEP),.ilbc-$(TARGET_NAME).depend),$(HOST_RMR))
  50. $(MAKE) -f $(RULES_MAK) APP=BASECLASSES app=baseclasses $@
  51. depend:
  52. $(MAKE) -f $(RULES_MAK) APP=BASECLASSES app=baseclasses $@