summaryrefslogtreecommitdiff
path: root/project/extras.mk
diff options
context:
space:
mode:
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk
new file mode 100644
index 0000000..c0415f8
--- /dev/null
+++ b/project/extras.mk
@@ -0,0 +1,34 @@
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser/adt
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser/ast
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser/driver
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser/firm
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser/parser
+CFLAGS_PATH += -I$(PROJECT_DIR)/include/cparser/wrappergen
+
+install-headers-custom:
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/adt
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/ast
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/driver
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/firm
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/parser
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/wrappergen
+
+ cp $(PROJECT_DIR)/include/cparser/adt/*.h \
+ $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/adt
+
+ cp $(PROJECT_DIR)/include/cparser/ast/*.h \
+ $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/ast
+
+ cp $(PROJECT_DIR)/include/cparser/driver/*.h \
+ $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/driver
+
+ cp $(PROJECT_DIR)/include/cparser/firm/*.h \
+ $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/firm
+
+ cp $(PROJECT_DIR)/include/cparser/parser/*.h \
+ $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/parser
+
+ cp $(PROJECT_DIR)/include/cparser/wrappergen/*.h \
+ $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/wrappergen