summaryrefslogtreecommitdiff
path: root/bin/MakeProjectCreator/templates/bor.mpd
blob: 9f6a31f588dd1eda61e04fdea70eb8a2c5e89263 (plain)
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
# Makefile for building the <%if(exename)%><%exename%> exe<%endif%><%if(sharedname)%><%sharedname%> library<%endif%> with Borland C++ Builder

<%if(ssl)%>
!ifdef SSL_ROOT
<%endif%>
NAME = <%if(exename)%><%exename%><%endif%><%if(sharedname)%><%sharedname%><%endif%>
<%if(ssl)%>
!endif
<%endif%>
<%if(idl_files)%>

TAO_IDL = $(CORE_BINDIR)\tao_idl -g $(CORE_BINDIR)\gperf.exe
<%endif%>

<%if(source_files)%>
OBJFILES = \
<%foreach(source_files)%>
	$(OBJDIR)\<%basenoextension(source_file)%>.obj<%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%if(ssl)%>

EXTERNAL_LIBS =<%foreach(ssl_libs)%> <%ssl_lib%>.lib<%endfor%>
<%else%>

EXTERNAL_LIBS =
<%endif%>

LFLAGS = \
<%foreach(libpaths)%>
	-L<%libpath%>\$(CONFIG_SUBDIR) -L<%libpath%> \
<%endfor%>
  -L$(CORE_BINDIR)

LIBFILES = \
<%foreach(libs defaultlibs)%>
	<%lib%>$(LIB_DECORATOR).lib \
<%endfor%>
	$(EXTERNAL_LIBS)
<%if(idl_files)%>

IDLFILES = \
<%foreach(idl_files)%>
	$(IDLDIR)\<%basenoextension(idl_file)%>.idl<%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%if(resource_files)%>

RESOURCE =<%foreach(resource_files)%> $(OBJDIR)\<%noextension(resource_file)%>.res<%endfor%>
<%endif%>

!ifdef STATIC
LIB_FLAGS =<%foreach(libflags)%> -D<%libflag%>=1<%endfor%>
DLL_FLAGS =
!else
LIB_FLAGS =
DLL_FLAGS =<%foreach(dllflags)%> -D<%dllflag%>=1<%endfor%>
!endif

CFLAGS = \
<%foreach(includes)%>
	-I<%include%> \
<%endfor%>
	$(LIB_FLAGS) \
	$(DLL_FLAGS)
<%if(pch_header)%>

PCH_HEADER=<%pch_header%>
<%endif%>

CPPDIR = <%cppdir%>
<%if(idl_files)%>

IDLDIR = .
<%endif%>
<%if(header_files)%>

INCLUDES = \
<%foreach(header_files template_files inline_files idl_files)%>
	<%header_file%><%fornotlast(" \\")%>
<%endfor%>
<%if(include_dir)%>

INCDIR_NAME = <%include_dir%>
<%endif%>
<%endif%>
<%if(idl_files)%>

all: idl_src_files
<%endif%>
<%if(exename)%>
<%if(install)%>

BASE_BINDIR = <%install%>
<%endif%>
<%if(core)%>

!include <$(ACE_ROOT)\include\makeinclude\build_core_exe.bor>
<%else%>

!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor>
<%endif%>
<%endif%>
<%if(sharedname)%>
<%if(dllout)%>

BASE_BINDIR = <%dllout%>
<%endif%>
<%if(core)%>

!include <$(ACE_ROOT)\include\makeinclude\build_core_library.bor>
<%else%>

!include <$(ACE_ROOT)\include\makeinclude\build_library.bor>
<%endif%>
<%endif%>
<%if(idl_files)%>

#
# IDL Build rules
#

idl_src_files: $(IDLFILES:.idl=C.cpp) $(IDLFILES:.idl=S.cpp)

<%foreach(idl_files)%>
$(IDLDIR)\<%basenoextension(idl_file)%>S.cpp $(IDLDIR)\<%basenoextension(idl_file)%>C.cpp: $(IDLDIR)\<%basenoextension(idl_file)%>.idl
	$(TAO_IDL) <%if(flag_overrides(idl_file))%><%flag_overrides(idl_file)%><%else%><%idlflags("-Sc")%><%endif%> $**
<%endfor%>
<%endif%>