2257391e77a7d15701b3cbf142b46669a64409a9
[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 = -DUSE_MMAP -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 # 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