X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59a2c19914f02be7eae4ec8b7c58b06c19995146..b0134e31e676ec59ac708195d25803d730000530:/samples/widgets/makefile.gcc?ds=sidebyside diff --git a/samples/widgets/makefile.gcc b/samples/widgets/makefile.gcc index 7297d8afe2..7dba17b2eb 100644 --- a/samples/widgets/makefile.gcc +++ b/samples/widgets/makefile.gcc @@ -16,8 +16,9 @@ CPPDEPS = -MT$@ -MF$@.d -MD -MP WX_RELEASE_NODOT = 29 COMPILER_PREFIX = gcc OBJS = \ - $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) -LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) + $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) +LIBDIRNAME = \ + .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) SETUPHDIR = \ $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ @@ -55,7 +56,7 @@ WIDGETS_OBJECTS = \ $(OBJS)\widgets_static.o \ $(OBJS)\widgets_statbmp.o \ $(OBJS)\widgets_textctrl.o \ - $(OBJS)\widgets_timepick.o \ + $(OBJS)\widgets_timepick.o \ $(OBJS)\widgets_toggle.o \ $(OBJS)\widgets_widgets.o \ $(OBJS)\widgets_sample_rc.o @@ -71,6 +72,9 @@ endif ifeq ($(USE_GUI),1) PORTNAME = msw endif +ifeq ($(OFFICIAL_BUILD),1) +COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD +endif ifeq ($(BUILD),debug) WXDEBUGFLAG = d endif @@ -93,7 +97,7 @@ ifeq ($(MONOLITHIC),0) EXTRALIBS_FOR_BASE = endif ifeq ($(MONOLITHIC),1) -EXTRALIBS_FOR_BASE = +EXTRALIBS_FOR_BASE = endif ifeq ($(BUILD),debug) __OPTIMIZEFLAG_2 = -O0 @@ -331,9 +335,9 @@ $(OBJS)\widgets_statbmp.o: ./statbmp.cpp $(OBJS)\widgets_textctrl.o: ./textctrl.cpp $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< -$(OBJS)\widgets_timepick.o: ./timepick.cpp - $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< - +$(OBJS)\widgets_timepick.o: ./timepick.cpp + $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\widgets_toggle.o: ./toggle.cpp $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<