#############################################################################
#
# Set the following items for your system.
#
#############################################################################

#
# Compiler
#
CC=gcc
CC_OPTIONS= -Wall -O2 -m486

#
# Default Directory Prefix
#
PREFIX=/usr/local

#
# Jpeg support
# Fill this in if your libs and includes are in an unusual place,
# otherwise leave it blank.
#
# JPEGINC= -I/usr/src/jpeg
# JPEGLIB= -L/usr/src/jpeg
JPEGINC=
JPEGLIB=

#
# Libggi Support
# Fill this in if your libs and includes are in an unusual place,
# otherwise leave it blank.
#
# GGIINC= -I/usr/src/ggi
# GGILIB= -L/usr/src/ggi
GGIINC=
GGILIB=

#############################################################################
#
# You should not need to edit below this line.
#
#############################################################################

export CC CC_OPTIONS PREFIX JPEGINC JPEGLIB GGIINC GGILIB

SUBDIRS= lib src util

all:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done;
	@echo '*****************************************************'
	@echo 'Compile is finished. Run "make install" to install.'
	@echo '*****************************************************'

clean:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done;
	rm -f *~

install:
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done;
	@echo '*****************************************************'
	@echo 'Install complete.'
	@echo '*****************************************************'

gbm:
	$(MAKE) -C lib

ggv:
	$(MAKE) -C src

utils:
	$(MAKE) -C util
