summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-02 23:23:05 -0400
committermidipix <writeonce@midipix.org>2016-11-03 04:41:56 -0400
commit69cb3db498fb8e2ab087a319310056824381ae32 (patch)
tree27d628acf547a19e6fa7ae2cd2cffc5bee6867f5 /project
parent32f0f81581853f57507fb6b36e0aec8d5e0fb8c5 (diff)
downloadbfirm-69cb3db498fb8e2ab087a319310056824381ae32.tar.bz2
bfirm-69cb3db498fb8e2ab087a319310056824381ae32.tar.xz
build system: added custom header installation definitions.
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