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

Subversion Repositories altor32

[/] [altor32/] [trunk/] [or1k-sim/] [makefile] - Blame information for rev 40

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

Line No. Rev Author Line
1 28 ultra_embe
###############################################################################
2
## Simulator Makefile
3
###############################################################################
4
 
5
# Target
6
TARGET          = or1knd-sim
7
 
8
# Options
9
CFLAGS      = -DINCLUDE_INST_DUMP
10
LDFLAGS     =
11
 
12
# Optional (you need libelf-dev)
13
#CFLAGS    += -DINCLUDE_ELF_SUPPORT
14
#LIBS       += -lelf
15
 
16
# Source Files
17
OBJ = main.o or32.o or32_inst_dump.o
18
 
19
###############################################################################
20
# Rules
21
###############################################################################
22
all: $(TARGET)
23
 
24
clean:
25
        -rm *.o $(TARGET)
26
 
27
%.o : %.c
28
        gcc -c $(CFLAGS) $< -o $@
29
 
30
%.o : %.cpp
31
        g++ -c $(CFLAGS) $< -o $@
32
 
33
$(TARGET): $(OBJ) makefile
34
        g++ $(LDFLAGS) $(OBJ) $(LIBS) -o $@
35
 

powered by: WebSVN 2.1.0

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