# $Id: Makefile,v 1.23 2012/02/02 16:12:58 stefano Exp $

include	../Make.config

lenterprise:
	zcc +enterprise $(CFLAGS) -DENTERPRISE bit_frequency.c
	zcc +enterprise $(CFLAGS) -DENTERPRISE bit_play.c

lz88:
	zcc +z88 $(CFLAGS) -DZ88 bit_frequency.c
	zcc +z88 $(CFLAGS) -DZ88 bit_play.c

lzx:
	zcc +zx	$(CFLAGS) -DSPECTRUM bit_frequency.c
	zcc +zx	$(CFLAGS) -DSPECTRUM bit_play.c

lticalc:
	zcc +ti82 $(CFLAGS) -DTICALC bit_frequency.c
	zcc +ti82 $(CFLAGS) -DTICALC bit_play.c

# I'm not sure on the OZ700 clock.. let's assume it is equal to	the TI calculators one
loz:
	zcc +ozansi $(CFLAGS) -DTICALC bit_frequency.c
	zcc +ozansi $(CFLAGS) -DTICALC bit_play.c

lace:
	zcc +aceansi $(CFLAGS) -DACE bit_frequency.c
	zcc +aceansi $(CFLAGS) -DACE bit_play.c

laquarius:
	zcc +aquarius $(CFLAGS)	-DAQUARIUS bit_frequency.c
	zcc +aquarius $(CFLAGS)	-DAQUARIUS bit_play.c

lmsx:
	zcc +msx $(CFLAGS) -DMSX bit_frequency.c
	zcc +msx $(CFLAGS) -DMSX bit_play.c

ltrs80:
	zcc +trs80 $(CFLAGS) -DTRS80 bit_frequency.c
	zcc +trs80 $(CFLAGS) -DTRS80 bit_play.c

# This piezo speaker has to be accessed	in its own way
lvz:
	zcc +vz	$(CFLAGS) -DVZ bit_frequency.c
	zcc +vz	$(CFLAGS) -DVZ bit_play.c

# As for VZ..
lgal:
	zcc +gal $(CFLAGS) -DGAL bit_frequency.c
	zcc +gal $(CFLAGS) -DGAL bit_play.c

# Access to SID (single bit resolution) with a full word address
lc128:
	zcc +c128ansi $(CFLAGS) -DC128 bit_frequency.c
	zcc +c128ansi $(CFLAGS) -DC128 bit_play.c

# -IXIY trick, interrupts sometimes disabled and few customizations
# dependencies are respected already in the main makefile
lzx81:
	zcc +zx81 $(CFLAGS) -DZX81 bit_frequency.c
	zcc +zx81 $(CFLAGS) -DZX81 bit_play.c

clean:
	$(RM) *.sym *.map zcc_opt.def *.o*
	$(RM) ace/*.o c128/*.o cpc/*.o aquarius/*.o msx/*.o 
	$(RM) sam/*.o spectrum/*.o trs80/*.o vz/*.o z88/*.o
	$(RM) gal/*.o ticalc/*.o enterprise/*.o mtx/*.o
	$(RM) osca/*.o zx81snd/*.o
