OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [src/] [Makefile] - Blame information for rev 39

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jcastillo
#  This program is free software; you can redistribute it and/or modify
2
#  it under the terms of the GNU General Public License as published by
3
#  the Free Software Foundation; either version 2 of the License, or
4
#  (at your option) any later version.
5
#
6
#  This program is distributed in the hope that it will be useful,
7
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
8
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9
#  GNU Library General Public License for more details.
10
#
11
#  You should have received a copy of the GNU General Public License
12
#  along with this program; if not, write to the Free Software
13
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14
 
15
#
16
# Cygwin
17
#
18 14 jcastillo
LEX = flex
19
YACC = bison -y
20 2 jcastillo
#
21
# Linux
22
#
23 14 jcastillo
#LEX = lex
24
#YACC = yacc
25 2 jcastillo
 
26
all:
27 14 jcastillo
        $(LEX) sc2v_step1.l
28
        $(YACC) -d sc2v_step1.y
29
        gcc lex.yy.c y.tab.c sc2v_step1.c -Isrc -o ../bin/sc2v_step1 -lm
30 2 jcastillo
 
31
        $(LEX) sc2v_step2.l
32
        $(YACC) -d sc2v_step2.y
33 14 jcastillo
        gcc lex.yy.c y.tab.c sc2v_step2.c -Isrc -o ../bin/sc2v_step2 -lm
34
 
35 4 jcastillo
        $(LEX) sc2v_step3.l
36
        $(YACC) -d sc2v_step3.y
37 14 jcastillo
        gcc lex.yy.c y.tab.c -Isrc -o ../bin/sc2v_step3 -lm
38 2 jcastillo
 
39
clean:
40 5 jcastillo
        rm -rf lex.* y.* *.o ../bin/sc2v_step2* ../bin/sc2v_step1* ../bin/sc2v_step3*

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.