Artifact a5cafe078429c050141623cc866250f84d9ccd0e:
- File make/ming32-fragment.mk — part of check-in [d3252d7488] at 2010-07-09 16:23:38 on branch ttmrichter — Started the process of modifying the build system to permit more flexible and reliable cross-platform support. Currently the build system is set up for Linux (GCC or CLANG as the compiler) and for MinGW32 (GCC as the compiler). Of these, only the Linux builds have been tested so far and confirmed to work as expected. The way to use this new system is as follows: make Builds the default platform and compiler (linux and gcc). PLATFORM=mingw32 make Builds the mingw32 build (untested!) using the default compiler (gcc). COMPILER=clang make Builds the default platform (linux) using the clang compiler. Other platform and compiler fragment files can be added in the ./make directory based on the models already there. (user: michael size: 683)
#### The suffix to add to executable files. # E = .exe #### The directory into which object code files should be written. # OBJDIR = ./wobj #### The following variable definitions decide which features are turned on or # of when building Fossil. Comment out the features which are not needed by # this platform. # ENABLE_STATIC = 1 # we want a static build #### The following features must be added to the GCC and LD builds respectively. # ifndef MING32_GCC PLATFORM_SPECIFIC_GCC = -L/mingw/lib -I/mingw/include else PLATFORM_SPECIFIC_GCC = $(MING32_GCC) endif ifndef MING32_LIB PLATFORM_SPECIFIC_LIB = -lmingwex -lws2_32 else PLATFORM_SPECIFIC_LIB = $(MING32_LIB) endif