ifdef MINGDIR
	CC = g++
	FLAGS = -shared -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -s -W -Wall -I../../../src -DNCDS_DUMB
	LIBS = -laldmb -ldumb -lalleg
	EXT = dll
	DEL = del
else
	CC = g++
	FLAGS = -shared -s -fPIC -W -Wall -I../../../src
	LIBS = `allegro-config --libs`
	EXT = so
	DEL = rm
endif

src = antivirus.cpp pill.c board.c game.c control.c ncds.c animate.c

antivirus: $(src)
	$(CC) -o ../antivirus.$(EXT) $(src) $(FLAGS) $(LIBS)
