1059d84dbSTetsuo Handaobj-y = audit.o common.o condition.o domain.o environ.o file.o gc.o group.o load_policy.o memory.o mount.o network.o realpath.o securityfs_if.o tomoyo.o util.o 2efe836abSTetsuo Handa 3bf7a9ab4SMichal Marektargets += builtin-policy.h 4bf7a9ab4SMichal Marekdefine do_policy 5bf7a9ab4SMichal Marekecho "static char tomoyo_builtin_$(1)[] __initdata ="; \ 6f02dee2dSMichal Marek$(objtree)/scripts/basic/bin2c <$(firstword $(wildcard $(obj)/policy/$(1).conf $(srctree)/$(src)/policy/$(1).conf.default) /dev/null); \ 7bf7a9ab4SMichal Marekecho ";" 8bf7a9ab4SMichal Marekendef 9bf7a9ab4SMichal Marekquiet_cmd_policy = POLICY $@ 10bf7a9ab4SMichal Marek cmd_policy = ($(call do_policy,profile); $(call do_policy,exception_policy); $(call do_policy,domain_policy); $(call do_policy,manager); $(call do_policy,stat)) >$@ 11bf7a9ab4SMichal Marek 12f02dee2dSMichal Marek$(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(src)/policy/*.conf.default) FORCE 13bf7a9ab4SMichal Marek $(call if_changed,policy) 14efe836abSTetsuo Handa 15efe836abSTetsuo Handa$(obj)/common.o: $(obj)/builtin-policy.h 16