VPATH = . ..\..\common\scsi ..\..\common\cdrom ..\..\common\sound ..\..\common\eeprom
CPP  = g++.exe
CC   = gcc.exe
OBJ  = oak_scsi.o ncr5380.o cdrom-windows-ioctl.o hdd_file.o scsi.o scsi_config.o scsi_cd.o scsi_hd.o sound_out_sdl2.o 93c06.o
LIBS = -lSDL2
CFLAGS = $(INCS) -DBUILDING_DLL=1 -I..\..\..\src -I..\..\common\scsi -I..\..\common\cdrom -I..\..\common\sound -I..\..\common\eeprom -g3

all: oak_scsi.dll

clean:
	rm *.o
	rm *.dll

DEFFILE=liboak_scsi.def
STATICLIB=liboak_scsi.a

oak_scsi.dll: $(OBJ)
	$(CC) -o oak_scsi.dll -s -shared $(OBJ) $(LIBS) -Wl,--subsystem,windows

%.o: %.c
	$(CC) $(CFLAGS) -c $<
