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. --- project/extras.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'project') 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