X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec08d395bd37d7446787f5539b40a8ed5283654c..d269b7df728ec562f7fe32f1d882d9d4ee221f53:/samples/internat/makefile.gcc diff --git a/samples/internat/makefile.gcc b/samples/internat/makefile.gcc index 4a3383911b..a03516fd3e 100644 --- a/samples/internat/makefile.gcc +++ b/samples/internat/makefile.gcc @@ -15,7 +15,8 @@ include ../../build/msw/config.gcc INTERNAT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \ - $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS) + $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS) $(__EXCEPTIONSFLAG_4) \ + $(__EXCEPTIONSFLAG_5) INTERNAT_OBJECTS = \ $(OBJS)\internat_internat.o \ $(OBJS)\internat_internat_rc.o @@ -96,6 +97,18 @@ endif ifeq ($(SHARED),1) __DLLFLAG_p_1 = --define WXUSINGDLL endif +ifeq ($(USE_EXCEPTIONS),0) +__EXCEPTIONSFLAG_4 = -fno-rtti +endif +ifeq ($(USE_EXCEPTIONS),1) +__EXCEPTIONSFLAG_4 = +endif +ifeq ($(USE_EXCEPTIONS),0) +__EXCEPTIONSFLAG_5 = -fno-exceptions +endif +ifeq ($(USE_EXCEPTIONS),1) +__EXCEPTIONSFLAG_5 = +endif ifeq ($(USE_GUI),1) __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) endif @@ -145,7 +158,7 @@ $(OBJS): ### Targets: ### -all: $(OBJS)\internat.exe +all: $(OBJS)\internat.exe bg cs de fr ja ka ru $(OBJS)\internat_internat.o: ./internat.cpp $(CXX) -c -o $@ $(INTERNAT_CXXFLAGS) $< @@ -153,11 +166,39 @@ $(OBJS)\internat_internat.o: ./internat.cpp $(OBJS)\internat_internat_rc.o: ./internat.rc windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples +bg: + if not exist $(OBJS)\bg mkdir $(OBJS)\bg + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\bg\%%f copy .\bg\%%f $(OBJS)\bg + clean: -if exist $(OBJS)\*.o del $(OBJS)\*.o -if exist $(OBJS)\internat.exe del $(OBJS)\internat.exe +cs: + if not exist $(OBJS)\cs mkdir $(OBJS)\cs + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\cs\%%f copy .\cs\%%f $(OBJS)\cs + +de: + if not exist $(OBJS)\de mkdir $(OBJS)\de + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\de\%%f copy .\de\%%f $(OBJS)\de + +fr: + if not exist $(OBJS)\fr mkdir $(OBJS)\fr + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\fr\%%f copy .\fr\%%f $(OBJS)\fr + $(OBJS)\internat.exe: $(INTERNAT_OBJECTS) $(OBJS)\internat_internat_rc.o $(CXX) -o $@ $(INTERNAT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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 -.PHONY: all clean +ja: + if not exist $(OBJS)\ja mkdir $(OBJS)\ja + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\ja\%%f copy .\ja\%%f $(OBJS)\ja + +ka: + if not exist $(OBJS)\ka mkdir $(OBJS)\ka + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\ka\%%f copy .\ka\%%f $(OBJS)\ka + +ru: + if not exist $(OBJS)\ru mkdir $(OBJS)\ru + for %%f in (internat.po internat.mo) do if not exist $(OBJS)\ru\%%f copy .\ru\%%f $(OBJS)\ru + +.PHONY: all bg clean cs de fr ja ka ru