848217d740d58c0fffdcf205bc4ad3d8d328d6ea
[mes.git] / make / mescc-mes.make
1 CLEAN+=$(OUT)/$(TARGET)
2 ifneq ($(MES_MAX_ARENA),)
3 $(OUT)/$(TARGET): MES_MAX_ARENA-flag:=MES_MAX_ARENA=$(MES_MAX_ARENA)
4 endif
5 $(OUT)/$(TARGET): C_INCLUDE_PATH:=$(INCLUDES)
6 $(OUT)/$(TARGET): $(MAKEFILE_LIST)
7 $(OUT)/$(TARGET): module/mes/read-0.mo
8 $(OUT)/$(TARGET): module/mes/read-0-32.mo
9 $(OUT)/$(TARGET): $(INSTALL_MES_FILES)
10 $(OUT)/$(TARGET): scripts/mes
11 $(OUT)/$(TARGET): $(C_FILES)
12         @echo " mescc.mes       $(notdir $<) -> $(notdir $@)"
13         @rm -f $@
14         $(QUIET)MES_DEBUG=$(MES_DEBUG) $(MES_MAX_ARENA-flag) MES_FLAGS=--load scripts/mescc.mes $(C_INCLUDE_PATH:%=-I %) -o $@ $< || rm -f $@
15         @[ -f $@ ] && chmod +x $@ ||:
16 include make/reset.make