LinkTarget.mk (69307761) | LinkTarget.mk (7de6b1b1) |
---|---|
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 --- 584 unchanged lines hidden (view full) --- 593 touch $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag)) 594 595$(call gb_LinkTarget_get_clean_target,$(1)) : 596 rm -rf $(call gb_UnoPrivateApiTarget_get_target,$(1)) 597 598 599endef 600 | 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 --- 584 unchanged lines hidden (view full) --- 593 touch $(call gb_UnoPrivateApiTarget_get_target,$(1)/idl.cppumaker.flag)) 594 595$(call gb_LinkTarget_get_clean_target,$(1)) : 596 rm -rf $(call gb_UnoPrivateApiTarget_get_target,$(1)) 597 598 599endef 600 |
601gb_BisonTarget_get_source = $(SRCDIR)/$(1).y 602 603# Bison-generated .cxx files are always #include'd into in-module files, 604# and aren't compiled, so they effectively act as generated headers, not generated .cxx. 605 606define gb_LinkTarget_add_bison_file 607 608$(call gb_LinkTarget_get_external_headers_target,$(1)) :| \ 609 $(call gb_BisonTarget_get_target,$(1),$(2)) 610 611$(call gb_LinkTarget_get_headers_target,$(1)) \ 612$(call gb_LinkTarget_get_target,$(1)) : INCLUDE += -I$(dir $(call gb_BisonTarget_get_target,$(1),$(2))) 613ifeq ($(gb_FULLDEPS),$(true)) 614$(call gb_LinkTarget_get_dep_target,$(1)) : INCLUDE += -I$(dir $(call gb_BisonTarget_get_target,$(1),$(2))) 615endif 616 617$(call gb_BisonTarget_get_target,$(1),$(2)) : $(call gb_BisonTarget_get_source,$(2)) 618 mkdir -p $(dir $(call gb_BisonTarget_get_target,$(1),$(2))) && \ 619 bison -d -o $(call gb_BisonTarget_get_target,$(1),$(2)) $(call gb_BisonTarget_get_source,$(2)) 620 621endef 622 623define gb_LinkTarget_add_bison_files 624$(foreach bisonfile,$(2),$(call gb_LinkTarget_add_bison_file,$(1),$(bisonfile))) 625 626endef 627 |
|
601define gb_LinkTarget_add_libs 602$(call gb_LinkTarget_get_target,$(1)) : LIBS += $(2) 603endef 604 605define gb_LinkTarget_add_linked_libs 606ifneq (,$$(filter-out $(gb_Library_KNOWNLIBS),$(2))) 607$$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL)) 608$$(eval $$(call gb_Output_error,Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk)) --- 235 unchanged lines hidden --- | 628define gb_LinkTarget_add_libs 629$(call gb_LinkTarget_get_target,$(1)) : LIBS += $(2) 630endef 631 632define gb_LinkTarget_add_linked_libs 633ifneq (,$$(filter-out $(gb_Library_KNOWNLIBS),$(2))) 634$$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL)) 635$$(eval $$(call gb_Output_error,Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk)) --- 235 unchanged lines hidden --- |