Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r9431]: ooDialog / trunk / ooDialog / oodialog.mak Maximize Restore History

Download this file

oodialog.mak    283 lines (238 with data), 16.3 kB

  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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
#/*----------------------------------------------------------------------------*/
#/* */
#/* Copyright (c) 1995, 2004 IBM Corporation. All rights reserved. */
#/* Copyright (c) 2005-2013 Rexx Language Association. All rights reserved. */
#/* */
#/* This program and the accompanying materials are made available under */
#/* the terms of the Common Public License v1.0 which accompanies this */
#/* distribution. A copy is also available at the following address: */
#/* http://www.oorexx.org/license.html */
#/* */
#/* Redistribution and use in source and binary forms, with or */
#/* without modification, are permitted provided that the following */
#/* conditions are met: */
#/* */
#/* Redistributions of source code must retain the above copyright */
#/* notice, this list of conditions and the following disclaimer. */
#/* Redistributions in binary form must reproduce the above copyright */
#/* notice, this list of conditions and the following disclaimer in */
#/* the documentation and/or other materials provided with the distribution. */
#/* */
#/* Neither the name of Rexx Language Association nor the names */
#/* of its contributors may be used to endorse or promote products */
#/* derived from this software without specific prior written permission. */
#/* */
#/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
#/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
#/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS */
#/* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
#/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
#/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
#/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
#/* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY */
#/* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
#/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
#/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#/* */
#/*----------------------------------------------------------------------------*/
# NOTE: /OPT:REF in linker flags eliminates unreferenced functions and data.
# Need to use /Gy when compiling to use /OPT:REF.
# NMAKE-compatible MAKE file for ooDialog
# If you are using this make file and your version of rc does not support the
# /nologo flag, comment out this next define:
RC_NOLOGO = /nologo
# If OOD_INDEPENDENT is defined we are operating outside of the interpreter
# build. In that case, OOD_OUTDIR, OOD_OODIALOGSRC, and OOD_INCLUDE_File are
# defined in the parent make file that calls us. When called in the interpreter
# build process, we set those macros using the OR_xx values set by the build
# batch files.
!ifdef OOD_INDEPENDENT
REXXAPI_LIBS = $(REXX_LIBS)
# Generate the version information. Quit if there is an error. We only do this
# when we are building outside of the interpreter build. Within the interpreter
# build, the ooDialog source will be the latest released version of ooDialog.
# That released version will have a static ooDialog.ver.incl file that reflects
# the exact version at the time of release.
!IF [generateVersionFile.bat] != 0
! ERROR Build error: could not gerate version file, ooDialog.ver.incl
!ENDIF
!else
OOD_OUTDIR=$(OR_OUTDIR)
OOD_OODIALOGSRC=$(OR_OODIALOGSRC)
REXXAPI_LIBS = $(OR_OUTDIR)\rexx.lib $(OR_OUTDIR)\rexxapi.lib
OOD_INCLUDE_FILE = "$(OR_LIBSRC)\ORXWIN32.MAK"
!endif
!include ooDialog.ver.incl
!include $(OOD_INCLUDE_FILE)
# The ooDialog specific version definition
copy_year_str = -DOOD_COPY_YEAR=\"$(OOD_COPY_YEAR)\"
ver_str = -DOOD_VER_STR=\""ooDialog $(OOD_MAJOR).$(OOD_MINOR).$(OOD_MOD_LVL).$(OOD_BLD_LVL)"\"
ood_ver_strings = $(copy_year_str) $(ver_str)
ood_ver_def = -DOOD_VER=$(OOD_MAJOR) -DOOD_REL=$(OOD_MINOR) -DOOD_MOD=$(OOD_MOD_LVL) -DOOD_BLD=$(OOD_BLD_LVL) $(ood_ver_strings)
# We use our own rc flags version.
rcflags_oodialog = rc $(RC_NOLOGO) /DWIN32 -dOODIALOG_VER=$(OOD_MAJOR) -dOODIALOG_REL=$(OOD_MINOR) -dOODIALOG_SUB=$(OOD_MOD_LVL) -dOODIALOG_BLD=$(OOD_BLD_LVL) -dOODIALOG_VER_STR=\"$(OOD_VER_STR)\" -dOODIALOG_COPY_YEAR=\"$(OOD_COPY_YEAR)\" -dMANIFEST_FILE=$(M_FILE)
C=cl
OPTIONS= $(cflags_common) $(ood_ver_def) $(cflags_dll) $(OR_ORYXINCL)
all: $(OOD_OUTDIR)\oodialog.dll $(OOD_OUTDIR)\ooDialog.exe $(OOD_OUTDIR)\ooDialog.com
# All Ojbect Files for DLL
SOURCEF= $(OOD_OUTDIR)\APICommon.obj $(OOD_OUTDIR)\oodBarControls.obj $(OOD_OUTDIR)\oodBaseDialog.obj \
$(OOD_OUTDIR)\oodBasicControls.obj $(OOD_OUTDIR)\oodCommon.obj $(OOD_OUTDIR)\oodControl.obj \
$(OOD_OUTDIR)\oodData.obj $(OOD_OUTDIR)\oodDeviceGraphics.obj $(OOD_OUTDIR)\ooDialog.obj \
$(OOD_OUTDIR)\oodKeyboard.obj $(OOD_OUTDIR)\oodListView.obj $(OOD_OUTDIR)\oodMenu.obj \
$(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodMouse.obj $(OOD_OUTDIR)\oodPackageEntry.obj \
$(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodReBar.obj $(OOD_OUTDIR)\oodResizableDialog.obj \
$(OOD_OUTDIR)\oodResources.obj $(OOD_OUTDIR)\oodRoutines.obj $(OOD_OUTDIR)\oodShared.obj \
$(OOD_OUTDIR)\oodShellObjects.obj $(OOD_OUTDIR)\oodStatusBar.obj $(OOD_OUTDIR)\oodToolBar.obj \
$(OOD_OUTDIR)\oodToolTip.obj $(OOD_OUTDIR)\oodTreeView.obj $(OOD_OUTDIR)\oodUser.obj \
$(OOD_OUTDIR)\oodUtilities.obj $(OOD_OUTDIR)\oodViewControls.obj $(OOD_OUTDIR)\oodialog.res
# All Source files that include APICommon.hpp
APICOMMON_SOURCEF = $(OOD_OUTDIR)\APICommon.obj $(OOD_OUTDIR)\oodBarControls.obj $(OOD_OUTDIR)\oodBaseDialog.obj \
$(OOD_OUTDIR)\oodBasicControls.obj $(OOD_OUTDIR)\oodCommon.obj $(OOD_OUTDIR)\oodControl.obj \
$(OOD_OUTDIR)\oodData.obj $(OOD_OUTDIR)\oodDeviceGraphics.obj $(OOD_OUTDIR)\ooDialog.obj \
$(OOD_OUTDIR)\oodKeyboard.obj $(OOD_OUTDIR)\oodListView.obj $(OOD_OUTDIR)\oodMenu.obj \
$(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodMouse.obj $(OOD_OUTDIR)\oodPackageEntry.obj \
$(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodResizableDialog.obj $(OOD_OUTDIR)\oodResources.obj \
$(OOD_OUTDIR)\oodRoutines.obj $(OOD_OUTDIR)\oodShellObjects.obj $(OOD_OUTDIR)\oodStatusBar.obj \
$(OOD_OUTDIR)\oodToolBar.obj $(OOD_OUTDIR)\oodToolTip.obj $(OOD_OUTDIR)\oodTreeView.obj \
$(OOD_OUTDIR)\oodUser.obj $(OOD_OUTDIR)\oodUtilities.obj $(OOD_OUTDIR)\oodViewControls.obj
# All Source files that include oodCommon.hpp
COMMON_SOURCEF = $(OOD_OUTDIR)\oodBarControls.obj $(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\oodBasicControls.obj \
$(OOD_OUTDIR)\oodCommon.obj $(OOD_OUTDIR)\oodData.obj $(OOD_OUTDIR)\oodDeviceGraphics.obj \
$(OOD_OUTDIR)\oodMenu.obj $(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodPropertySheetDialog.obj \
$(OOD_OUTDIR)\oodResizableDialog.obj $(OOD_OUTDIR)\oodRoutines.obj $(OOD_OUTDIR)\oodShellObjects.obj \
$(OOD_OUTDIR)\oodUser.obj $(OOD_OUTDIR)\oodUtilities.obj $(OOD_OUTDIR)\oodViewControls.obj
# All Source files that include oodDeviceGraphics.hpp
OODDEVICEGRAPHICS_SOURCEF = \
$(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\oodControl.cpp $(OOD_OUTDIR)\ooDeviceGraphics.cpp \
$(OOD_OUTDIR)\ooDialog.cpp $(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodPropertySheetDialog.obj \
$(OOD_OUTDIR)\oodResizableDialog.obj $(OOD_OUTDIR)\oodRoutines.obj $(OOD_OUTDIR)\oodUser.obj \
$(OOD_OUTDIR)\oodUtilities.obj
# All Source files that include oodData.hpp
OODDATA_SOURCEF = $(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\ooDialog.cpp $(OOD_OUTDIR)\oodData.obj \
$(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodUser.obj
# All Source files that include oodControl.hpp
OODCONTROL_SOURCEF = $(OOD_OUTDIR)\oodBarControls.obj $(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\oodBasicControls.obj \
$(OOD_OUTDIR)\oodControl.obj $(OOD_OUTDIR)\oodData.obj $(OOD_OUTDIR)\oodDevicGraphics.obj \
$(OOD_OUTDIR)\ooDialog.cpp $(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodResizableDialog.obj \
$(OOD_OUTDIR)\oodUser.obj $(OOD_OUTDIR)\oodViewControls.obj
# All Source files that include oodMessaging.hpp
OODMESSAGING_SOURCEF = \
$(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\oodBasicControls.obj $(OOD_OUTDIR)\oodControl.obj \
$(OOD_OUTDIR)\oodDeviceGraphics.obj $(OOD_OUTDIR)\ooDialog.obj $(OOD_OUTDIR)\oodMenu.obj \
$(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodReBar.obj \
$(OOD_OUTDIR)\oodResizableDialog.obj $(OOD_OUTDIR)\oodUser.obj $(OOD_OUTDIR)\oodViewControls.obj
# All Source files that include oodResizableDialog.hpp
OODRESIZABLEDIALOG_SOURCEF = \
$(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\ooDialog.cpp $(OOD_OUTDIR)\oodResizable.obj \
$(OOD_OUTDIR)\oodUser.obj
# All Source files that include oodResources.hpp
OODRESOURCES_SOURCEF = \
$(OOD_OUTDIR)\oodBasicControls.obj $(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodResources.obj \
$(OOD_OUTDIR)\oodViewControls.obj
# All Source files that include oodShared.hpp
OODSHARED_SOURCEF = $(OOD_OUTDIR)\ApiCommon.obj $(OOD_OUTDIR)\oodBaseDialog.obj $(OOD_OUTDIR)\oodBasicControls.obj \
$(OOD_OUTDIR)\oodControl.obj $(OOD_OUTDIR)\oodCommon.obj $(OOD_OUTDIR)\oodData.obj \
$(OOD_OUTDIR)\ooDialog.cpp $(OOD_OUTDIR)\oodListView.obj $(OOD_OUTDIR)\oodMenu.obj \
$(OOD_OUTDIR)\oodMessaging.obj $(OOD_OUTDIR)\oodMouse.obj $(OOD_OUTDIR)\oodPackageEntry.obj \
$(OOD_OUTDIR)\oodShared.obj $(OOD_OUTDIR)\oodShellObjects.obj $(OOD_OUTDIR)\oodToolTip.obj \
$(OOD_OUTDIR)\oodTreeView.obj $(OOD_OUTDIR)\oodUser.obj $(OOD_OUTDIR)\oodUtilities.obj \
$(OOD_OUTDIR)\oodViewControls.obj $(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodResizableDialog.obj
# All Source files that include oodUser.hpp
OODUSER_SOURCEF = $(OOD_OUTDIR)\oodPropertySheetDialog.obj $(OOD_OUTDIR)\oodUser.obj
.c{$(OOD_OUTDIR)}.obj:
$(C) $(OPTIONS) /DINCL_32 -c $(@B).c /Fo$(OOD_OUTDIR)\$(@B).obj
#
# *** .cpp -> .obj rules
#
{$(OOD_OODIALOGSRC)}.cpp{$(OOD_OUTDIR)}.obj:
@ECHO .
@ECHO Compiling $(@B).cpp
$(OR_CC) $(cflags_common) $(ood_ver_def) $(cflags_dll) /Fo$(OOD_OUTDIR)\$(@B).obj $(OR_ORYXINCL) $(OOD_OODIALOGSRC)\$(@B).cpp
{$(OOD_OODIALOGSRC)}.c{$(OOD_OUTDIR)}.obj:
@ECHO .
@ECHO Compiling $(@B).c
$(OR_CC) $(cflags_common) $(ood_ver_def) $(cflags_dll) /Fo$(OOD_OUTDIR)\$(@B).obj $(OR_ORYXINCL) $(OOD_OODIALOGSRC)\$(@B).c
$(OOD_OUTDIR)\oodialog.dll: $(SOURCEF)
@ECHO .
@ECHO Linking $(@B).dll
$(OR_LINK) \
$(SOURCEF) \
$(lflags_common) $(lflags_dll) \
/DELAYLOAD:shell32.dll \
$(REXXAPI_LIBS) \
WINMM.LIB \
COMDLG32.LIB \
COMCTL32.LIB \
shlwapi.lib \
Oleacc.lib \
UxTheme.lib \
Rpcrt4.lib \
propsys.lib \
delayimp.lib \
-def:$(OOD_OODIALOGSRC)\ooDialog.def \
-out:$(OOD_OUTDIR)\$(@B).dll
#
# *** Inference Rule for oodWinMain.cpp -> OBJ
#
$(OOD_OUTDIR)\oodWinMain.obj : $(OOD_OODIALOGSRC)\oodWinMain.cpp $(OOD_OODIALOGSRC)\oodExecutable.hpp $(OOD_OODIALOGSRC)\oodShared.hpp
@ECHO .
@ECHO Compiling $(@B).cpp
$(OR_CC) $(cflags_common) $(ood_ver_def) $(cflags_dll) /Fo$(@) $(OR_ORYXINCL) $(Tp)$(OOD_OODIALOGSRC)\$(@B).cpp
$(OOD_OUTDIR)\oodMain.obj : $(OOD_OODIALOGSRC)\oodMain.cpp $(OOD_OODIALOGSRC)\oodExecutable.hpp $(OOD_OODIALOGSRC)\oodShared.hpp
@ECHO .
@ECHO Compiling $(@B).cpp
$(OR_CC) $(cflags_common) $(ood_ver_def) $(cflags_dll) /Fo$(@) $(OR_ORYXINCL) $(Tp)$(OOD_OODIALOGSRC)\$(@B).cpp
$(OOD_OUTDIR)\ooDialog.exe : $(OOD_OUTDIR)\oodWinMain.obj $(OOD_OUTDIR)\oodShared.obj $(OOD_OUTDIR)\ooDialogWinMain.res
@ECHO .
@ECHO Linking $(@B).exe
$(OR_LINK) \
$(OOD_OUTDIR)\oodWinMain.obj $(OOD_OUTDIR)\oodShared.obj $(OOD_OUTDIR)\ooDialogWinMain.res \
$(lflags_common) \
/STACK:524288 \
/PDB:ooDialogM.pdb \
$(REXXAPI_LIBS) \
shlwapi.lib \
-out:$(OOD_OUTDIR)\ooDialog.exe
$(OOD_OUTDIR)\ooDialog.com : $(OOD_OUTDIR)\oodMain.obj $(OOD_OUTDIR)\oodShared.obj $(OOD_OUTDIR)\ooDialogMain.res
@ECHO .
@ECHO Linking $(@B).com
$(OR_LINK) \
$(OOD_OUTDIR)\oodMain.obj $(OOD_OUTDIR)\oodShared.obj $(OOD_OUTDIR)\ooDialogMain.res \
$(lflags_common_console) \
/STACK:262144 \
/PDB:ooDialogC.pdb \
$(REXXAPI_LIBS) \
shell32.lib Advapi32.lib\
-out:$(OOD_OUTDIR)\ooDialog.com
# Resource file for oodialog.dll
$(OOD_OUTDIR)\oodialog.res: $(OOD_OODIALOGSRC)\oodialog.rc
@ECHO .
@ECHO ResourceCompiling $(@B).res
$(rc) $(rcflags_oodialog) -dOODIALOG_BIN_NAME=\"oodialog.dll\" /i $(OOD_OODIALOGSRC) /i $(OR_WINKERNELSRC) -r -fo$(OOD_OUTDIR)\$(@B).res $(OOD_OODIALOGSRC)\$(@B).rc
# Resource file for ooDialog.exe
$(OOD_OUTDIR)\ooDialogWinMain.res: $(OOD_OODIALOGSRC)\ooDialogWinMain.rc
@ECHO .
@ECHO ResourceCompiling $(@B).res
$(rc) $(rcflags_oodialog) -dOODIALOG_BIN_NAME=\"ooDialog.exe\" /i $(OOD_OODIALOGSRC) /i $(OR_WINKERNELSRC) -r -fo$(OOD_OUTDIR)\$(@B).res $(OOD_OODIALOGSRC)\$(@B).rc
# Resource file for ooDialog.com
$(OOD_OUTDIR)\ooDialogMain.res: $(OOD_OODIALOGSRC)\ooDialogMain.rc
@ECHO .
@ECHO ResourceCompiling $(@B).res
$(rc) $(rcflags_oodialog) -dOODIALOG_BIN_NAME=\"ooDialog.com\" /i $(OOD_OODIALOGSRC) /i $(OR_WINKERNELSRC) -r -fo$(OOD_OUTDIR)\$(@B).res $(OOD_OODIALOGSRC)\$(@B).rc
# Recompile everything if the make file changes.
$(SOURCEF) : oodialog.mak
# Source .obj files that should be recompiled when header file(s) change.
$(SOURCEF) : ooDialog.hpp
$(COMMON_SOURCEF) : oodCommon.hpp
$(APICOMMON_SOURCEF) : APICommon.hpp
$(OODDEVICEGRAPHICS_SOURCEF) : oodDeviceGraphics.hpp
$(OODDATA_SOURCEF) : oodData.hpp
$(OODCONTROL_SOURCEF) : oodControl.hpp
$(OODMESSAGING_SOURCEF) : oodMessaging.hpp
$(OODRESIZABLEDIALOG_SOURCEF) : oodResizableDialog.hpp
$(OODRESOURCES_SOURCEF) : oodResources.hpp
$(OODSHARED_SOURCEF) : oodShared.hpp
$(OODUSER_SOURCEF) : oodUser.hpp
$(OOD_OUTDIR)\oodMenu.obj : oodMenu.hpp
$(OOD_OUTDIR)\oodShellObjects.obj : oodShellObjects.hpp
$(OOD_OUTDIR)\oodUtilities.obj : oodKeyNames.hpp