TARGET=mkdoc

CC=gcc
CFLAGS=-W -Wall 
LDFLAGS=

# --- different commands for erasing files and the allegro lib ---

ALLIB=-lalleg
RMFILES=del *.o
EXE=$(addsuffix .exe, $(TARGET))
EXE2=$(EXE)

ifdef UNIX_PLATFORM
ALLIB=`allegro-config --libs`
RMFILES=rm *.o
EXE=$(TARGET)
EXE2=./$(EXE)
endif

ifdef DEBUGMODE
CFLAGS += -g -ggdb -DDEBUGMODE
ifdef UNIX_PLATFORM
ALLIB=`allegro-config --libs debug`
endif
endif

doc:
	$(CC) $(CFLAGS) mkdoc.c -o $(EXE) $(ALLIB)
	$(EXE2) en_docs.cfg
	$(EXE2) nl_docs.cfg
	@echo "Documentation is now available in en/html/ and nl/html/ ."


