diff options
author | scuri <scuri> | 2010-11-19 19:11:22 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-11-19 19:11:22 +0000 |
commit | b376e834bf70f9bd0e265cf355098c362ada0296 (patch) | |
tree | 2f7ef2610fcce014ae9d9934535e582db46cb9c0 | |
parent | 95e5e9e6d4b9de49b59ef7ae101424e9f52c0257 (diff) |
*** empty log message ***
-rw-r--r-- | tecmake.mak | 6 | ||||
-rw-r--r-- | tecmakewin.mak | 134 |
2 files changed, 66 insertions, 74 deletions
diff --git a/tecmake.mak b/tecmake.mak index bbdec2b..8db1745 100644 --- a/tecmake.mak +++ b/tecmake.mak @@ -842,6 +842,10 @@ ifdef USE_CD ifndef USE_GTK # Freetype is already included in GTK SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libfreetype.a + else + ifneq ($(findstring cygw, $(TEC_UNAME)), ) + SLIB += $(CD)/lib/$(TEC_UNAME_LIB_DIR)/libfreetype-6.a + endif endif else ifdef USE_XRENDER @@ -858,8 +862,8 @@ ifdef USE_CD LIBS += cd$(CD_SUFFIX) LDIR += $(CD)/lib/$(TEC_UNAME_LIB_DIR) ifndef USE_GTK - # Freetype is already included in GTK ifndef NO_OVERRIDE + # Freetype is already included in GTK ifneq ($(findstring cygw, $(TEC_UNAME)), ) LIBS += freetype-6 else diff --git a/tecmakewin.mak b/tecmakewin.mak index 427ffff..3866fd8 100644 --- a/tecmakewin.mak +++ b/tecmakewin.mak @@ -27,7 +27,7 @@ TECMAKE = $(TECMAKE_HOME)/tecmakewin.mak # then at least define main system variables. WIN32UNAMES = vc10 vc9 vc8 vc7 vc6 owc1 bc55 bc56 bc6 gcc3 gcc4 mingw3 mingw4 dllw4 dllg4 dll dll7 dll8 dll9 dll10 -WIN64UNAMES = vc10_64 vc9_64 vc8_64 dll8_64 dll9_64 dll10_64 +WIN64UNAMES = vc10_64 vc9_64 vc8_64 dll8_64 dll9_64 dll10_64 gcc4_64 mingw4_64 dllw4_64 dllg4_64 ifdef TEC_UNAME ifneq ($(findstring $(TEC_UNAME), $(WIN32UNAMES)), ) @@ -42,7 +42,7 @@ endif ifdef TEC_WIN64 TEC_SYSNAME=Win64 TEC_SYSARCH=x64 - # This if is not working, because make from Cygwin returns x86 even when running in AMD64. + # This is not working, because make from Cygwin returns x86 even when running in AMD64. ifeq ($(PROCESSOR_ARCHITECTURE), x86) # Define this if compiling for 64-bits in a 32bits environment #USE_X86_CL64=XXX @@ -265,11 +265,11 @@ endif ifneq ($(findstring mingw, $(TEC_UNAME)), ) TARGETLIB := $(TARGETDIR)/lib$(TARGETNAME).a endif -ifneq ($(findstring dllg4, $(TEC_UNAME)), ) - TARGETLIB := $(TARGETDIR)/$(TARGETNAME).a +ifneq ($(findstring dllg, $(TEC_UNAME)), ) + TARGETLIB := $(TARGETDIR)/lib$(TARGETNAME).dll.a endif -ifneq ($(findstring dllw4, $(TEC_UNAME)), ) - TARGETLIB := $(TARGETDIR)/$(TARGETNAME).a +ifneq ($(findstring dllw, $(TEC_UNAME)), ) + TARGETLIB := $(TARGETDIR)/lib$(TARGETNAME).a endif ifdef NO_ECHO @@ -306,6 +306,16 @@ GLUT ?= x:/lng/glut OBJEXT = obj LIBEXT = lib +ifneq ($(findstring _64, $(TEC_UNAME)), ) + BUILD64 = Yes +endif + +ifneq ($(findstring dll, $(TEC_UNAME)), ) + USE_DLL = Yes +endif + +########################################################################## + ifeq "$(TEC_UNAME)" "vc6" COMPILER = $(VC6) endif @@ -320,41 +330,27 @@ endif ifeq "$(TEC_UNAME)" "vc8_64" COMPILER = $(VC8) - BUILD64 = Yes SDKLIBBIN = /amd64 endif -ifeq "$(TEC_UNAME)" "vc9" +ifneq ($(findstring vc9, $(TEC_UNAME)), ) COMPILER = $(VC9) endif -ifeq "$(TEC_UNAME)" "vc9_64" - COMPILER = $(VC9) - BUILD64 = Yes -endif - -ifeq "$(TEC_UNAME)" "vc10" - COMPILER = $(VC10) -endif - -ifeq "$(TEC_UNAME)" "vc10_64" +ifneq ($(findstring vc10, $(TEC_UNAME)), ) COMPILER = $(VC10) - BUILD64 = Yes endif ifeq "$(TEC_UNAME)" "dll" COMPILER = $(VC6) - USE_DLL = Yes endif ifeq "$(TEC_UNAME)" "dll7" COMPILER = $(VC7) - USE_DLL = Yes endif ifeq "$(TEC_UNAME)" "dll8" COMPILER = $(VC8) - USE_DLL = Yes ifdef DBG #debug info not working for dll8 linker define DBG @@ -364,31 +360,15 @@ endif ifeq "$(TEC_UNAME)" "dll8_64" COMPILER = $(VC8) - USE_DLL = Yes - BUILD64 = Yes SDKLIBBIN = /amd64 endif -ifeq "$(TEC_UNAME)" "dll9" - COMPILER = $(VC9) - USE_DLL = Yes -endif - -ifeq "$(TEC_UNAME)" "dll9_64" +ifneq ($(findstring dll9, $(TEC_UNAME)), ) COMPILER = $(VC9) - USE_DLL = Yes - BUILD64 = Yes endif -ifeq "$(TEC_UNAME)" "dll10" +ifneq ($(findstring dll10, $(TEC_UNAME)), ) COMPILER = $(VC10) - USE_DLL = Yes -endif - -ifeq "$(TEC_UNAME)" "dll10_64" - COMPILER = $(VC10) - USE_DLL = Yes - BUILD64 = Yes endif ifeq "$(COMPILER)" "$(VC6)" @@ -560,21 +540,23 @@ ifeq "$(TEC_CC)" "vc" endif else ifdef USE_MT - ifdef DBG - STDFLAGS += -MTd - else - STDFLAGS += -MT - endif + ifdef DBG + STDFLAGS += -MTd + else + STDFLAGS += -MT + endif else - ifdef DBG - STDFLAGS += -MLd - else - STDFLAGS += -ML - endif + ifdef DBG + STDFLAGS += -MLd + else + STDFLAGS += -ML + endif endif endif endif +########################################################################## + ifeq "$(TEC_UNAME)" "owc1" COMPILER = $(OWC1) TEC_CC = wc @@ -607,6 +589,8 @@ ifeq "$(TEC_CC)" "wc" endif endif +########################################################################## + ifeq "$(TEC_UNAME)" "bc55" COMPILER = $(BC55) TEC_CC = bc @@ -657,17 +641,18 @@ ifeq "$(TEC_CC)" "bc" endif endif -ifeq "$(TEC_UNAME)" "gcc3" - COMPILER = $(GCC3) - TEC_CC = gcc - ifdef USE_OPENGL - STDDEFS += -DUSE_OPENGL32 - endif +########################################################################## + +ifneq ($(findstring gcc, $(TEC_UNAME)), ) + TEC_CC = gcc endif -ifeq "$(TEC_UNAME)" "gcc4" - COMPILER = $(GCC4) - TEC_CC = gcc +ifneq ($(findstring mingw, $(TEC_UNAME)), ) + TEC_CC = gcc +endif + +ifeq "$(TEC_UNAME)" "gcc3" + COMPILER = $(GCC3) ifdef USE_OPENGL STDDEFS += -DUSE_OPENGL32 endif @@ -675,34 +660,35 @@ endif ifeq "$(TEC_UNAME)" "mingw3" COMPILER = $(MINGW3) - TEC_CC = gcc OLD_OPENGL = Yes endif -ifeq "$(TEC_UNAME)" "mingw4" +ifneq ($(findstring gcc4, $(TEC_UNAME)), ) + COMPILER = $(GCC4) +endif + +ifneq ($(findstring mingw4, $(TEC_UNAME)), ) COMPILER = $(MINGW4) - TEC_CC = gcc OLD_OPENGL = Yes endif -ifeq "$(TEC_UNAME)" "dllg4" - # USE_DLL is unused by gcc but we define it anyway - USE_DLL = Yes +ifneq ($(findstring dllg4, $(TEC_UNAME)), ) COMPILER = $(GCC4) - TEC_CC = gcc - ifdef USE_OPENGL - STDDEFS += -DUSE_OPENGL32 - endif + TEC_CC = gcc endif -ifeq "$(TEC_UNAME)" "dllw4" - # USE_DLL is unused by gcc but we define it anyway - USE_DLL = Yes +ifneq ($(findstring dllw4, $(TEC_UNAME)), ) COMPILER = $(MINGW4) - TEC_CC = gcc + TEC_CC = gcc OLD_OPENGL = Yes endif +ifeq "$(COMPILER)" "$(GCC4)" + ifdef USE_OPENGL + STDDEFS += -DUSE_OPENGL32 + endif +endif + ifeq "$(TEC_CC)" "gcc" WIN_OTHER = YES ifneq "$(findstring mingw, $(COMPILER))" "" @@ -740,6 +726,8 @@ ifeq "$(TEC_CC)" "gcc" endif endif +########################################################################## + ifdef DBG STDFLAGS += $(DEBUGFLAGS) STDDEFS += -DDEBUG |