gbdk-releases/gbdk-lib/libc/Makefile.rules

24 lines
370 B
Makefile
Raw Permalink Normal View History

2015-01-10 16:25:09 +01:00
# Maccer rule
%.s: %.ms
maccer -o $@ $<
ifeq ($(MODEL),small)
NEAR_CALLS = 1
else
NEAR_CALLS = 0
endif
2015-01-10 16:25:09 +01:00
include $(TOPDIR)/libc/rules-$(ASM).mk
2015-01-10 16:25:08 +01:00
clean:
rm -f $(OBJ) $(CLEANSPEC)
2015-01-10 16:25:09 +01:00
set-model:
if [ -e global.s ]; then \
2015-01-10 16:25:09 +01:00
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)