| 1 |
AUTOMAKE_OPTIONS = gnits |
| 2 |
|
| 3 |
EXTRA_DIST = parser.g move-if-change mkinstalldirs install-sh \ |
| 4 |
antlr/AParser.cpp antlr/AParser.h antlr/ATokPtr.cpp antlr/ATokPtr.h antlr/ATokPtrImpl.h antlr/AToken.h antlr/ATokenBuffer.h antlr/ATokenStream.h antlr/DLexer.cpp antlr/DLexer.h antlr/DLexerBase.h antlr/pccts_setjmp.h antlr/pccts_stdarg.h antlr/pccts_stdio.h antlr/pccts_stdlib.h antlr/pccts_string.h antlr/pcctscfg.h antlr/DLexer.h \ |
| 5 |
fractint2lsys.pl \ |
| 6 |
TODO |
| 7 |
|
| 8 |
INCLUDES = -I$(srcdir)/antlr |
| 9 |
|
| 10 |
#PG = -pg |
| 11 |
|
| 12 |
# -pg only with -O2 but not -O6(!!!) |
| 13 |
|
| 14 |
ANTLRFLAGS = -e3 -nopurify -CC -gl # -gd |
| 15 |
DLGFLAGS = -C2 -CC -cs |
| 16 |
|
| 17 |
AM_LDFLAGS = -g $(PG) |
| 18 |
BUILT_SOURCES = Parser.cpp Parser.h parser.cpp DLGLexer.h DLGLexer.cpp tokens.h |
| 19 |
|
| 20 |
ANTLR_SOURCES = AParser.cpp DLexerBase.cpp ATokenBuffer.cpp |
| 21 |
STAMPFILES = stamp-antlr stamp-dlg |
| 22 |
PCCTSCLEANFILES = parser.cpp Parser.h Parser.cpp parser.dlg DLGLexer.cpp DLGLexer.h tokens.h |
| 23 |
if HAVE_PCCTS |
| 24 |
CLEANFILES = $(STAMPFILES) $(PCCTSCLEANFILES) |
| 25 |
else |
| 26 |
CLEANFILES = $(STAMPFILES) |
| 27 |
MAINTAINERCLEANFILES = $(PCCTSCLEANFILES) |
| 28 |
endif |
| 29 |
|
| 30 |
noinst_PROGRAMS = lsys |
| 31 |
lsys_SOURCES = main.cpp Parser.cpp DLGLexer.cpp Parser.h DLGLexer.h parser.cpp tokens.h \ |
| 32 |
lsys.h lsys.cpp interp.h interp.cpp interface.h interface.cpp \ |
| 33 |
attr.h attr.cpp util.h util.cpp matrix.h matrix.cpp \ |
| 34 |
getopt.h \ |
| 35 |
ps_int.h ps_int.cpp \ |
| 36 |
gl_int.h gl_int.cpp \ |
| 37 |
rad_int.h rad_int.cpp \ |
| 38 |
ray_int.h ray_int.cpp \ |
| 39 |
$(ANTLR_SOURCES) |
| 40 |
lsys_LDADD = @LIBOBJS@ |
| 41 |
|
| 42 |
.PRECIOUS: $(BUILT_SOURCES) |
| 43 |
|
| 44 |
if HAVE_PCCTS |
| 45 |
tokens.h parser.cpp Parser.h Parser.cpp parser.dlg: stamp-antlr |
| 46 |
DLGLexer.cpp DLGLexer.h: stamp-dlg |
| 47 |
|
| 48 |
stamp-antlr: parser.g |
| 49 |
rm -rf antlr-out |
| 50 |
mkdir antlr-out |
| 51 |
antlr -o antlr-out $(ANTLRFLAGS) $< ;\ |
| 52 |
RES=$$? ;\ |
| 53 |
(exit $$RES) && $(srcdir)/move-if-change antlr-out/Parser.cpp Parser.cpp ;\ |
| 54 |
(exit $$RES) && $(srcdir)/move-if-change antlr-out/Parser.h Parser.h ;\ |
| 55 |
(exit $$RES) && $(srcdir)/move-if-change antlr-out/parser.cpp parser.cpp ;\ |
| 56 |
(exit $$RES) && $(srcdir)/move-if-change antlr-out/parser.dlg parser.dlg ;\ |
| 57 |
(exit $$RES) && $(srcdir)/move-if-change antlr-out/tokens.h tokens.h ;\ |
| 58 |
rm -rf antlr-out ;\ |
| 59 |
(exit $$RES) && touch stamp-antlr ;\ |
| 60 |
(exit $$RES) |
| 61 |
|
| 62 |
stamp-dlg: parser.dlg |
| 63 |
rm -rf dlg-out |
| 64 |
mkdir dlg-out |
| 65 |
dlg -o dlg-out $(DLGFLAGS) $< ;\ |
| 66 |
RES=$$? ;\ |
| 67 |
(exit $$RES) && $(srcdir)/move-if-change dlg-out/DLGLexer.cpp DLGLexer.cpp ;\ |
| 68 |
(exit $$RES) && $(srcdir)/move-if-change dlg-out/DLGLexer.h DLGLexer.h ;\ |
| 69 |
rm -rf dlg-out ;\ |
| 70 |
(exit $$RES) && touch stamp-dlg ;\ |
| 71 |
exit $$RES |
| 72 |
endif |
| 73 |
|
| 74 |
dist-hook: |
| 75 |
mkdir $(distdir)/lib |
| 76 |
cp -rp $(srcdir)/lib/. $(distdir)/lib |
| 77 |
|
| 78 |
test: all |
| 79 |
lsys -v -Ilib -i turtle -f rad -o x.rad mycelis_muralis 5 5 |
| 80 |
# lsys -v -d2 -I lib -i turtle -f gl cfg |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|