Add language definition document. Allow execution of codewords without parameter...
[robmyers:surgical_strike.git] / Makefile
1 # Surgical Strike Free Software.
2 # Copyright (C) 2008, 2014 Rob Myers
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option, and if the Coin3D library supports it) any later
8 # version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19 all: lex.yy.c y.tab.cpp surgical_strike surgical_strike.pdf
20
21 lex.yy.c: surgical_strike.l
22         flex surgical_strike.l
23
24 y.tab.cpp: surgical_strike.y
25         bison --verbose --debug --defines surgical_strike.y -o y.tab.cpp
26
27 surgical_strike: lex.yy.o y.tab.cpp surgical_strike.cpp
28         c++ -Wall -g lex.yy.c y.tab.cpp surgical_strike.cpp \
29             -lOpenThreads -losg -losgDB -losgUtil -losgGA -losgText -losgViewer \
30                 -o surgical_strike
31
32 surgical_strike.pdf: surgical_strike.tex
33         pdflatex surgical_strike.tex
34
35 release:
36         tar -zcvf surgical_strike.tar.gz \
37         ../surgical_strike/surgical_strike.l \
38         ../surgical_strike/surgical_strike.y \
39         ../surgical_strike/surgical_strike.cpp \
40         ../surgical_strike/surgical_strike.h \
41         ../surgical_strike/surgical-strike-mode.el \
42         ../surgical_strike/*.strike \
43         ../surgical_strike/*.png \
44         ../surgical_strike/*.dxf \
45         ../surgical_strike/test.strike \
46         ../surgical_strike/Makefile \
47         ../surgical_strike/AUTHORS \
48         ../surgical_strike/COPYING \
49         ../surgical_strike/Changelog \
50         ../surgical_strike/DISCLAIMER \
51         ../surgical_strike/README
52
53 install:
54         install surgical_strike /usr/local/bin/
55
56 clean:
57         rm -f *.o
58         rm -f lex.yy.c
59         rm -f y.tab.cpp
60         rm -f surgical_strike
61         rm -f y.output
62         rm -f y.tab.hpp