diff options
author | Chris Want <cwant@ualberta.ca> | 2003-05-25 00:04:37 +0400 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2003-05-25 00:04:37 +0400 |
commit | 924a8497551be7d83bb577e94ebf89b18374b874 (patch) | |
tree | 5912852343da88dcc863a56ab641e60983a5432b /source/Makefile | |
parent | 94c4250d9f7ca57d9af7a7265fcdec0b4e94e5b3 (diff) |
Support for building bf-blender under windows with gcc (huge thanks to
Florian Eggenburger).
Full instructions are in doc/README.windows-gcc.
Main differences from Florian's patch:
- the 'lib' dir should now be the same level as the 'blender' dir (rather
than being a subdir of 'blender'). This is consistent with the other
platforms that bf-blender supports (tuhopuu will also adopt this convention
hopefully soon).
- the script 'free_windows-env.mk' is no longer needed ... see the
docs about how this is overcome (again, tuhopuu will hopefully
also follow this route soon).
- the dlltool dir has it's own Makefile that builds all of the
needed stub libraries from the dll's in cvs.
Diffstat (limited to 'source/Makefile')
-rw-r--r-- | source/Makefile | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/source/Makefile b/source/Makefile index eb7b5a9300a..1e6ac83ae1d 100644 --- a/source/Makefile +++ b/source/Makefile @@ -138,7 +138,11 @@ PYPLAYERLIB ?= $(PYLIB) endif ifeq ($(WITH_FREETYPE2), true) ifeq ($(OS), windows) - COMLIB += $(NAN_FREETYPE)/lib/freetype2ST.lib + ifeq ($(FREE_WINDOWS), true) + COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a + else + COMLIB += $(NAN_FREETYPE)/lib/freetype2ST.lib + endif else ifeq ($(OS), irix) COMLIB += $(NAN_FREETYPE)/lib32/libfreetype.a @@ -153,8 +157,7 @@ ifeq ($(INTERNATIONAL), true) ifeq ($(FREE_WINDOWS), true) COMLIB += $(NAN_GETTEXT)/lib/freegettext.a COMLIB += $(NAN_FTGL)/lib/libftgl.a - COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a - COMLIB += $(NAN_ICONV)/lib/freeiconv.a + #COMLIB += $(NAN_ICONV)/lib/freeiconv.a else COMLIB += $(NAN_GETTEXT)/lib/gnu_gettext.lib COMLIB += $(NAN_FTGL)/lib/ftgl_static_ST.lib @@ -211,13 +214,18 @@ endif PULIB += $(NAN_BLENKEY)/lib/libblenkey.a SPLIB += $(NAN_BLENKEY)/lib/libblenkey.a - ifeq ($(OS),windows) - PULIB += $(NAN_OPENSSL)/lib/libeay32.lib - SPLIB += $(NAN_OPENSSL)/lib/libeay32.lib - else - PULIB += $(NAN_OPENSSL)/lib/libcrypto.a - SPLIB += $(NAN_OPENSSL)/lib/libcrypto.a - endif + ifeq ($(OS),windows) + ifeq ($(FREE_WINDOWS),true) + PULIB += $(NAN_OPENSSL)/lib/libcrypto.a + SPLIB += $(NAN_OPENSSL)/lib/libcrypto.a + else + PULIB += $(NAN_OPENSSL)/lib/libeay32.lib + SPLIB += $(NAN_OPENSSL)/lib/libeay32.lib + endif + else + PULIB += $(NAN_OPENSSL)/lib/libcrypto.a + SPLIB += $(NAN_OPENSSL)/lib/libcrypto.a + endif # These three need to be explicitly mentioned on the cl, because # if they are offered as a lib, they are optimized away. (nzc) @@ -395,7 +403,12 @@ else endif ifeq ($(OS),windows) - PYLIB = $(NAN_PYTHON)/lib/python22.lib + ifeq ($(FREE_WINDOWS),true) + PYLIB = $(NAN_PYTHON)/lib/freepy.a + else + PYLIB = $(NAN_PYTHON)/lib/python22.lib + endif + PYPLAYERLIB = $(NAN_PYTHON)/static/*.obj PYPLAYERLIB = $(PYLIB) @@ -403,9 +416,11 @@ ifeq ($(OS),windows) NSPLUGLIB += $(NAN_NSPR)/lib/nspr4.lib BINTARGETS = blenderdynamic - BINTARGETS += blenderplayer - BINTARGETS += blenderdynplayer - BINTARGETS += plugin + ifneq ($(FREE_WINDOWS),true) + BINTARGETS += blenderplayer + BINTARGETS += blenderdynplayer + BINTARGETS += plugin + endif PULIB += $(OCGDIR)/blender/icons/$(DEBUG_DIR)winblender.res PULIB += $(NAN_ZLIB)/lib/libz.a @@ -513,7 +528,9 @@ ifeq ($(OS),$(findstring $(OS), "freebsd linux irix solaris")) endif # Windows needs a 8.3 name... Why? Dunno... ifeq ($(OS),windows) - plugin: $(DIR)/$(DEBUG_DIR)npB3DPlg$(SOEXT) + ifneq ($(FREE_WINDOWS),true) + plugin: $(DIR)/$(DEBUG_DIR)npB3DPlg$(SOEXT) + endif endif $(DIR)/$(DEBUG_DIR)blenderstatic: $(OBJS) $(GRPLIB) $(COMLIB) $(PULIB) |