-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win32
153 lines (124 loc) · 3.62 KB
/
Makefile.win32
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#
# MICO --- a free CORBA implementation
# Copyright (C) 1997 Kay Roemer & Arno Puder
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Send comments and/or bug reports to:
#
!include MakefileConfig.win32
all: dirs checkvc checknetwork helper system path install
checkvc:
call admin\checkvstudio.bat
checknetwork:
#@-call admin\checknetwork.bat
dirs:
@-mkdir .\win32-bin
@-mkdir .\win32-bin\lib
sslsystem:
@call admin\checkSSL.bat
# use here the same parameters as in the makefile of PTHREADS: VC,VCE,VSE
!ifdef RELEASE_BUILD
pthreadsystem:
admin\checkPTHREADS.bat VC release
!else
pthreadsystem:
admin\checkPTHREADS.bat VC debug
!endif
!include MakeVars.win32
LIBDIRS = orb idl
PRGDIRS = orb cpp idl ir daemon coss tools
!if defined(USE_CCM)
PRGDIRS = $(PRGDIRS) ccm
!endif
TOINSTALLDIRS=ir daemon coss tools
ALLDIRS = orb cpp idl ir daemon coss tools
demo: demo/Makefile.win32
cd demo
$(MAKE) /f Makefile.win32
cd ..
path:
@echo Starting the build process
PATH = %PATH%;$(MPATH)
!if defined(HAVE_THREADS)
@echo PTHREADS_LIB = $(PTHREADS_LIB)
@echo PTHREADS_PATH = $(PTHREADS_PATH)
!endif
!if defined(HAVE_SSL)
@echo SSL_LIBS = $(SSL_LIBS)
@echo SSL_PATH = $(SSL_PATH)
!endif
system: sslsystem pthreadsystem
cd ir
$(MAKE) /f Makefile.win32 lib
cd ..\orb
$(MAKE) /f Makefile.win32 mico$(VERSION).dll
cd ..\idl
$(MAKE) /f Makefile.win32 lib
cd ..\cpp
$(MAKE) /f Makefile.win32 prg
cd ..\idl
$(MAKE) /f Makefile.win32 prg
cd ..\ir
$(MAKE) /f Makefile.win32 prg
cd ..\daemon
$(MAKE) /f Makefile.win32 prg
cd ..\coss
$(MAKE) /f Makefile.win32 all
!if defined(USE_CCM)
cd ..\ccm
$(MAKE) /f Makefile.win32 all
!endif
cd ..\tools
$(MAKE) /f Makefile.win32 all
cd ..
install: system
@echo Installing new binaries
for %i in ( $(TOINSTALLDIRS) ) ; do cmd /c "cd %%i & $(MAKE) /f Makefile.win32 install"
clean:
@for %i in ( $(PRGDIRS) demo ) ; do cmd /c "cd %%i & $(MAKE) /f Makefile.win32 clean"
!ifdef HAVE_THREADS
@cd contrib\pthreads
@$(MAKE) clean
@cd ..\..
!endif
@-$(RM) admin\cntfiles.exe
@echo #SSL is by default disabled but it will be checked every time you build > makevars.win32.ssl
distclean:
@$(MAKE) /f Makefile.win32 clean
@-$(RM) win32-bin\*.dll
@-$(RM) win32-bin\*.exe
@-$(RM) win32-bin\lib\*.lib
!ifdef HAVE_THREADS
@cd contrib\pthreads
@nmake clean
@cd ..\..
!endif
cleanbin:
@echo cleaning only binaries
@-$(RM) win32-bin\*.dll
@-$(RM) win32-bin\*.exe
@-$(RM) win32-bin\lib\*.lib
@-$(RM) orb\mico$(VERSION).lib orb\mico$(VERSION).d??
@-$(RM) ir\ir$(VERSION).lib ir\ir$(VERSION).d?? ir\ird.exe
@-$(RM) idl\idl$(VERSION).lib idl\idl$(VERSION).d??
@-$(RM) cpp\*.exe
@-$(RM) ccm\*.exe ccm\*.lib
@-$(RM) coss\*.d?? coss\*.lib
helper: admin\cntfiles.exe
admin\cntfiles.exe: admin\cntfiles.cpp
echo $(CXXVC)
cl.exe $(CXXVC) /DNDEBUG /Ox admin\cntfiles.cpp /Foadmin\cntfiles.obj /link /OUT:admin\cntfiles.exe