TIP: Click on subject to list as thread! ANSI
echo: tub
to: All
from: Serguei Trouchelle
date: 2003-11-15 01:12:38
subject: Compiling ``slib`` w/Watcom

Used:
  OpenWatcom 1.1
  UnxUtils (w/GNU Make version 3.78.1)
  Windows 2000 SP4

First problem is unability to correctly execute sh ./configure, it has
nested sh executions, based on #! method, which doesn't work under WinNT
environments.
So, I have to write own vars_windowsnt.mk
Using ./configuration-test/make.sh with 3.78.1 cause some problems too, it
can understand only 3.## 

By the way, using uname to determinte target platform is wrong. For
example, Watcom can successfully compile OS/2 target under WinNT
environment and vice versa. So I think original Lanius methods with
$(COMP), $(MODE) etc was a good idea. 

Second problem is vars.mk file. It is very unportable. I think all
variables, specific for GCC or UNIX have to be tranferred to vars_gcc.mk or
stuff.

For example, see line

CPPFLAGS = -DUNIX $(EXTRA_CPPFLAGS) $(INCLUDES) $(EXTRA_INCLUDES)
           ^^^^^^

I don't think it is a good idea to write this in main module :)

Next. ./slib/Makefile

It has hard-coded ``gcc'' lines. I think it is a very bad idea...

Compiling smserial.c must be used only for OS/2 and UNIX, no need to
compile it for DOS/D386/NT platforms.

[to be continued...]

Serguei Trouchelle 
--- timEd/386 1.10.y2k+
* Origin: Send more complaints! (2:550/4077.101)
SEEN-BY: 633/267 270
@PATH: 550/4077 5030/49 10/3 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.