summaryrefslogtreecommitdiff
path: root/project/extras.mk
blob: 6004f95679f22cd0e7e76890bb2c261c598131c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
include $(PROJECT_DIR)/project/codegen.mk

LIBFIRM        = libfirm

CFLAGS_CONFIG += -DHAVE_FIRM_REVISION_H

CFLAGS_DEBUG  += -DDEBUG_libfirm

CFLAGS_COMMON += -I$(SOURCE_DIR)/include/libfirm
CFLAGS_COMMON += -I$(SOURCE_DIR)/include/libfirm/adt

CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/adt
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/ana
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/be
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/common
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/ident
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/ir
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/kaps
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/libcore
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/lower
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/lpp
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/obstack
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/opt
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/stat
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/tr
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/tv

CFLAGS_COMMON += -Ibuild/gen/include/libfirm
CFLAGS_COMMON += -Ibuild/gen/ir/ir

CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/be/arm
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/be/amd64
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/be/ia32
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/be/sparc
CFLAGS_COMMON += -I$(SOURCE_DIR)/ir/be/TEMPLATE

CFLAGS_COMMON += -Ibuild/gen/ir/be/arm
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 $(SOURCE_DIR)/COPYING \
		   $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)/COPYING.LIBFIRM

		cp $(SOURCE_DIR)/README.md \
		   $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)/README

		cp build/gen/include/$(LIBFIRM)/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)

		cp $(API_HEADERS) \
		   $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)

		cp $(ADT_HEADERS) \
		   $(DESTDIR)$(INCLUDEDIR)/$(LIBFIRM)/adt