3c5482959c 2007-09-22 drh: #!/usr/bin/make 3c5482959c 2007-09-22 drh: # 3c5482959c 2007-09-22 drh: #### The toplevel directory of the source tree. Fossil can be built 3c5482959c 2007-09-22 drh: # in a directory that is separate from the source tree. Just change 3c5482959c 2007-09-22 drh: # the following to point from the build directory to the src/ folder. 3c5482959c 2007-09-22 drh: # 3c5482959c 2007-09-22 drh: SRCDIR = ./src 3c5482959c 2007-09-22 drh: 3c5482959c 2007-09-22 drh: #### C Compiler and options for use in building executables that 3c5482959c 2007-09-22 drh: # will run on the platform that is doing the build. This is used 3c5482959c 2007-09-22 drh: # to compile code-generator programs as part of the build process. 3c5482959c 2007-09-22 drh: # See TCC below for the C compiler for building the finished binary. 3c5482959c 2007-09-22 drh: # 3c5482959c 2007-09-22 drh: BCC = gcc -g -O2 3c5482959c 2007-09-22 drh: 3c5482959c 2007-09-22 drh: #### The suffix to add to executable files. ".exe" for windows. 3c5482959c 2007-09-22 drh: # Nothing for unix. 3c5482959c 2007-09-22 drh: # b54de50ac5 2008-11-03 urmil: E = .exe b54de50ac5 2008-11-03 urmil: 16f6fd904a 2009-11-09 dmitry: #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto) 16f6fd904a 2009-11-09 dmitry: # 16f6fd904a 2009-11-09 dmitry: # FOSSIL_ENABLE_SSL=1 3c5482959c 2007-09-22 drh: 3c5482959c 2007-09-22 drh: #### C Compile and options for use in building executables that 3c5482959c 2007-09-22 drh: # will run on the target platform. This is usually the same 3c5482959c 2007-09-22 drh: # as BCC, unless you are cross-compiling. This C compiler builds 3c5482959c 2007-09-22 drh: # the finished binary for fossil. The BCC compiler above is used 3c5482959c 2007-09-22 drh: # for building intermediate code-generator tools. 3c5482959c 2007-09-22 drh: # 3c5482959c 2007-09-22 drh: #TCC = gcc -O6 3c5482959c 2007-09-22 drh: #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage 3c5482959c 2007-09-22 drh: #TCC = gcc -g -Os -Wall 3275d9c63c 2009-10-21 rwilson: #TCC = gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include 3275d9c63c 2009-10-21 rwilson: TCC = gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include 3275d9c63c 2009-10-21 rwilson: 16f6fd904a 2009-11-09 dmitry: # With HTTPS support 16f6fd904a 2009-11-09 dmitry: ifdef FOSSIL_ENABLE_SSL 16f6fd904a 2009-11-09 dmitry: TCC += -DFOSSIL_ENABLE_SSL=1 16f6fd904a 2009-11-09 dmitry: endif 3c5482959c 2007-09-22 drh: 3c5482959c 2007-09-22 drh: #### Extra arguments for linking the finished binary. Fossil needs 3c5482959c 2007-09-22 drh: # to link against the Z-Lib compression library. There are no 3c5482959c 2007-09-22 drh: # other dependencies. We sometimes add the -static option here 3c5482959c 2007-09-22 drh: # so that we can build a static executable that will run in a 3c5482959c 2007-09-22 drh: # chroot jail. 3c5482959c 2007-09-22 drh: # 3c5482959c 2007-09-22 drh: #LIB = -lz 3275d9c63c 2009-10-21 rwilson: #LIB = -lz -lws2_32 3275d9c63c 2009-10-21 rwilson: LIB = -lmingwex -lz -lws2_32 16f6fd904a 2009-11-09 dmitry: # OpenSSL: 16f6fd904a 2009-11-09 dmitry: ifdef FOSSIL_ENABLE_SSL 16f6fd904a 2009-11-09 dmitry: LIB += -lcrypto -lssl 16f6fd904a 2009-11-09 dmitry: endif 3c5482959c 2007-09-22 drh: 3c5482959c 2007-09-22 drh: #### Tcl shell for use in running the fossil testsuite. 3c5482959c 2007-09-22 drh: # 3c5482959c 2007-09-22 drh: TCLSH = tclsh 3c5482959c 2007-09-22 drh: 3c5482959c 2007-09-22 drh: # You should not need to change anything below this line 3c5482959c 2007-09-22 drh: ############################################################################### 3c5482959c 2007-09-22 drh: include $(SRCDIR)/main.mk