configs: atmel: at91sam9260eknf: update defconfig
[buildroot-gz.git] / package / makedevs / makedevs.mk
blob95933c4f4e540cb7a44e59cca0ab7159dcb5eda8
1 ################################################################################
3 # makedevs
5 ################################################################################
7 MAKEDEVS_LICENSE = GPLv2
9 HOST_MAKEDEVS_CFLAGS = $(HOST_CFLAGS)
10 HOST_MAKEDEVS_LDFLAGS = $(HOST_LDFLAGS)
12 ifeq ($(BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES),y)
13 HOST_MAKEDEVS_DEPENDENCIES += host-libcap
14 HOST_MAKEDEVS_CFLAGS += -DEXTENDED_ATTRIBUTES
15 HOST_MAKEDEVS_LDFLAGS += -lcap
16 endif
18 define MAKEDEVS_BUILD_CMDS
19 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
20 package/makedevs/makedevs.c -o $(@D)/makedevs
21 endef
23 define MAKEDEVS_INSTALL_TARGET_CMDS
24 $(INSTALL) -D -m 755 $(@D)/makedevs $(TARGET_DIR)/usr/sbin/makedevs
25 endef
27 define HOST_MAKEDEVS_BUILD_CMDS
28 $(HOSTCC) $(HOST_MAKEDEVS_CFLAGS) package/makedevs/makedevs.c \
29 -o $(@D)/makedevs $(HOST_MAKEDEVS_LDFLAGS)
30 endef
32 define HOST_MAKEDEVS_INSTALL_CMDS
33 $(INSTALL) -D -m 755 $(@D)/makedevs $(HOST_DIR)/usr/bin/makedevs
34 endef
36 $(eval $(generic-package))
37 $(eval $(host-generic-package))