Fossil SCM

fossil-scm / Makefile.osx-jaguar
Source Blame History 71 lines
3c5ba9f… drh 1 #!/usr/bin/make
3c5ba9f… drh 2 #
3c5ba9f… drh 3 # This is a specially modified version of the Makefile that will build
3c5ba9f… drh 4 # Fossil on Mac OSX Jaguar (10.2) circa 2002. This Makefile is used for
3c5ba9f… drh 5 # testing on an old PPC iBook. The use of this old platform helps to verify
3c5ba9f… drh 6 # Fossil and SQLite running on big-endian hardware.
3c5ba9f… drh 7 #
3c5ba9f… drh 8 # To build with this Makefile, run:
3c5ba9f… drh 9 #
3c5ba9f… drh 10 # make -f Makefile.osx-jaguar
3c5ba9f… drh 11 #
3c5ba9f… drh 12 #
3c5ba9f… drh 13 # This is the top-level makefile for Fossil when the build is occurring
3c5ba9f… drh 14 # on a unix platform. This works out-of-the-box on most unix platforms.
3c5ba9f… drh 15 # But you are free to vary some of the definitions if desired.
3c5ba9f… drh 16 #
3c5ba9f… drh 17 #### The toplevel directory of the source tree. Fossil can be built
3c5ba9f… drh 18 # in a directory that is separate from the source tree. Just change
3c5ba9f… drh 19 # the following to point from the build directory to the src/ folder.
3c5ba9f… drh 20 #
3c5ba9f… drh 21 SRCDIR = ./src
3c5ba9f… drh 22
3c5ba9f… drh 23 #### The directory into which object code files should be written.
3c5ba9f… drh 24 # Having a "./" prefix in the value of this variable breaks our use of the
3c5ba9f… drh 25 # "makeheaders" tool when running make on the MinGW platform, apparently
3c5ba9f… drh 26 # due to some command line argument manipulation performed automatically
3c5ba9f… drh 27 # by the shell.
3c5ba9f… drh 28 #
3c5ba9f… drh 29 #
3c5ba9f… drh 30 OBJDIR = bld
3c5ba9f… drh 31
3c5ba9f… drh 32 #### C Compiler and options for use in building executables that
3c5ba9f… drh 33 # will run on the platform that is doing the build. This is used
3c5ba9f… drh 34 # to compile code-generator programs as part of the build process.
3c5ba9f… drh 35 # See TCC below for the C compiler for building the finished binary.
3c5ba9f… drh 36 #
3c5ba9f… drh 37 BCC = cc
09f4188… ashepilko 38 BCCFLAGS = $(CFLAGS)
3c5ba9f… drh 39
3c5ba9f… drh 40 #### The suffix to add to final executable file. When cross-compiling
3c5ba9f… drh 41 # to windows, make this ".exe". Otherwise leave it blank.
3c5ba9f… drh 42 #
e2751b1… jan.nijtmans 43 E =
3c5ba9f… drh 44
3c5ba9f… drh 45 TCC = cc
09f4188… ashepilko 46 TCCFLAGS = $(CFLAGS)
3c5ba9f… drh 47
3c5ba9f… drh 48 #### Tcl shell for use in running the fossil testsuite. If you do not
3c5ba9f… drh 49 # care about testing the end result, this can be blank.
3c5ba9f… drh 50 #
3c5ba9f… drh 51 TCLSH = tclsh
3c5ba9f… drh 52
3c5ba9f… drh 53 # LIB = -lz
3c5ba9f… drh 54 LIB = compat/zlib/libz.a
3c5ba9f… drh 55 TCC += -g -O0 -DHAVE_AUTOCONFIG_H
3c5ba9f… drh 56 TCC += -Icompat/zlib
3c5ba9f… drh 57 TCC += -DSQLITE_WITHOUT_ZONEMALLOC
3c5ba9f… drh 58 TCC += -D_BSD_SOURCE=1
3c5ba9f… drh 59 TCC += -DWITHOUT_ICONV
3c5ba9f… drh 60 TCC += -Dsocklen_t=int
3c5ba9f… drh 61 TCC += -DSQLITE_MAX_MMAP_SIZE=0
3c5ba9f… drh 62 INSTALLDIR = $(DESTDIR)/usr/local/bin
e2751b1… jan.nijtmans 63 USE_SYSTEM_SQLITE =
3c5ba9f… drh 64 USE_LINENOISE = 1
3c5ba9f… drh 65 # FOSSIL_ENABLE_TCL = @FOSSIL_ENABLE_TCL@
3c5ba9f… drh 66 FOSSIL_ENABLE_TCL = 0
3c5ba9f… drh 67
3c5ba9f… drh 68 include $(SRCDIR)/main.mk
3c5ba9f… drh 69
3c5ba9f… drh 70 distclean: clean
3c5ba9f… drh 71 rm -f autoconfig.h config.log Makefile

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button