os2.mk (10b7a200) os2.mk (cde270a3)
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

--- 303 unchanged lines hidden (view full) ---

312 rm -f $(1) && \
313 $(if $(DLLTARGET), echo LIBRARY $(DLLBASE) INITINSTANCE TERMINSTANCE > $(DLLDEF) &&) \
314 $(if $(DLLTARGET), echo DATA MULTIPLE >> $(DLLDEF) &&) \
315 RESPONSEFILE=$(call var2filecr,$(shell $(gb_MKTEMP)),1, \
316 $(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
317 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
318 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
319 $(PCHOBJS))) && \
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

--- 303 unchanged lines hidden (view full) ---

312 rm -f $(1) && \
313 $(if $(DLLTARGET), echo LIBRARY $(DLLBASE) INITINSTANCE TERMINSTANCE > $(DLLDEF) &&) \
314 $(if $(DLLTARGET), echo DATA MULTIPLE >> $(DLLDEF) &&) \
315 RESPONSEFILE=$(call var2filecr,$(shell $(gb_MKTEMP)),1, \
316 $(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
317 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
318 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
319 $(PCHOBJS))) && \
320 $(if $(DLLTARGET), echo EXPORTS >> $(DLLDEF) &&) \
321 $(if $(DLLTARGET), emxexp @$${RESPONSEFILE} | fix_exp_file | sort | uniq | fix_def_ord >> $(DLLDEF) &&) \
320 $(gb_LINK) \
321 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
322 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \
323 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
324 $(LDFLAGS) \
325 @$${RESPONSEFILE} \
326 $(if $(DLLTARGET), $(DLLDEF)) \
327 $(NATIVERES) \
328 $(patsubst %.lib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
329 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
330 $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
331 $(if $(DLLTARGET),-o $(DLLTARGET), -o $(1) ); \
332 RC=$$?; rm $${RESPONSEFILE} \
322 $(gb_LINK) \
323 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
324 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \
325 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
326 $(LDFLAGS) \
327 @$${RESPONSEFILE} \
328 $(if $(DLLTARGET), $(DLLDEF)) \
329 $(NATIVERES) \
330 $(patsubst %.lib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
331 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
332 $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
333 $(if $(DLLTARGET),-o $(DLLTARGET), -o $(1) ); \
334 RC=$$?; rm $${RESPONSEFILE} \
333 $(if $(DLLTARGET),; emximp -p2048 -o $(1) $(DLLTARGET) ) \
335 $(if $(DLLTARGET),; emximp -p2048 -o $(1) $(DLLDEF) ) \
334 $(if $(DLLTARGET),; if [ ! -f $(DLLTARGET) ]; then rm -f $(1) && false; fi) ; exit $$RC)
335endef
336
337
338define gb_LinkTarget__command_staticlinklibrary
339$(call gb_Helper_abbreviate_dirs_native,\
340 mkdir -p $(dir $(1)) && \
341 RESPONSEFILE=`$(gb_MKTEMP)` && \

--- 320 unchanged lines hidden ---
336 $(if $(DLLTARGET),; if [ ! -f $(DLLTARGET) ]; then rm -f $(1) && false; fi) ; exit $$RC)
337endef
338
339
340define gb_LinkTarget__command_staticlinklibrary
341$(call gb_Helper_abbreviate_dirs_native,\
342 mkdir -p $(dir $(1)) && \
343 RESPONSEFILE=`$(gb_MKTEMP)` && \

--- 320 unchanged lines hidden ---