# Dungeon of Darkness makefile

CC = gcc
CFLAGS = -Wall -O2 -fomit-frame-pointer -ffast-math -funroll-loops -s -mcpu=pentium
CFLAGS = -Wall -O -g -Wno-deprecated-declarations -Wno-unused
INCLUDE = -I include
BASENAME = dark
DIRNAME = Dark

ifdef DEBUGMODE
   CFLAGS = -W -Wall -O -g -DDEBUGMODE
endif

ifdef DONT_USE_EXTENSIONS
   CFLAGS += -DDONT_USE_CD
endif

ifdef PROFILEMODE
   CFLAGS += -pg
endif

ifndef DEBUGMODE
   CFLAGS += -Werror
endif

#For Make to detect MingW automatically, the variable MINGDIR must be set
#Likewise, for DJGPP the variable DJGPP must be set
ifdef MINGDIR
   include makefile.mgw
else
   ifdef DJGPP
        include makefile.dj
   else
        include makefile.nix
   endif
endif

include makefile.lst

include makefile.all

include makefile.dep
