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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [ecostest/] [unix/] [Makefile] - Blame information for rev 790

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

Line No. Rev Author Line
1 786 skrzyp
common_sources = \
2
        ../../Utils/common/Properties.cpp       \
3
        ../../Utils/common/Subprocess.cpp       \
4
        ../../Utils/common/Collections.cpp      \
5
        ../../Utils/common/eCosStd.cpp          \
6
        ../../Utils/common/eCosThreadUtils.cpp  \
7
        ../../Utils/common/eCosTrace.cpp        \
8
        ../../Utils/common/eCosSerial.cpp       \
9
        ../../Utils/common/eCosSocket.cpp       \
10
        ../common/eCosTestUtils.cpp             \
11
        ../common/TestResource.cpp              \
12
        ../common/ResetAttributes.cpp           \
13
        ../common/eCosTest.cpp                  \
14
        ../common/eCosTestPlatform.cpp                  \
15
        ../common/eCosTestDownloadFilter.cpp    \
16
        ../common/eCosTestMonitorFilter.cpp     \
17
        ../common/eCosTestSerialFilter.cpp
18
 
19
common_objects = $(notdir $(common_sources:.cpp=.o))
20
 
21
all_sources = $(common_sources) ../common/ser_filter.cpp
22
 
23
programs = ser_filter
24
 
25
 
26
CXX=g++
27
 
28
ifneq (,$(findstring CYGWIN, $(shell uname)))
29
LIBS := -lwsock32
30
endif
31
 
32
ifneq (, $(findstring SunOS, $(shell uname)))
33
LIBS := -lpthread -lsocket -lxnet -lstdc++ -lposix4
34
endif
35
 
36
ifneq (, $(findstring Linux, $(shell uname)))
37
LIBS := -lpthread -efence -lstdc++
38
endif
39
 
40
# Look in these directories for source/make files
41
VPATH = .:../common:../../Utils/common
42
 
43
# Flags
44
CPPFLAGS=-I../../Utils/common -I../common
45
CXXFLAGS=-g -O2 -Wall -D_REENTRANT -D_DEBUG $(CPPFLAGS)
46
 
47
%.d: %.cpp
48
        $(SHELL) -ec '$(CC) -MM $(CPPFLAGS) $< \
49
               | sed '\''s#\($*\)\.o[ :]*#\1.o $@ : #g'\'' > $@; \
50
               [ -s $@ ] || rm -f $@'
51
 
52
%.o: %.cpp
53
        $(CXX) -c $(CXXFLAGS) -o $@ $<
54
 
55
.PHONY: all
56
all: $(programs)
57
 
58
ser_filter: $(common_objects) ser_filter.o
59
        $(CXX) -o $@  $(CXXFLAGS) $^ $(LIBPATH) $(LIBS)
60
 
61
 
62
.PHONY: clean
63
clean:
64
        rm -f *.o *.d
65
        rm -f $(programs)
66
 
67
# include the dependency files
68
include $(notdir $(all_sources:.cpp=.d))

powered by: WebSVN 2.1.0

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