🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2070

Re: More on nenscript

#2070
From: hank
Date: Wed, 02 Sep 1992 23:18
109 lines
3340 bytes
In article <geoffw.715299917@extro.ucc.su.OZ.AU>, geoffw@extro.ucc.su.OZ.AU (Geoffrey Warren Hicks) writes:
> 
> Posted on behalf of Craig Southeren who does not have access to
> a net account:
> -------------------------------------------------------------------
> 
> Thanks to everyone who expressed interest in the nenscript program,
>    Keep the suggestions coming - I will really get to them as soon
> as possible.

My mailer bounced the following note. nenscript looks interesting, but please
don't forget the OS/2 users. There are some problems with the makefile 
(shouldn't __STDC__ be defined so that the prototypes get used? I get problems
if I don't use these.).  

With easy changes to the makefile, nenscript runs under OS/2. Context diff's 
follow.


Original message:

Thanks for nenscript. I've only briefly examined, as I do not have
all of ghostscript loaded. In any case, your makefile.msc needs some 
modifications for MSC 6.00A to produce OS/2 executables.  I have attached
the file produced by 'diff -c makefile.msc makefile.os2', in case it can
be of any help. 

Note:
1. your make line for the executable always fails, as the '.exe' is missing.

2. makefile.os2 will produce an OS/2 executable and a separate bound
executable (will run under OS/2 and MSDOS). 

--darrel hankerson hank@ducvax.auburn.edu



*** makefile.msc	Sun Aug 23 18:46:52 1992
--- makefile.os2	Tue Sep 01 19:42:34 1992
***************
*** 1,8 ****
! #
! # Makefile 
! #
! # $Id: Makefile,v 1.5 1992/05/26 23:15:19 craigs Exp $
! #
  
  OBJ		= .obj
  
--- 1,9 ----
! # Makefile for MSC 6.00A under OS/2. 
! # Adapted with minor changes from the supplied makefile.msc
! # Files:
! #  nenscript.exe	OS/2 executable
! #  nenscrib.exe   OS/2 and MSDOS bound executable
! # Darrel Hankerson hank@ducvax.auburn.edu, 1-Sep-92
  
  OBJ		= .obj
  
***************
*** 27,45 ****
  # US_DATE selects date of form MMM DD YY, else date is DD MMM YY
  #
  CFLAGS	=	-DUS_DATE $(DEBUG)
! LFLAGS	=	/F 5000
  
  CHMOD	=	chmod
  CP	=	cp
  RM	=	rm
  INSTALL	=	install
  
! all debug:	$(PROG)
  
! $(PROG): $(OBJECTS)
! 	$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LFLAGS)
  
  main.$(OBJ):	main.c
  
  clean:
  	rm -f $(PROG) *.$(OBJ)
--- 28,54 ----
  # US_DATE selects date of form MMM DD YY, else date is DD MMM YY
  #
  CFLAGS	=	-DUS_DATE $(DEBUG)
! LFLAGS	=	-Lp /F 5000
  
+ DEFS = -DMSDOS -D__STDC__
+ BIND = bind
+ 
  CHMOD	=	chmod
  CP	=	cp
  RM	=	rm
  INSTALL	=	install
  
! all debug:	$(PROG).exe nenscrib.exe
! 
! $(PROG).exe : $(OBJECTS) nenscript.def
! 	$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LFLAGS) nenscript.def
  
! nenscrib.exe : $(PROG).exe
! 	$(BIND) $< /o $@ 
  
  main.$(OBJ):	main.c
+ 
+ .c.obj :; $(CC) -c $(CFLAGS) $(DEFS) $<
  
  clean:
  	rm -f $(PROG) *.$(OBJ)
   
Technical Details
Message-ID: <1992Sep2.181818.1@ducvax.auburn.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!news.duc.auburn.edu!ducvax.auburn.edu!hank
References: <geoffw.715299917@extro.ucc.su.OZ.AU>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!news.duc.auburn.edu!ducvax.auburn.edu!hank
From: hank@ducvax.auburn.edu
Subject: Re: More on nenscript
Message-ID: <1992Sep2.181818.1@ducvax.auburn.edu>
Lines: 110
Sender: usenet@news.duc.auburn.edu (News Account)
Nntp-Posting-Host: ducvax
Organization: Auburn University, AL
References: <geoffw.715299917@extro.ucc.su.OZ.AU>
Date: Wed, 2 Sep 1992 23:18:18 GMT
Lines: 110