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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [utils/] [Makefile] - Blame information for rev 328

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

Line No. Rev Author Line
1 6 julius
#*$$HEADER*#
2
#******************************************************************************#
3
#*                                                                            *#
4
#*                    H E A D E R   I N F O R M A T I O N                     *#
5
#*                                                                            *#
6
#******************************************************************************#
7
 
8
## Project Name                   : ORPSoC v2
9
## File Name                      : Makefile
10
## Prepared By                    :
11
## Project Start                  :
12
 
13
#*$$COPYRIGHT NOTICE*#
14
#******************************************************************************#
15
#*                                                                            *#
16
#*                      C O P Y R I G H T   N O T I C E                       *#
17
#*                                                                            *#
18
#******************************************************************************#
19
#*
20
#  This library is free software; you can redistribute it and/or
21
#  modify it under the terms of the GNU Lesser General Public
22
#  License as published by the Free Software Foundation;
23
#  version 2.1 of the License, a copy of which is available from
24
#  http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
25
#
26
#  This library is distributed in the hope that it will be useful,
27
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
28
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
29
#  Lesser General Public License for more details.
30
#
31
#  You should have received a copy of the GNU Lesser General Public
32
#  License along with this library; if not, write to the Free Software
33
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
34
#
35
#*$$DESCRIPTION*#
36
#******************************************************************************#
37
#*                                                                            *#
38
#*                           D E S C R I P T I O N                            *#
39
#*                                                                            *#
40
#******************************************************************************#
41
##
42
## Makefile for the ORPSoC software utilities
43
##
44
 
45 63 julius
PROGRAMS = bin2c bin2srec bin2flimg bin2hex bin2vmem binlog2readable
46 6 julius
# NB: 'loader' not in that list
47
 
48
CC     = gcc
49 63 julius
CPP    = g++
50 6 julius
CFLAGS = -O2 -Wall
51 63 julius
#CFLAGS = -O0 -Wall -g
52 6 julius
 
53
% : %.c
54
        @/bin/rm -f $@
55
        $(CC) -o $@ $(CFLAGS) $<
56
 
57 63 julius
% : %.cpp
58
        @/bin/rm -f $@
59
        $(CPP) -o $@ $(CFLAGS) $<
60
 
61 6 julius
all: $(PROGRAMS) or32-idecode
62
 
63
# redundant stanza:
64
loader: loader.c
65
        $(CC) -o $@ $(CFLAGS) $<
66
 
67
.PHONY or32-idecode:
68
or32-idecode:
69
        $(MAKE) -C or32-idecode
70
 
71
clean:
72
        /bin/rm -f $(PROGRAMS) *~ *.bak
73
        $(MAKE) -C ./or32-idecode clean

powered by: WebSVN 2.1.0

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