OpenCores
URL https://opencores.org/ocsvn/1g_ethernet_dpi/1g_ethernet_dpi/trunk

Subversion Repositories 1g_ethernet_dpi

[/] [1g_ethernet_dpi/] [trunk/] [sw/] [app/] [gtest/] [Makefile] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 kuzmi4
#
2
# makefile
3
#
4
 
5
TARGET = gtest_vtest
6
 
7
all: $(TARGET)
8
 
9
CC = g++ -xc
10
CPP= g++ -xc++
11
LD = g++
12
OBJDUMP = objdump
13
DEFAULT_CP := cp -f
14
DEFAULT_MKDIR := mkdir -p
15
DEFAULT_RM := rm -rf
16
LIBRARIES := -lgtest -lpthread -L../src -lethlc
17
 
18
INCDIR := ./ \
19
 ../src
20
INCLUDE := $(addprefix -I, $(INCDIR))
21
CFLAGS += -g
22
CFLAGS += $(INCLUDE)
23
 
24
OBJ_DIR       = obj
25
OBJECTS       = gtest_unittest.o \
26
                gtest_0.o \
27
                gtest_1.o
28
 
29
OBJ_FILES := $(addprefix $(OBJ_DIR)/, $(OBJECTS))
30
 
31
$(TARGET): prep $(OBJ_FILES)
32
        $(LD) $(LFLAGS) -o $(TARGET) $(OBJ_FILES) $(LIBRARIES)
33
        @echo DONE: app
34
 
35
$(OBJ_DIR)/%.o: %.cpp
36
        $(CPP) -c $(CFLAGS) -o $@ $<
37
 
38
prep:
39
        make all -C ../src
40
        $(DEFAULT_RM) $(OBJ_DIR)
41
        $(DEFAULT_MKDIR) $(OBJ_DIR)
42
 
43
clean:
44
        make clean -C ../src
45
        $(DEFAULT_RM) $(OBJ_DIR)
46
        $(DEFAULT_RM) $(TARGET)

powered by: WebSVN 2.1.0

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