🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #207

Makefile changes for smoother GCC

#207
From: Hal Peterson
Date: Tue, 25 Jul 1989 17:29
94 lines
3059 bytes
I am using GhostScript 1.3 with the patches supplied by Tony Li and
snoopy's fix to interp.c.  My platform is an 8MB Sun 3/50 running
SunOS 3.5.  I am compiling with GCC 1.35.

The following changes to ux-gcc-x.mak smoothed out the compilation
process.  I got rid of the GCC variable and used CC instead, then
replaced a couple of instances of cc with $(CC).
--
Hal Peterson			Domain:  hrp@cray.com
Cray Research			Old style:  hrp%cray.com@uc.msc.umn.edu
1440 Northland Dr.		UUCP:  uunet!cray!hrp
Mendota Hts, MN  55120  USA	Telephone:  +1 612 681 3145
============================================================
*** ux-gcc-x.mak-DIST	Wed Jul  5 17:41:44 1989
--- ux-gcc-x.mak	Wed Jul  5 18:05:16 1989
***************
*** 49,59 ****
  
  # Define the compilation rules.
  
! GCC=gcc
  .c.o:
! 	$(GCC) $(CFLAGS) $(CCDEBUG) -c $*.c
  
! CCNA=$(GCC) $(CFLAGS) $(CCDEBUG) -c
  
  # --------------------------- Generic makefile ---------------------------- #
  
--- 49,59 ----
  
  # Define the compilation rules.
  
! CC=gcc
  .c.o:
! 	$(CC) $(CFLAGS) $(CCDEBUG) -c $*.c
  
! CCNA=$(CC) $(CFLAGS) $(CCDEBUG) -c
  
  # --------------------------- Generic makefile ---------------------------- #
  
***************
*** 91,107 ****
  # (Dummy) tracing package.  Can't use -ansi, because it uses setjmp.
  
  utrace.o: utrace.c
! 	$(GCC) -O -c utrace.c
  
  # Library test programs
  
  x: x.$(OBJ) gdevx.$(OBJ)
! 	cc $(LDPLAT) -X -o x x.$(OBJ) gdevx.$(OBJ) -lX11 -lm
  
  GTUNIX=gt.$(OBJ) gsmain.$(OBJ) utrace.$(OBJ) gs_lib0.$(OBJ) \
   $(PLATBSD) $(DEVFORUNIX)
  gt: $(GTUNIX)
! 	cc $(CFLAGS) $(LDPLAT) -X -o gt $(GTUNIX) -lX11 -lm
  
  # Interpreter main program
  
--- 91,107 ----
  # (Dummy) tracing package.  Can't use -ansi, because it uses setjmp.
  
  utrace.o: utrace.c
! 	$(CC) -O -c utrace.c
  
  # Library test programs
  
  x: x.$(OBJ) gdevx.$(OBJ)
! 	$(CC) $(LDPLAT) -X -o x x.$(OBJ) gdevx.$(OBJ) -lX11 -lm
  
  GTUNIX=gt.$(OBJ) gsmain.$(OBJ) utrace.$(OBJ) gs_lib0.$(OBJ) \
   $(PLATBSD) $(DEVFORUNIX)
  gt: $(GTUNIX)
! 	$(CC) $(CFLAGS) $(LDPLAT) -X -o gt $(GTUNIX) -lX11 -lm
  
  # Interpreter main program
  
***************
*** 108,114 ****
  GSUNIX=gs.$(OBJ) gsmain.$(OBJ) utrace.$(OBJ) $(INT) gs_lib0.$(OBJ) \
   $(PLATBSD) $(DEVFORUNIX)
  gs: $(GSUNIX)
! 	cc $(CFLAGS) $(LDPLAT) -X -o gs $(GSUNIX) -lX11 -lm
  
  clean:
  	rm -rf gs *.o
--- 108,114 ----
  GSUNIX=gs.$(OBJ) gsmain.$(OBJ) utrace.$(OBJ) $(INT) gs_lib0.$(OBJ) \
   $(PLATBSD) $(DEVFORUNIX)
  gs: $(GSUNIX)
! 	$(CC) $(CFLAGS) $(LDPLAT) -X -o gs $(GSUNIX) -lX11 -lm
  
  clean:
  	rm -rf gs *.o
Technical Details
Message-ID: <8907251729.AA14358@rothko.cray.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!boring.cray.com!hrp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!boring.cray.com!hrp
From: hrp@boring.cray.com (Hal Peterson)
Newsgroups: gnu.ghostscript.bug
Subject: Makefile changes for smoother GCC
Message-ID: <8907251729.AA14358@rothko.cray.com>
Date: 25 Jul 89 17:29:12 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 94