SHELL		= /bin/sh
VPATH		= @srcdir@

subdirs		= @subdirs@
prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
sbindir		= @sbindir@
infodir		= @infodir@
libdir		= @libdir@
mandir		= @mandir@

date		:= $(shell date +%D)

HOMEDIR		= @homedir@
INSTALL		= @INSTALL@
VERSION		= $(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)$(EXTRAVERSION)
KERNELDIR	= @KERNELDIR@
EVMSLIB_DIR	= @EVMSLIB_DIR@
EVMSHEADERS_DIR = @EVMSHEADERS_DIR@
PLUGINS_DIR	= @EVMSLIB_DIR@/evms

CPP		= @CPP@
CC	  	= @CC@
CFLAGS		= @CFLAGS@
LIBDIRS		= -L$(HOMEDIR)/Engine -L$(HOMEDIR)/dlist
INCLUDES	= -I$(HOMEDIR)/include -I$(HOMEDIR)/dlist -I$(KERNELDIR)/include -I/usr/local/include
DEFINES		= @evmsdefs@ -DMAJOR_VERSION=$(MAJOR_VERSION) -DMINOR_VERSION=$(MINOR_VERSION) -DPATCH_LEVEL=$(PATCH_LEVEL) -DVERSION=\"$(VERSION)\" -DDATE=\"$(date)\"

GTK_LIBS	= @gtklibs@
GTK_CFLAGS	= @gtkcflags@
ENGINE_DEBUG	= @debug@
EFENCE		= @efence@

EVMSCFLAGS	= -Wall -fPIC $(CFLAGS) $(ENGINE_DEBUG) $(INCLUDES) $(DEFINES)
SO_CFLAGS       = -shared $(EFENCE) -lc -ldl -L$(HOMEDIR)/dlist -ldlist

.c.o:
	$(CC) $(EVMSCFLAGS) -c -o $*.o $<
