• Please review our updated Terms and Rules here

Building GNU fileutils 2.1 for DOS - what are *.cs files?

doshea

Experienced Member
Joined
Dec 22, 2009
Messages
132
Location
Australia
I'd like to rebuild GNU fileutils version 2.1 for DOS from gnufut21.zip which is available in various places (that zip file contains both sources and binaries). The source/os2/readme.os2 file describes it as "GNU file utilities for OS/2", but I guess they're family mode executables as they work on DOS too.

I spent a lot of time trying to figure out why the build instructions in source/os2/fileutil.cmd didn't work for me and hacking makefiles so I could use DJGPP's GNU make + Microsoft C 6 to try to build it (I got a working cat.exe but not much else so far) but now I see readme.os2 says that's the documentation "for the 1.4 MS-DOS version".

The source/os2/ directory contains lots of *.cs files like this cat.cs:
Code:
(-W1 -Za -DSTDC_HEADERS -DUSG -DVERSION=\"2.1\"
src\cat.c
)
setargv.obj
os2\fileutil.def
out\fileutil.lib
out\cat.exe
-AS -LB -S0x8000

I suspect they're what was actually used to build the distributed binaries since they seem to have useful build flags and source files, unlike the Makefiles and configure output which have file names that are too long, etc.

What are those files? Are they for something in IBM C Set - are they used by an IDE or some sort of build tool? Are there any tools that run under DOS that can use them?
 
Back
Top