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

CC = gcc
SHARED = gcc

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

DEFS = -D$(target)

INCLUDE = -I../include

CFLAGS = $(DEFS) $(INCLUDE) -O1 -fomit-frame-pointer -Wall

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

OBJ_PLUGIN = plugin_gpu_psemu.o

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

all: plugin_gpu_psemu.dll

plugin_gpu_psemu.dll: $(OBJ_PLUGIN)
	dllwrap --def ../def/plugin.Windows.def -o $@ $(OBJ_PLUGIN)

%.o: %.c
	gcc $(CFLAGS) -S -o $@.S $<
	gcc $(CFLAGS) -c -o $@ $<

clean:
	rm -f plugin_gpu_psemu.dll
	rm -f $(OBJ_PLUGIN)

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