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

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [src/] [Makefile] - Diff between revs 26 and 36

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 26 Rev 36
#  This program is free software; you can redistribute it and/or modify
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#  (at your option) any later version.
#
#
#  This program is distributed in the hope that it will be useful,
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Library General Public License for more details.
#  GNU Library General Public License for more details.
#
#
#  You should have received a copy of the GNU General Public License
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
# Cygwin
# Cygwin
#
#
LEX = flex
LEX = flex
YACC = bison -y
YACC = bison -y
#
#
# Linux
# Linux
#
#
#LEX = lex
#LEX = lex
#YACC = yacc
#YACC = yacc
all:
all:
        $(LEX) sc2v_step1.l
        $(LEX) sc2v_step1.l
        $(YACC) -d sc2v_step1.y
        $(YACC) -d sc2v_step1.y
        gcc lex.yy.c y.tab.c sc2v_step1.c -Isrc -o ../bin/sc2v_step1 -lm
        gcc lex.yy.c y.tab.c sc2v_step1.c -Isrc -o ../bin/sc2v_step1 -lm
        $(LEX) sc2v_step2.l
        $(LEX) sc2v_step2.l
        $(YACC) -d sc2v_step2.y
        $(YACC) -d sc2v_step2.y
        gcc lex.yy.c y.tab.c sc2v_step2.c -Isrc -o ../bin/sc2v_step2 -lm
        gcc lex.yy.c y.tab.c sc2v_step2.c -Isrc -o ../bin/sc2v_step2 -lm
        $(LEX) sc2v_step3.l
        $(LEX) sc2v_step3.l
        $(YACC) -d sc2v_step3.y
        $(YACC) -d sc2v_step3.y
        gcc lex.yy.c y.tab.c -Isrc -o ../bin/sc2v_step3 -lm
        gcc lex.yy.c y.tab.c -Isrc -o ../bin/sc2v_step3 -lm
clean:
clean:
        rm -rf lex.* y.* *.o ../bin/sc2v_step2* ../bin/sc2v_step1* ../bin/sc2v_step3*
        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.