# KallistiOS ##version##
#
# SGE Makefile
# Lawrence Sebald
#
# Based on:
# addons/libjpeg Makefile
# (c)2001 Dan Potter
#
include Makefile.conf
SGE_VER = 020904

KOS_CFLAGS += -I$(KOS_BASE)/../kos-ports/include/freetype -I$(KOS_BASE)/../kos-ports/include/SDL
# -I$(KOS_BASE)/include/stlport -D_STLP_NO_THREADS

OBJS = sge_surface.o sge_primitives.o sge_tt_text.o sge_bm_text.o sge_misc.o \
sge_textpp.o sge_blib.o sge_rotation.o sge_collision.o sge_shape.o

TARGET = libSGE.a
include $(KOS_BASE)/addons/Makefile.prefab

#myall: sge_config.h $(OBJS)
#	rm -f $(KOS_BASE)/lib/libSGE.a
#	$(KOS_AR) rcs $(KOS_BASE)/lib/libSGE.a $(OBJS)

sge_config.h:
	@echo "/* SGE Config header (generated automatically) */" >sge_config.h
	@echo "#define SGE_VER $(SGE_VER)" >>sge_config.h
	@echo "#define _SGE_HAVE_IMG" >>sge_config.h
	@echo "#define _SGE_NO_CLASSES" >>sge_config.h
	@echo "== SGE r$(SGE_VER)"
	@echo "== FreeType2 support enabled."
	@echo "== SDL_Image (SFont) support enabled."
	@echo "== Warning: No C++ classes will be built!"

#include $(KOS_BASE)/Makefile.prefab
