*BSD News Article 32599


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!news.intercon.com!udel!rochester!rocksanne!gnu!leisner
From: leisner@gnu (Marty Leisner 25733)
Subject: using bsd sources on other platforms
Message-ID: <1994Jul9.184638.347@news.wrc.xerox.com>
Sender: news@news.wrc.xerox.com
Reply-To: leisner@sdsp.mc.xerox.com
Organization: xerox
X-Newsreader: TIN [version 1.2 PL2]
Date: Sat, 9 Jul 1994 18:46:38 GMT
Lines: 43

I want to see what exists to use BSD sources on other
platforms (I currently have a sun).

The BSD (I now have bsd-4.4 lite, but worked with net2
for a while) are not compatible with anything except
bsd...

I'm using gmake 3.71 (not the bsd make) and pervert the
bsd makefiles to look like:

#       @(#)Makefile    8.2 (Berkeley) 4/3/94

PROG=   ftp
SRCS=   cmds.c cmdtab.c ftp.c main.c ruserpass.c domacro.c

include bsd.prog.mk

where bsd.prog.mk will do:
OBJS=$(SRCS:.c=.o)
CC=gcc
CFLAGS+=-g -I/usr/marty/bsd/include
LOADLIBES+=-L/usr/marty/bsd/lib -lbsd
LD=$(CC)

$(PROG):        $(OBJS)
        $(LD) -o $@ $^ $(LOADLIBES)

clean:
        $(RM) $(PROG) $(OBJS)

and I'm going to need to do the right things in lib and include to
make bsd sources happy on a sun 4.1.3 machine...

Has anyone else pulled this together?

--
marty
leisner@sdsp.mc.xerox.com  
Member of the League for Programming Freedom
Unix is not designed for general-purpose computing.
It was specifically designed for one person computing--
therefore the name Unix.
				Ken Olsen