1 # Automatically generate version.h
6 $(AM_V_GEN)echo "// Automatically generated file -- do not edit!" > version.h
7 $(AM_V_at)echo "#define GIT_MAJOR" $(MAJOR) >> version.h
8 $(AM_V_at)echo "#define GIT_MINOR" $(MINOR) >> version.h
9 $(AM_V_at)echo "#define GIT_PATCH" $(PATCH) >> version.h
11 pkglib_LTLIBRARIES = git.la
12 BUILT_SOURCES = version.h
13 git_la_SOURCES = version.h git.h config.h compiler.h memory.h opcodes.h \
14 labels.inc compiler.c gestalt.c git.c git_unix.c glkop.c heap.c memory.c \
15 opcodes.c operands.c peephole.c savefile.c saveundo.c search.c terp.c \
17 git_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara
18 git_la_CFLAGS = -DCHIMARA_EXTENSIONS -DUSE_INLINE $(AM_CFLAGS)
19 git_la_LDFLAGS = -module $(PLUGIN_LIBTOOL_FLAGS)
21 gitdocdir = $(datadir)/doc/$(PACKAGE)/git
22 dist_gitdoc_DATA = README.txt
24 CLEANFILES = version.h test/*.tmp
26 #TESTS = test/test.sh \
27 # test/Alabaster.gblorb test/Alabaster.walk test/Alabaster.golden
32 # Memory mapping (-DUSE_MMAP) doesn't seem to work... FIXME
34 # Best settings for GCC 2.95. This generates faster code than
35 # GCC 3, so you should use this setup if possible.
37 #OPTIONS = -DUSE_DIRECT_THREADING -DUSE_MMAP -DUSE_INLINE
39 # Best settings for GCC 3. The optimiser in this version of GCC
40 # is somewhat broken, so we can't use USE_DIRECT_THREADING.
42 #OPTIONS = -DUSE_MMAP -DUSE_INLINE
44 # Mac OS X (PowerPC) settings.
45 #CC = gcc2 -Wall -O3 -no-cpp-precomp
46 #OPTIONS = -DUSE_DIRECT_THREADING -DUSE_BIG_ENDIAN_UNALIGNED -DUSE_MMAP -DUSE_INLINE
48 -include $(top_srcdir)/git.mk