os2.mk (685bfa88) | os2.mk (4d2a3edf) |
---|---|
1#************************************************************************* 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************************* 21 | 1#************************************************************************* 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************************* 21 |
22include $(GBUILDDIR)/gmsl 23 | |
24GUI := OS2 25COM := GCC 26 27# set tmpdir to some mixed case path, suitable for native tools 28#gb_TMPDIR:=$(if $(TMPDIR),$(shell cygpath -m $(TMPDIR)),$(shell cygpath -m /tmp)) 29#gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX 30gb_MKTEMP := mktemp -t gbuild.XXXXXX 31 --- 67 unchanged lines hidden (view full) --- 99 -Wshadow \ 100 -fmessage-length=0 \ 101 -fno-common \ 102 -fno-strict-aliasing \ 103 -fno-use-cxa-atexit \ 104 -I$(JAVA_HOME)/include \ 105 -I$(JAVA_HOME)/include/os2 106 | 22GUI := OS2 23COM := GCC 24 25# set tmpdir to some mixed case path, suitable for native tools 26#gb_TMPDIR:=$(if $(TMPDIR),$(shell cygpath -m $(TMPDIR)),$(shell cygpath -m /tmp)) 27#gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX 28gb_MKTEMP := mktemp -t gbuild.XXXXXX 29 --- 67 unchanged lines hidden (view full) --- 97 -Wshadow \ 98 -fmessage-length=0 \ 99 -fno-common \ 100 -fno-strict-aliasing \ 101 -fno-use-cxa-atexit \ 102 -I$(JAVA_HOME)/include \ 103 -I$(JAVA_HOME)/include/os2 104 |
107# -fvisibility-inlines-hidden \ 108# -fvisibility=hidden \ 109# 110 | |
111gb_STDLIBS = \ | 105gb_STDLIBS = \ |
112 icule \ | |
113 z \ 114 stdc++ \ 115 116ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) 117gb_CFLAGS_WERROR := -Werror 118gb_CXXFLAGS_WERROR := -Werror 119endif 120 --- 179 unchanged lines hidden (view full) --- 300gb_LinkTarget_INCLUDE :=\ 301 $(filter-out %/stl, $(subst -I. , ,$(SOLARINC))) \ 302 $(foreach inc,$(subst ;, ,$(JDKINC)),-I$(inc)) \ 303 304gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) 305 306gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb 307 | 106 z \ 107 stdc++ \ 108 109ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) 110gb_CFLAGS_WERROR := -Werror 111gb_CXXFLAGS_WERROR := -Werror 112endif 113 --- 179 unchanged lines hidden (view full) --- 293gb_LinkTarget_INCLUDE :=\ 294 $(filter-out %/stl, $(subst -I. , ,$(SOLARINC))) \ 295 $(foreach inc,$(subst ;, ,$(JDKINC)),-I$(inc)) \ 296 297gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) 298 299gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb 300 |
308DLLBASE8 = $(call substr,$(notdir $(DLLTARGET:.dll=)),1,8) 309DLLTARGET8 = $(dir $(DLLTARGET))$(DLLBASE8)$(gb_Library_DLLEXT) 310DLLDEF8 = $(dir $(DLLTARGET))$(DLLBASE8).def | 301DLLBASE = $(notdir $(DLLTARGET:.dll=)) 302DLLDEF = $(dir $(DLLTARGET))$(DLLBASE).def |
311 312define gb_LinkTarget__command_dynamiclinkexecutable 313$(call gb_Output_announce,$(2),$(true),LNK,4) 314$(call gb_Helper_abbreviate_dirs_native,\ 315 mkdir -p $(dir $(1)) && \ 316 rm -f $(1) && \ | 303 304define gb_LinkTarget__command_dynamiclinkexecutable 305$(call gb_Output_announce,$(2),$(true),LNK,4) 306$(call gb_Helper_abbreviate_dirs_native,\ 307 mkdir -p $(dir $(1)) && \ 308 rm -f $(1) && \ |
317 $(if $(DLLTARGET), echo LIBRARY $(DLLBASE8) INITINSTANCE TERMINSTANCE > $(DLLDEF8) &&) \ 318 $(if $(DLLTARGET), echo DATA MULTIPLE >> $(DLLDEF8) &&) \ | 309 $(if $(DLLTARGET), echo LIBRARY $(DLLBASE) INITINSTANCE TERMINSTANCE > $(DLLDEF) &&) \ 310 $(if $(DLLTARGET), echo DATA MULTIPLE >> $(DLLDEF) &&) \ |
319 RESPONSEFILE=$(call var2filecr,$(shell $(gb_MKTEMP)),1, \ 320 $(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ 321 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ 322 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 323 $(PCHOBJS))) && \ 324 $(gb_LINK) \ 325 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 326 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \ 327 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \ 328 $(LDFLAGS) \ 329 @$${RESPONSEFILE} \ | 311 RESPONSEFILE=$(call var2filecr,$(shell $(gb_MKTEMP)),1, \ 312 $(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ 313 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ 314 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 315 $(PCHOBJS))) && \ 316 $(gb_LINK) \ 317 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 318 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \ 319 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \ 320 $(LDFLAGS) \ 321 @$${RESPONSEFILE} \ |
330 $(if $(DLLTARGET), $(DLLDEF8)) \ | 322 $(if $(DLLTARGET), $(DLLDEF)) \ |
331 $(NATIVERES) \ 332 $(patsubst %.lib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \ 333 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \ 334 $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \ | 323 $(NATIVERES) \ 324 $(patsubst %.lib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \ 325 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \ 326 $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \ |
335 $(if $(DLLTARGET),-o $(DLLTARGET8), -o $(1) ); \ | 327 $(if $(DLLTARGET),-o $(DLLTARGET), -o $(1) ); \ |
336 RC=$$?; rm $${RESPONSEFILE} \ | 328 RC=$$?; rm $${RESPONSEFILE} \ |
337 $(if $(DLLTARGET),; emximp -p2048 -o $(1) $(DLLTARGET8) ) \ 338 $(if $(DLLTARGET),; cp -p $(DLLTARGET8) $(DLLTARGET)) \ | 329 $(if $(DLLTARGET),; emximp -p2048 -o $(1) $(DLLTARGET) ) \ |
339 $(if $(DLLTARGET),; if [ ! -f $(DLLTARGET) ]; then rm -f $(1) && false; fi) ; exit $$RC) 340endef 341 342 343define gb_LinkTarget__command_staticlinklibrary 344$(call gb_Helper_abbreviate_dirs_native,\ 345 mkdir -p $(dir $(1)) && \ 346 RESPONSEFILE=`$(gb_MKTEMP)` && \ --- 18 unchanged lines hidden (view full) --- 365gb_Library_DEFS := -D_DLL 366gb_Library_TARGETTYPEFLAGS := -Zdll 367gb_Library_get_rpath := 368 369gb_Library_SYSPRE := 370gb_Library_PLAINEXT := .lib 371 372gb_Library_PLAINLIBS_NONE += \ | 330 $(if $(DLLTARGET),; if [ ! -f $(DLLTARGET) ]; then rm -f $(1) && false; fi) ; exit $$RC) 331endef 332 333 334define gb_LinkTarget__command_staticlinklibrary 335$(call gb_Helper_abbreviate_dirs_native,\ 336 mkdir -p $(dir $(1)) && \ 337 RESPONSEFILE=`$(gb_MKTEMP)` && \ --- 18 unchanged lines hidden (view full) --- 356gb_Library_DEFS := -D_DLL 357gb_Library_TARGETTYPEFLAGS := -Zdll 358gb_Library_get_rpath := 359 360gb_Library_SYSPRE := 361gb_Library_PLAINEXT := .lib 362 363gb_Library_PLAINLIBS_NONE += \ |
373 $(gb_STDLIBS) \ 374 icule \ | 364 stdc++ \ |
375 ft2lib \ 376 dl \ 377 freetype \ 378 jpeg \ 379 m \ 380 z \ 381 pthread \ 382 cppunit --- 6 unchanged lines hidden (view full) --- 389 $(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \ 390 $(foreach lib,$(gb_Library_RTVERLIBS),$(lib):OOO) \ 391 $(foreach lib,$(gb_Library_STLLIBS),$(lib):OOO) \ 392 $(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):OOO) \ 393 $(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \ 394 $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):OOO) \ 395 396gb_Library_FILENAMES :=\ | 365 ft2lib \ 366 dl \ 367 freetype \ 368 jpeg \ 369 m \ 370 z \ 371 pthread \ 372 cppunit --- 6 unchanged lines hidden (view full) --- 379 $(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \ 380 $(foreach lib,$(gb_Library_RTVERLIBS),$(lib):OOO) \ 381 $(foreach lib,$(gb_Library_STLLIBS),$(lib):OOO) \ 382 $(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):OOO) \ 383 $(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \ 384 $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):OOO) \ 385 386gb_Library_FILENAMES :=\ |
397 $(foreach lib,$(gb_Library_TARGETS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \ | 387 $(foreach lib,$(gb_Library_TARGETS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) |
398 | 388 |
389 |
|
399gb_Library_DLLEXT := .dll 400gb_Library_MAJORVER := 401gb_Library_RTEXT := $(gb_Library_DLLEXT) 402ifeq ($(gb_PRODUCT),$(true)) 403gb_Library_STLEXT := stdc++$(gb_Library_DLLEXT) 404else 405gb_Library_STLEXT := stlp45_stldebug$(gb_Library_DLLEXT) 406endif --- 55 unchanged lines hidden (view full) --- 462 -DADDITIONAL_VERINFO3 \ 463) 464$(call gb_Library_add_nativeres,$(1),$(2)) 465$(call gb_Library_get_clean_target,$(1)) : $(call gb_WinResTarget_get_clean_target,$(1)/$(2)) 466 467endef 468 469define gb_Library_add_nativeres | 390gb_Library_DLLEXT := .dll 391gb_Library_MAJORVER := 392gb_Library_RTEXT := $(gb_Library_DLLEXT) 393ifeq ($(gb_PRODUCT),$(true)) 394gb_Library_STLEXT := stdc++$(gb_Library_DLLEXT) 395else 396gb_Library_STLEXT := stlp45_stldebug$(gb_Library_DLLEXT) 397endif --- 55 unchanged lines hidden (view full) --- 453 -DADDITIONAL_VERINFO3 \ 454) 455$(call gb_Library_add_nativeres,$(1),$(2)) 456$(call gb_Library_get_clean_target,$(1)) : $(call gb_WinResTarget_get_clean_target,$(1)/$(2)) 457 458endef 459 460define gb_Library_add_nativeres |
470$(info info $(1)/$(2)) | |
471$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,$(1))) : $(call gb_WinResTarget_get_target,$(1)/$(2)) 472$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,$(1))) : NATIVERES += $(call gb_WinResTarget_get_target,$(1)/$(2)) | 461$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,$(1))) : $(call gb_WinResTarget_get_target,$(1)/$(2)) 462$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,$(1))) : NATIVERES += $(call gb_WinResTarget_get_target,$(1)/$(2)) |
473$(info NATIVERES $(NATIVERES)) | |
474 475endef 476 477define gb_Library_get_dllname 478$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_DLLFILENAMES))) 479endef 480 481 --- 187 unchanged lines hidden --- | 463 464endef 465 466define gb_Library_get_dllname 467$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_DLLFILENAMES))) 468endef 469 470 --- 187 unchanged lines hidden --- |