#
# 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
#

ifndef BCC_USER_CONF
# ------------------------------------------------------- CONFIGURATION START
# Select your operation system (enable just one line !)
#DJGPPv1=TRUE
DJGPPv2=TRUE
#Linux=TRUE

# Select your LIBGRX verison
#GRX=GRX10x
GRX=GRX20

# ------------------------------------------------------- CONFIGURATION END
BCC_USER_CONF=DONE
endif

# ---------- Select correct libraries
ifdef DJGPPv2
GRX = GRX20
endif

ifeq ($(GRX),GRX20)
LGRX   = -lgrx20
LBCC   = -lbcc2
LIBBCC = libbcc2.a
else # ! GRX v2.0
LGRX   = -lgrx
LBCC   = -lbcc
LIBBCC = libbcc.a
endif

# ----------- few system dependant settings
ifdef DJGPPv1
#.SUFFIXES: .exe .chr .c .o
LIBDIR=LIB/DJ
EX=.exe
endif
ifdef DJGPPv2
#.SUFFIXES: .exe .chr .c .o
LIBDIR=LIB/DJ
EX=.exe
endif

ifndef LIBDIR # !DJGPP : Linux assumed
#.SUFFIXES: .chr .c .o
RM=-rm
LIBDIR=lib/lnx
EX=#
ifeq ($(GRX),GRX20)
XGRX   = -lgrx20X -lX11
endif
LGRX  := $(LGRX) -lvga
endif

CC     = gcc
