Debian Codegraph @

libdde-linux26/include/Makefile

raw
1 PKGDIR ?= ..
2 L4DIR ?= $(PKGDIR)
3
4 # Force these include files to appear in a special subfolder of dde/
5 INSTALL_INC_PREFIX =
6
7 include $(L4DIR)/mk/Makeconf
8 -include $(PKGDIR_OBJ)/Makeconf
9
10 include $(L4DIR)/mk/include.mk
11
12 #ifeq ($(CONFIG_DDE26),y)
13 #ifneq ($(BUILD_ARCH),amd64)
14 SUFFIX_amd64 = x86_64
15 SUFFIX_x86 = x86
16 SUFFIX_arm = arm
17
18 # macro to establish a symlink to a dir if not already existing
19 MAKELINK = if [ ! $1 -ef $2 ] ; then ln -sf $3 $2 ; fi
20
21 #BUILD_ARCH = x86
22 #ARCH = $(BUILD_ARCH)
23
24 all::
25 $(VERBOSE)$(call MAKELINK, \
26 $(INSTALLDIR_LOCAL)/$(ARCH)/$(INSTALL_INC_PREFIX)/asm-$(SUFFIX_$(ARCH)),\
27 $(INSTALLDIR_LOCAL)/$(ARCH)/$(INSTALL_INC_PREFIX)/asm, asm-$(SUFFIX_$(ARCH)))
28
29 install::
30 $(VERBOSE)$(call MAKELINK, \
31 $(INSTALLDIR)/$(ARCH)/$(INSTALL_INC_PREFIX)/asm-$(SUFFIX_$(ARCH)),\
32 $(INSTALLDIR)/$(ARCH)/$(INSTALL_INC_PREFIX)/asm, asm-$(SUFFIX_$(ARCH)))
33 #endif
34 #endif