-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
65 lines (50 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
#
#
UNAME := $(shell uname -s)
MAKE_OPT=""
ifneq (,$(findstring CYGWIN, $(UNAME)))
UNAME = Cygwin
endif
all: config_rtorb.h link idl_compiler CosName-srcs libs NameService linkbin
link:
@for i in include lib; \
do \
if [ ! -L $$i/CosName ]; then \
echo \<$$i\> Create Symbolic link to \'CosName\'; \
cd $$i; ln -s ../CosName ./; cd ..;\
fi \
done
idl_compiler:
cd idl-compiler && $(MAKE)
libs:
cd lib && $(MAKE) "DEFINE=$(DEFINE)"
CosName-srcs:
cd CosName && $(MAKE)
NameService:
cd CosName && $(MAKE) NameService
# create configuration file
config_rtorb.h:
tools/gen_config $(UNAME) $(MAKE_OPT)
linkbin:
if [ ! -d bin ]; then \
mkdir bin; \
fi;\
if cd bin; then \
if [ ! -L rtorb-idl ]; then \
ln -s ../idl-compiler/rtorb-idl ./; \
fi; \
if [ ! -L NameService ]; then \
ln -s ../CosName/NameService ./; \
fi \
fi
distclean:
/bin/rm -f *~
cd idl-compiler && $(MAKE) clean
cd lib && $(MAKE) allclean
rm include/RtORB/config_rtorb.h
clean:
/bin/rm -f *~
cd idl-compiler && $(MAKE) clean
cd lib && $(MAKE) allclean
rm include/RtORB/config_rtorb.h