#*$$HEADER*#
|
#*$$HEADER*#
|
#******************************************************************************#
|
#******************************************************************************#
|
#* *#
|
#* *#
|
#* H E A D E R I N F O R M A T I O N *#
|
#* H E A D E R I N F O R M A T I O N *#
|
#* *#
|
#* *#
|
#******************************************************************************#
|
#******************************************************************************#
|
|
|
## Project Name : ORPSoC v2
|
## Project Name : ORPSoC v2
|
## File Name : Makefile
|
## File Name : Makefile
|
## Prepared By :
|
## Prepared By :
|
## Project Start :
|
## Project Start :
|
|
|
#*$$COPYRIGHT NOTICE*#
|
#*$$COPYRIGHT NOTICE*#
|
#******************************************************************************#
|
#******************************************************************************#
|
#* *#
|
#* *#
|
#* C O P Y R I G H T N O T I C E *#
|
#* C O P Y R I G H T N O T I C E *#
|
#* *#
|
#* *#
|
#******************************************************************************#
|
#******************************************************************************#
|
#*
|
#*
|
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
# modify it under the terms of the GNU Lesser General Public
|
# modify it under the terms of the GNU Lesser General Public
|
# License as published by the Free Software Foundation;
|
# License as published by the Free Software Foundation;
|
# version 2.1 of the License, a copy of which is available from
|
# version 2.1 of the License, a copy of which is available from
|
# http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
|
# http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
|
#
|
#
|
# This library is distributed in the hope that it will be useful,
|
# This library 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 GNU
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
# Lesser General Public License for more details.
|
# Lesser General Public License for more details.
|
#
|
#
|
# You should have received a copy of the GNU Lesser General Public
|
# You should have received a copy of the GNU Lesser General Public
|
# License along with this library; if not, write to the Free Software
|
# License along with this library; if not, write to the Free Software
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
#
|
#
|
#*$$DESCRIPTION*#
|
#*$$DESCRIPTION*#
|
#******************************************************************************#
|
#******************************************************************************#
|
#* *#
|
#* *#
|
#* D E S C R I P T I O N *#
|
#* D E S C R I P T I O N *#
|
#* *#
|
#* *#
|
#******************************************************************************#
|
#******************************************************************************#
|
##
|
##
|
## Makefile for the ORPSoC software utilities
|
## Makefile for the ORPSoC software utilities
|
##
|
##
|
|
|
PROGRAMS = bin2c bin2srec bin2flimg bin2hex bin2vmem binlog2readable
|
PROGRAMS = bin2c bin2srec bin2flimg bin2hex bin2vmem binlog2readable bin2vlogarray bin2binsizeword
|
# NB: 'loader' not in that list
|
# NB: 'loader' not in that list
|
|
|
CC = gcc
|
CC = gcc
|
CPP = g++
|
CPP = g++
|
CFLAGS = -O2 -Wall
|
CFLAGS = -O2 -Wall
|
#CFLAGS = -O0 -Wall -g
|
#CFLAGS = -O0 -Wall -g
|
|
|
% : %.c
|
% : %.c
|
@/bin/rm -f $@
|
@/bin/rm -f $@
|
$(CC) -o $@ $(CFLAGS) $<
|
$(CC) -o $@ $(CFLAGS) $<
|
|
|
% : %.cpp
|
% : %.cpp
|
@/bin/rm -f $@
|
@/bin/rm -f $@
|
$(CPP) -o $@ $(CFLAGS) $<
|
$(CPP) -o $@ $(CFLAGS) $<
|
|
|
all: $(PROGRAMS) or32-idecode
|
all: $(PROGRAMS) or32-idecode
|
|
|
# redundant stanza:
|
# redundant stanza:
|
loader: loader.c
|
loader: loader.c
|
$(CC) -o $@ $(CFLAGS) $<
|
$(CC) -o $@ $(CFLAGS) $<
|
|
|
.PHONY or32-idecode:
|
.PHONY or32-idecode:
|
or32-idecode:
|
or32-idecode:
|
$(MAKE) -C or32-idecode
|
$(MAKE) -C or32-idecode
|
|
|
clean:
|
clean:
|
/bin/rm -f $(PROGRAMS) *~ *.bak
|
/bin/rm -f $(PROGRAMS) *~ *.bak
|
$(MAKE) -C ./or32-idecode clean
|
$(MAKE) -C ./or32-idecode clean
|
|
|