schultz@mmm.UUCP (John C Schultz) (06/01/89)
We have OS9 UNIBRIDE running on our SUN network and I ran into a problem using
SUN (or GNU) make. These make utilities assume a *.c file compiles to a *.o
file. However, using UNIBRIDGE and the OS9 cc68 compiler, you compile .c files
to .r files and I was having to put in explicit compilation rules for EACH
file.
A friend suggested the floowing solution which works just great. Shows what
can happen when you read the SUN (or GNU) manual.
DEFINES = -DOS9 -DBIG_ENDIAN # particualr for your setup
INCDIR = ./include
CC = cc68
CFLAGS = -g -r -q -v=$(INCDIR) $(DEFINES)
LFLAGS =
.c.r: # ala SUN manual for make(1)
$(CC) $(CFLAGS) $*.c
--
john c. schultz schultz@3M.Com ..!uiucuxc!mmm!schultz (612) 733-4047
3M Center, Bldg 518-1-1, St. Paul, MN 55144-1000
The opinions expressed herein are, as always, my own and not 3M's.