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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [examples/] [elf2raw64/] [makefiles/] [makefile] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
include util.mak
2
 
3
CC=gcc
4
CFLAGS= -c -g -O2
5
LDFLAGS=
6
LIBS=-lstdc++
7
 
8
SOURCES = \
9
        elfreader.cpp \
10
        main.cpp
11
OBJECTS = $(SOURCES:.cpp=.o)
12
EXECUTABLE = elf2raw64
13
SRC_DIR = ../src
14
OBJ_DIR = obj
15
ELF_DIR = elf
16
 
17
.PHONY: $(EXECUTABLE)
18
 
19
all: $(EXECUTABLE)
20
 
21
$(EXECUTABLE): $(OBJECTS)
22
        $(MKDIR) ./$(ELF_DIR)
23
        $(CC) $(LDFLAGS) $(addprefix $(OBJ_DIR)/,$(OBJECTS)) -o $(addprefix $(ELF_DIR)/,$@) -lstdc++
24
 
25
#.cpp.o:
26
%.o: $(SRC_DIR)/%.cpp
27
        $(MKDIR) ./$(OBJ_DIR)
28
        $(CC) $(CFLAGS) $< -o $(addprefix $(OBJ_DIR)/,$@)

powered by: WebSVN 2.1.0

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