[AD] problems making Allegro for bcc32

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hello,
It seems that the makefile for bcc32 uses a non-standard feature: My
windows 98-msdos-prompt doesn't understand the following:

   copy _allegro.def + lib\bcc32\allegro.def _allegro.def > nul

If I remove the redirection to  nul (why does it hide error messages
like that, btw?), it says that the contents of the target got lost
before copying. So it seems better to do

   copy _allegro.def lib\bcc32\allegro.def _allegr2.def

and then use _allegr2.def instead of _allegro.def. However, for some
reason which I don't understand, make fails whenever it reaches a copy
command, or any other command that is built-in in dos' shell. So I had
to patch makefile.bcc so that it understands when the UNIX_TOOLS flag is
set and uses unix rm/cp/mkdir/rmdir in that case, rather than dos
del/copy/md/rd.

Patch attached, but it may be wrong since I don't understand how it
could work earlier. (Even I have got it to work earlier, but that was
windows 95+4dos, and now it's windows 98+msdos, so maybe there's some
difference in the shells? What platform have other people used?) Also,
it's not complete in the sense that it uses backwards slashes as path
separator, but djgpp's tools understand those (I'm not sure about
unix-like shells for dos though).

-- 
Sven Sandberg    svsa1977@xxxxxxxxxx    home.student.uu.se/svsa1977

Attachment: makefile.bcc.diff.gz
Description: GNU Zip compressed data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/