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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src-c/] [coremark_v1.0/] [msp430/] [core_portme.mak] - Blame information for rev 145

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

Line No. Rev Author Line
1 145 olivier.gi
#File: core_portme.mak
2
 
3
ITERATIONS  = 1
4
PORT_CFLAGS = -O2
5
 
6
# Flag: OUTFLAG
7
#       Use this flag to define how to to get an executable (e.g -o)
8
OUTFLAG= -o
9
# Flag: CC
10
#       Use this flag to define compiler to use
11
CC = msp430-gcc
12
# Flag: CFLAGS
13
#       Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags"
14
FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)"
15
#CFLAGS = $(PORT_CFLAGS) -mforce-hwmul  -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
16
CFLAGS = $(PORT_CFLAGS) -mcpu=430 -mivcnt=16 -mmpy=16  -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\"
17
#Flag: LFLAGS_END
18
#       Define any libraries needed for linking or other flags that should come at the end of the link line (e.g. linker scripts).
19
#       Note : On certain platforms, the default clock_gettime implementation is supported but requires linking of librt.
20
LFLAGS_END += -T$(PORT_DIR)/linker.x
21
# Flag : PORT_SRCS
22
#       Port specific source files can be added here
23
PORT_SRCS = $(PORT_DIR)/core_portme.c $(PORT_DIR)/omsp_func.c
24
# Flag : LOAD
25
#       For a simple port, we assume self hosted compile and run, no load needed.
26
 
27
# Flag : RUN
28
#       For a simple port, we assume self hosted compile and run, simple invocation of the executable
29
 
30
#For native compilation and execution
31
LOAD = echo Loading done
32
RUN = echo
33
 
34
OEXT = .o
35
EXE = .elf
36
 
37
 
38
# Target : port_pre% and port_post%
39
# For the purpose of this simple port, no pre or post steps needed.
40
 
41
.PHONY : port_prebuild port_postbuild port_prerun port_postrun port_preload port_postload
42
port_pre% port_post% :
43
 
44
# FLAG : OPATH
45
# Path to the output folder. Default - current folder.
46
OPATH = ./
47
MKDIR = mkdir -p
48
 
49
 

powered by: WebSVN 2.1.0

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