Applied patches to Git interpreter from Gargoyle source code
[projects/chimara/chimara.git] / interpreters / git / Makefile.am
1 PLUGIN_LIBTOOL_FLAGS=-module -avoid-version -export-symbols-regex "^glk"
2
3 # Automatically generate version.h
4 MAJOR = 1
5 MINOR = 2
6 PATCH = 4
7 version.h: Makefile
8         echo "// Automatically generated file -- do not edit!" > version.h
9         echo "#define GIT_MAJOR" $(MAJOR) >> version.h
10         echo "#define GIT_MINOR" $(MINOR) >> version.h
11         echo "#define GIT_PATCH" $(PATCH) >> version.h
12
13 pkglib_LTLIBRARIES = git.la
14 BUILT_SOURCES = version.h
15 git_la_SOURCES = version.h git.h config.h compiler.h memory.h opcodes.h \
16     labels.inc compiler.c gestalt.c git.c git_unix.c glkop.c heap.c memory.c \
17     opcodes.c operands.c peephole.c savefile.c saveundo.c search.c terp.c \
18     accel.c
19 git_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libchimara
20 git_la_CFLAGS = -DCHIMARA_EXTENSIONS -DUSE_INLINE $(AM_CFLAGS)
21 git_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
22
23 gitdocdir = $(datadir)/doc/$(PACKAGE)/git
24 dist_gitdoc_DATA = README.txt
25
26 CLEANFILES = test/*.tmp
27
28 #TESTS = test/test.sh \
29 #       test/Alabaster.gblorb test/Alabaster.walk test/Alabaster.golden
30 #
31 #test: git
32 #       sh test/test.sh
33
34 # Memory mapping (-DUSE_MMAP) doesn't seem to work... FIXME
35
36 # Best settings for GCC 2.95. This generates faster code than
37 # GCC 3, so you should use this setup if possible.
38 #CC = gcc -Wall -O3
39 #OPTIONS = -DUSE_DIRECT_THREADING -DUSE_MMAP -DUSE_INLINE
40 #
41 # Best settings for GCC 3. The optimiser in this version of GCC
42 # is somewhat broken, so we can't use USE_DIRECT_THREADING.
43 #CC = gcc -Wall -O3
44 #OPTIONS = -DUSE_MMAP -DUSE_INLINE
45 #
46 # Mac OS X (PowerPC) settings.
47 #CC = gcc2 -Wall -O3 -no-cpp-precomp
48 #OPTIONS = -DUSE_DIRECT_THREADING -DUSE_BIG_ENDIAN_UNALIGNED -DUSE_MMAP -DUSE_INLINE