################################################################################
#
#
#

CFLAGS = -O1 -fomit-frame-pointer -Wall

#
################################################################################
#
#
#

OBJ_PLUGIN =	plugin_cpu$(objext) hardware$(objext) memory$(objext) \
				dyn$(objext) dyn_2$(objext) dma$(objext) bios$(objext) \
				rcnt$(objext) irq$(objext) timing$(objext) hlecore$(objext) \
				event$(objext) jmp$(objext) cop0$(objext) libetc_psx$(objext) \
				libetc_hle$(objext) libetc_hle_main$(objext)

################################################################################
#
#
#

all: plugin_cpu$(dllext)

plugin_cpu$(dllext): $(OBJ_PLUGIN)
	$(SHARED) -o $@ $(OBJ_PLUGIN)

%$(objext): %.c
	$(CC) $(CFLAGS) -S -I../include -o $@.S $<
	$(CC) $(CFLAGS) -c -I../include -o $@ $<

%$(objext): %.asm
	$(AS) -o $@ $<

clean:
	rm -f plugin_cpu$(dllext)
	rm -f $(OBJ_PLUGIN)

#
################################################################################