From 69cb3db498fb8e2ab087a319310056824381ae32 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 2 Nov 2016 23:23:05 -0400 Subject: build system: added custom header installation definitions. --- config.project | 2 +- project/extras.mk | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/config.project b/config.project index c4cf31f..a55cd44 100644 --- a/config.project +++ b/config.project @@ -1,7 +1,7 @@ # project mb_package=firm mb_require_out_of_tree=no -mb_custom_install_headers=no +mb_custom_install_headers=yes mb_avoid_version=no diff --git a/project/extras.mk b/project/extras.mk index 77ba7b9..c98407f 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,5 +1,7 @@ include $(PROJECT_DIR)/project/codegen.mk +LIBFIRM = libfirm + CFLAGS_DEBUG += -DDEBUG_libfirm CFLAGS_COMMON += -I$(SOURCE_DIR)/include/libfirm @@ -35,3 +37,16 @@ CFLAGS_COMMON += -Ibuild/gen/ir/be/amd64 CFLAGS_COMMON += -Ibuild/gen/ir/be/ia32 CFLAGS_COMMON += -Ibuild/gen/ir/be/sparc CFLAGS_COMMON += -Ibuild/gen/ir/be/TEMPLATE + +install-headers-custom: + mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM) + mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)/adt + + cp build/gen/include/$(LIBFIRM)/*.h \ + $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM) + + cp $(API_HEADERS) \ + $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM) + + cp $(ADT_HEADERS) \ + $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)/adt -- cgit v1.2.3