gbdk-releases/gbdk-lib/libc/Makefile.rules
2015-01-10 16:25:09 +01:00

24 lines
370 B
Makefile

# Maccer rule
%.s: %.ms
maccer -o $@ $<
ifeq ($(MODEL),small)
NEAR_CALLS = 1
else
NEAR_CALLS = 0
endif
include $(TOPDIR)/libc/rules-$(ASM).mk
clean:
rm -f $(OBJ) $(CLEANSPEC)
set-model:
if [ -e global.s ]; then \
sed -e "s/.NEAR_CALLS\W=\W[0-9]\+/.NEAR_CALLS = $(NEAR_CALLS)/" global.s > tmp1.txt ;\
mv tmp1.txt global.s; \
fi
build-dir:
mkdir -p $(BUILD)