# Booster lite (win32 only)

COMPILER = mingw32-gcc
LINKER   = dllwrap
DELCMD   = del

OFLAGS = -march=i586 -mcpu=i586 -O2
CFLAGS = $(OFLAGS) -Wall -g0
LFLAGS = -mdll -lws2_32 -k -s

INCLUDEDIRS = -I. -Imetamod -Iengine -Icommon -Idlls

OBJ =	booster_lite.o \
	meta_api.o \
	plugin.o \
        version.o

booster_lite_mm_i586.dll : $(OBJ) 
	$(LINKER) -o $@ $(OBJ) $(LFLAGS)

clean:
	$(DELCMD) $(OBJ) booster_lite_mm.dll *.depend

version.o: version.rc vers_plugin.h
	windres -o $@ -i $<

-include $(OBJ:.o=.depend)

%.o: %.cpp
	$(COMPILER) $(CFLAGS) $(INCLUDEDIRS) -o $@ -c $<
	$(COMPILER) -MM $(INCLUDEDIRS) $< > $*.depend

