#
# 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
#
# makefile: Main makefile, set up for GNU-make
#

include makedefs

all     : bcc2grx_all      test_all
clean   : bcc2grx_clean    test_clean
cleanall: bcc2grx_cleanall test_cleanall lib_cleanall

lib:    bcc2grx_all

test:   test_all

bcc2grx_all:
	$(MAKE) -C src all

bcc2grx_clean:
	$(MAKE) -C src clean

bcc2grx_cleanall:
	$(MAKE) -C src cleanall

test_all:
	$(MAKE) -C test all

test_clean:
	$(MAKE) -C test clean

test_cleanall:
	$(MAKE) -C test cleanall

lib_cleanall:
	$(MAKE) -C lib cleanall

ifndef Linux

distrib_beta: clean
	cd ..\\..
	del bcc2grx.zip
	pkzip -ex -P -r bcc2grx.zip contrib\\bcc2grx\\*.* -x*.o -x*.a -x*.exe -x*.bak -x*.dsk -x*.prj
	unzip -l bcc2grx.zip >manifest\\bcc2grx.mft
	pkzip -ex -P bcc2grx.zip manifest\\bcc2grx.*
	cd contrib\\bcc2grx

distrib: clean
	cd ..\\..
	del bccgrx20.zip
	pkzip -ex -P -r bccgrx20.zip contrib\\bcc2grx\\*.* -x*.o -x*.a -x*.exe -x*.bak -x*.dsk -x*.prj
	pkzip -ex -P -r bccgrx20.zip contrib\\bcc2grx\\lib\\*.a
	unzip -l bccgrx20.zip >manifest\\bccgrx20.mft
	pkzip -ex -P bccgrx20.zip manifest\\bccgrx20.*
	cd contrib\\bcc2grx

endif
