X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f55f5b81fbe7a2294912663c192113209bbc930..0e2ff612070d7df3e36d786c213b14a8fd97a83b:/contrib/build/animate/makefile.gcc diff --git a/contrib/build/animate/makefile.gcc b/contrib/build/animate/makefile.gcc index 1b13eb37da..fa346ec561 100644 --- a/contrib/build/animate/makefile.gcc +++ b/contrib/build/animate/makefile.gcc @@ -4,7 +4,7 @@ # Do not modify, all changes will be overwritten! # ========================================================================= -include ../../../build/config.gcc +include ../../../build/msw/config.gcc # ------------------------------------------------------------------------- # Do not modify the rest of this file! @@ -14,41 +14,35 @@ include ../../../build/config.gcc ANIMATEDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ - $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(LIBDIRNAME) \ - -I..\..\src\animate\..\..\..\src\tiff \ - -I..\..\src\animate\..\..\..\src\jpeg \ - -I..\..\src\animate\..\..\..\src\png \ - -I..\..\src\animate\..\..\..\src\zlib \ - -I..\..\src\animate\..\..\..\src\regex \ - -I..\..\src\animate\..\..\..\src\expat\lib \ - -I..\..\src\animate\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_ANIMATE \ + $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(SETUPHDIR) \ + -Wall -I..\..\src\animate\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_ANIMATE \ $(CXXFLAGS) ANIMATEDLL_OBJECTS = \ $(OBJS)\animatedll_dummy.o \ $(OBJS)\animatedll_animate.o ANIMATELIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ - $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(LIBDIRNAME) \ - -I..\..\src\animate\..\..\..\src\tiff \ - -I..\..\src\animate\..\..\..\src\jpeg \ - -I..\..\src\animate\..\..\..\src\png \ - -I..\..\src\animate\..\..\..\src\zlib \ - -I..\..\src\animate\..\..\..\src\regex \ - -I..\..\src\animate\..\..\..\src\expat\lib \ - -I..\..\src\animate\..\..\include $(CXXFLAGS) + $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(SETUPHDIR) \ + -Wall -I..\..\src\animate\..\..\include $(CXXFLAGS) ANIMATELIB_OBJECTS = \ $(OBJS)\animatelib_dummy.o \ $(OBJS)\animatelib_animate.o -LIBDIRNAME = \ - ..\..\src\animate\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) OBJS = \ gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) +SETUPHDIR = \ + $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) ### Conditionally set variables: ### ifeq ($(GCC_VERSION),2.95) GCCFLAGS = -fvtable-thunks endif +ifeq ($(SHARED),0) +LIBDIRNAME = ..\..\src\animate\..\..\..\lib\gcc_lib$(CFG) +endif +ifeq ($(SHARED),1) +LIBDIRNAME = ..\..\src\animate\..\..\..\lib\gcc_dll$(CFG) +endif ifeq ($(USE_GUI),0) PORTNAME = base endif @@ -118,7 +112,10 @@ ifeq ($(BUILD),release) __OPTIMIZEFLAG = -O2 endif ifeq ($(UNICODE),1) -__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 +__UNICODE_DEFINE_p = -D_UNICODE +endif +ifeq ($(MSLU),1) +__UNICOWS_LIB_p = -lunicows endif ifeq ($(MONOLITHIC),0) __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) @@ -136,7 +133,7 @@ __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ endif ifeq ($(SHARED),1) __animatedll___depname = \ - $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll + $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll endif ifeq ($(SHARED),0) __animatelib___depname = \ @@ -152,21 +149,21 @@ $(OBJS): all: $(__animatedll___depname) $(__animatelib___depname) -$(OBJS)\animatedll_animate.o: ../../src/animate\animate.cpp +$(OBJS)\animatedll_animate.o: ../../src/animate/animate.cpp $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< -$(OBJS)\animatedll_dummy.o: ../../src/animate\..\..\..\src\msw\dummy.cpp +$(OBJS)\animatedll_dummy.o: ../../src/animate/../../../src/msw/dummy.cpp $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< -$(OBJS)\animatelib_animate.o: ../../src/animate\animate.cpp +$(OBJS)\animatelib_animate.o: ../../src/animate/animate.cpp $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< -$(OBJS)\animatelib_dummy.o: ../../src/animate\..\..\..\src\msw\dummy.cpp +$(OBJS)\animatelib_dummy.o: ../../src/animate/../../../src/msw/dummy.cpp $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< ifeq ($(SHARED),1) -$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS) - $(CXX) -shared -o $@ $(ANIMATEDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) +$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS) + $(CXX) -shared -o $@ $(ANIMATEDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) endif ifeq ($(SHARED),0) @@ -178,7 +175,7 @@ endif clean: -if exist $(OBJS)\*.o del $(OBJS)\*.o - -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll + -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a