#
# BCC2GRX  -  Interfacing Borland based graphics programs to LIBGRX
# Copyright (C) 1993-96 by Hartmut Schirmer
#
# This library is copyrighted (see above). It might be used and
# distributed freely as long as all copyright notices are left
# intact.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# Contact :                Hartmut Schirmer
#                          Feldstrasse 118
#                  D-24105 Kiel
#                          Germany
#
# e-mail : hsc@techfak.uni-kiel.d400.de
#
# makedefs: basic makefile definitions
#

# ----------- Detect target system
#  DOS/DJGPP defines USER=dosuser
ifndef SUBMAKEF
ifneq ($(EMU387),)
SUBMAKEF = makefile.dj
.SUFFIXES: .exe .chr .c .o
include $(BASE)/config.dj

ifdef DJGPP2
LGRX   = -lgrx20
GRX    = GRX20
LBCC   = -lbcc2
LIBBCC = libbcc2.a
else
ifdef GRX2
LGRX   = -lgrx20
GRX    = GRX20
LBCC   = -lbccx
LIBBCC = libbccx.a
else
LGRX   = -lgrx
GRX    = GRX10x
LBCC   = -lbcc
LIBBCC = libbcc.a
endif
endif

else # ! DOS/DJGPP

SUBMAKEF = makefile.lnx
.SUFFIXES: .chr .c .o

include $(BASE)/config.lnx

XGRX   = -lgrx20X -lX11
LGRX   = -lgrx20 -lvga
GRX    = GRX20
LBCC   = -lbcc2
LIBBCC = libbcc2.a

endif
endif

CC     = gcc
