os2.mk (b63233d8) os2.mk (e6091915)
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

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

196 -MF $(4) \
197 -I$(dir $(3)) \
198 $(INCLUDE_STL) $(INCLUDE))
199endef
200
201
202# PrecompiledHeader class
203
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

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

196 -MF $(4) \
197 -I$(dir $(3)) \
198 $(INCLUDE_STL) $(INCLUDE))
199endef
200
201
202# PrecompiledHeader class
203
204gb_PrecompiledHeader_get_enableflags = -Yu$(1).hxx \
204gb_PrecompiledHeader_get_enableflags = -DPRECOMPILED_HEADERS -Yu$(1).hxx \
205 -Fp$(call gb_PrecompiledHeader_get_target,$(1))
206
207ifeq ($(gb_FULLDEPS),$(true))
208define gb_PrecompiledHeader__command_deponcompile
209$(call gb_Helper_abbreviate_dirs_native,\
210 $(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \
211 $(4) $(5) \
212 -I$(dir $(3)) \

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

231$(call gb_Helper_abbreviate_dirs_native,\
232 mkdir -p $(dir $(1)) $(dir $(call gb_PrecompiledHeader_get_dep_target,$(2))) && \
233 unset INCLUDE && \
234 $(gb_CXX) \
235 $(4) $(5) -Fd$(PDBFILE) \
236 -I$(dir $(3)) \
237 $(6) \
238 -c $(3) \
205 -Fp$(call gb_PrecompiledHeader_get_target,$(1))
206
207ifeq ($(gb_FULLDEPS),$(true))
208define gb_PrecompiledHeader__command_deponcompile
209$(call gb_Helper_abbreviate_dirs_native,\
210 $(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \
211 $(4) $(5) \
212 -I$(dir $(3)) \

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

231$(call gb_Helper_abbreviate_dirs_native,\
232 mkdir -p $(dir $(1)) $(dir $(call gb_PrecompiledHeader_get_dep_target,$(2))) && \
233 unset INCLUDE && \
234 $(gb_CXX) \
235 $(4) $(5) -Fd$(PDBFILE) \
236 -I$(dir $(3)) \
237 $(6) \
238 -c $(3) \
239 -DPRECOMPILED_HEADERS \
239 -Yc$(notdir $(patsubst %.cxx,%.hxx,$(3))) -Fp$(1) -Fo$(1).obj)
240$(call gb_PrecompiledHeader__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
241endef
242
243# NoexPrecompiledHeader class
244
245gb_NoexPrecompiledHeader_get_enableflags = -Yu$(1).hxx \
246 -Fp$(call gb_NoexPrecompiledHeader_get_target,$(1))

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

272$(call gb_Helper_abbreviate_dirs_native,\
273 mkdir -p $(dir $(1)) $(dir $(call gb_NoexPrecompiledHeader_get_dep_target,$(2))) && \
274 unset INCLUDE && \
275 $(gb_CXX) \
276 $(4) $(5) -Fd$(PDBFILE) \
277 -I$(dir $(3)) \
278 $(6) \
279 -c $(3) \
240 -Yc$(notdir $(patsubst %.cxx,%.hxx,$(3))) -Fp$(1) -Fo$(1).obj)
241$(call gb_PrecompiledHeader__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
242endef
243
244# NoexPrecompiledHeader class
245
246gb_NoexPrecompiledHeader_get_enableflags = -Yu$(1).hxx \
247 -Fp$(call gb_NoexPrecompiledHeader_get_target,$(1))

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

273$(call gb_Helper_abbreviate_dirs_native,\
274 mkdir -p $(dir $(1)) $(dir $(call gb_NoexPrecompiledHeader_get_dep_target,$(2))) && \
275 unset INCLUDE && \
276 $(gb_CXX) \
277 $(4) $(5) -Fd$(PDBFILE) \
278 -I$(dir $(3)) \
279 $(6) \
280 -c $(3) \
281 -DPRECOMPILED_HEADERS \
280 -Yc$(notdir $(patsubst %.cxx,%.hxx,$(3))) -Fp$(1) -Fo$(1).obj)
281$(call gb_NoexPrecompiledHeader__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
282endef
283
284# LinkTarget class
285
286gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR)
287gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)

--- 365 unchanged lines hidden ---
282 -Yc$(notdir $(patsubst %.cxx,%.hxx,$(3))) -Fp$(1) -Fo$(1).obj)
283$(call gb_NoexPrecompiledHeader__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
284endef
285
286# LinkTarget class
287
288gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR)
289gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)

--- 365 unchanged lines hidden ---