diff options
author | midipix <writeonce@midipix.org> | 2016-11-02 23:23:05 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-03 04:41:56 -0400 |
commit | 69cb3db498fb8e2ab087a319310056824381ae32 (patch) | |
tree | 27d628acf547a19e6fa7ae2cd2cffc5bee6867f5 | |
parent | 32f0f81581853f57507fb6b36e0aec8d5e0fb8c5 (diff) | |
download | bfirm-69cb3db498fb8e2ab087a319310056824381ae32.tar.bz2 bfirm-69cb3db498fb8e2ab087a319310056824381ae32.tar.xz |
build system: added custom header installation definitions.
-rw-r--r-- | config.project | 2 | ||||
-rw-r--r-- | project/extras.mk | 15 |
2 files changed, 16 insertions, 1 deletions
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 |