view basic/Makefile @ 161:91447c3ccd58

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 12 Feb 2019 09:16:24 +0900
parents 2088fd998865
children
line wrap: on
line source

#
# Makefile examples SBC09/Sim6809
#
# created 1994 by L.C. Benschop
# 2014-06-25 - J.E. Klasek
#
# copyleft (c) 1994-2014 by the sbc09 team, see AUTHORS for more details.
# license: GNU General Public License version 2, see LICENSE for more details.
#

ASM=../a09

PROGS=basic fbasic

OTHER=floatnum.inc makeflot


all: $(ASM) $(PROGS)

$(ASM):
	$(MAKE) -c ../src a09 install

# ------------------------------------
# rules

.SUFFIXES: .asm

.asm:
	$(ASM) -l $@.lst  $<

# ------------------------------------

basic: basic.asm


fbasic: fbasic.asm floatnum.inc
	$(ASM) -l $@.lst fbasic.asm

floatnum.inc: floatnum.src makeflot
	./makeflot < floatnum.src > floatnum.inc

makeflot: makeflot.c


# ------------------------------------

cleanall: clean
	rm -f $(PROGS) $(OTHER)

clean:
	rm -f core *.BAK *.lst $(PROGS)