#
# Makefile for GXemul machines
#

CXXFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE) $(DINCLUDE)

OBJS=	machine.o machine_algor.o machine_alpha.o \
	machine_androidarm.o machine_arc.o \
	machine_cats.o machine_cobalt.o machine_dreamcast.o machine_evbmips.o \
	machine_hpcarm.o machine_hpcmips.o machine_hpcsh.o machine_iq80321.o \
	machine_iyonix.o machine_landisk.o machine_luna88k.o machine_macppc.o \
	machine_mvme88k.o machine_mvmeppc.o machine_netwinder.o \
	machine_playstation2.o machine_pmax.o machine_pmppc.o machine_prep.o \
	machine_rpi.o machine_sgi.o machine_test.o machine_vocore.o

all:
	$(MAKE) objs
	$(MAKE) automachine.o

automachine.cc: $(OBJS) automachine_head.cc automachine_middle.cc automachine_tail.cc makeautomachine.sh
	./makeautomachine.sh

objs: $(OBJS)

$(OBJS): Makefile


clean:
	rm -f $(OBJS) *core
	rm -f automachine.cc automachine.o

clean_all: clean
	rm -f Makefile

