Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#277 SCO makefile

open
nobody
5
2003-06-10
2003-06-10
Anonymous
No

I have compiled NEdit 5.3 on SCO OpenServer 5.0.4.

I have removed the "unneeded" lines from Makefile.sco,
but those might be worth leaving alone as they might be
needed by earlier/later versions of SCO UNIX.

I have added OS and compiler support for OpenServer
and SCO's UNIX Development tools to system.h

There are more checks I could have added, I will test on
UnixWare 7 when I get that system up and running.

Although this is not technically a bug, I feel it is worth
sending as it can break compiles on OpenServer.

Here are some diff's of the changes I made - sorry for the
lack of GNU's diff here :(

===[ makefiles/Makefile.sco ]======
$ diff makefiles/Makefile.sco ../DIF/nedit-5.
3/makefiles/Makefile.sco
11,13c11,16
< CFLAGS=-O -I/usr/include -Dsco -DSYSV -DUSG
-DMALLOC_0_RETURNS_NULL -DUSE_DIRENT
-DMAXPATHLEN=256
< LIBS= -lXm -lXt -lXext -lX11 -lc -lx -lsocket -lmalloc
-lPW -lintl -lm
<
---
> #CFLAGS=-O -I/usr/include -Dsco -DSYSV -DUSG
-DMALLOC_0_RETURNS_NULL -DUSE_DIRENT
> #CFLAGS=-O -Dsco -DSYSV -DUSG -DXTFUNCPROTO
-DUSE_DIRENT -DMOTIF12
> CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT
-DUSE_LPR_PRINT_CMD -DMAXPATHLEN=256
> #LIBS= -lXm -lXt -lXext -lX11 -lc -lx -lsocket -lmalloc
-lPW -lintl
> #LIBS=-lXtXm_s -lX11_s -lXmu -lXext -lsocket -lmalloc
-lPW -lintl
> LIBS -L/usr/X11R6/lib -L/usr/lib -lm -lXm -lXext -lXt
-lX11 -lsocket

===[ util/system.h ]======
$ diff util/system.h
../DIF/nedit-5.3/util/system.h
96,99d95
< #elif defined(_SCO_DS)
< # define COMPILE_OS "OpenServer"
< #elif defined(__UNIXWARE__)
< # define COMPILE_OS "UnixWare"
108,113d103
< /* _SCO_DS *and* __GNUC__ can be defined on
OpenServer...
< So keep _SCO_DS check seperate */
<
< #if defined(_SCO_DS)
< # define COMPILE_COMPILER "SCO UNIX Development
System"
< #endif

There are some duplicate definition errors, but thats
down to my gnarly code :)

Successful buid details:

===[ SCO's CC ]======
NEdit 5.3
Jun 1, 2002

Built on: OpenServer, x86, SCO UNIX Development
System
Built at: Jun 10 2003, 14:58:45
With Motif: 1002 [@(#)Xm.h 58.1 96/10/06 ]
Running Motif: 1002
Server: Santa Cruz Operation Inc. 730

===[ GNU's CC ]======
NEdit 5.3
Jun 1, 2002

Built on: OpenServer, x86, GNU C
Built at: Jun 10 2003, 18:42:12
With Motif: 1002 [@(#)Xm.h 58.1 96/10/06 ]
Running Motif: 1002
Server: Santa Cruz Operation Inc. 730

Note: the 4-hour time difference is due to having to
compile GCC 3.2.3 :)

Regards,
Paul Ward <asmodai@ao.mine.nu>

Discussion