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

Subversion Repositories altor32

[/] [altor32/] [trunk/] [or1k-sim/] [makefile] - Rev 43

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

###############################################################################
## Simulator Makefile
###############################################################################

# Target
TARGET          = or1knd-sim

# Options
CFLAGS      = -DINCLUDE_INST_DUMP
LDFLAGS     = 

# Optional (you need libelf-dev)
#CFLAGS    += -DINCLUDE_ELF_SUPPORT
#LIBS       += -lelf 

# Source Files
OBJ = main.o or32.o or32_inst_dump.o

###############################################################################
# Rules
###############################################################################
all: $(TARGET)
        
clean:
        -rm *.o $(TARGET)

%.o : %.c
        gcc -c $(CFLAGS) $< -o $@

%.o : %.cpp
        g++ -c $(CFLAGS) $< -o $@

$(TARGET): $(OBJ) makefile
        g++ $(LDFLAGS) $(OBJ) $(LIBS) -o $@

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

powered by: WebSVN 2.1.0

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