Text Blame History Raw

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