- Get VPATH build to work
[rodin/chimara.git] / interpreters / git / Makefile.am
1 # Automatically generate version.h
2 MAJOR = 1
3 MINOR = 2
4 PATCH = 4
5 version.h: Makefile
6         echo "// Automatically generated file -- do not edit!" > version.h
7         echo "#define GIT_MAJOR" $(MAJOR) >> version.h
8         echo "#define GIT_MINOR" $(MINOR) >> version.h
9         echo "#define GIT_PATCH" $(PATCH) >> version.h
10
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 \
16     accel.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)
20
21 gitdocdir = $(datadir)/doc/$(PACKAGE)/git
22 dist_gitdoc_DATA = README.txt
23
24 CLEANFILES = version.h test/*.tmp
25
26 #TESTS = test/test.sh \
27 #       test/Alabaster.gblorb test/Alabaster.walk test/Alabaster.golden
28 #
29 #test: git
30 #       sh test/test.sh
31
32 # Memory mapping (-DUSE_MMAP) doesn't seem to work... FIXME
33
34 # Best settings for GCC 2.95. This generates faster code than
35 # GCC 3, so you should use this setup if possible.
36 #CC = gcc -Wall -O3
37 #OPTIONS = -DUSE_DIRECT_THREADING -DUSE_MMAP -DUSE_INLINE
38 #
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.
41 #CC = gcc -Wall -O3
42 #OPTIONS = -DUSE_MMAP -DUSE_INLINE
43 #
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