summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.project2
-rw-r--r--project/extras.mk15
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