summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/extras.mk15
1 files changed, 15 insertions, 0 deletions
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