From owner-freebsd-small Mon Nov 16 06:23:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA14990 for freebsd-small-outgoing; Mon, 16 Nov 1998 06:23:05 -0800 (PST) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from fw.tue.le (pC19F231F.dip.t-online.de [193.159.35.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA14946 for ; Mon, 16 Nov 1998 06:23:00 -0800 (PST) (envelope-from thz@Lennartz-Electronic.DE) Received: from mezcal.tue.le (mezcal.tue.le [192.168.201.20]) by fw.tue.le (8.8.8/8.8.8) with ESMTP id PAA01064 for ; Mon, 16 Nov 1998 15:17:27 +0100 (CET) (envelope-from thz@mezcal.tue.le) Received: (from thz@localhost) by mezcal.tue.le (8.8.8/8.8.8) id PAA21331 for small@freebsd.org; Mon, 16 Nov 1998 15:17:27 +0100 (MET) (envelope-from thz) Message-ID: <19981116151726.A21210@tue.le> Date: Mon, 16 Nov 1998 15:17:26 +0100 From: Thomas Zenker To: small@FreeBSD.ORG Subject: "make" for small/modified systems Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, is this forum for Pico only or for issues concerning all small FreeBSD derived systems? Anyway. I use FreeBSD for a relatively small (not as small as picoBSD :-) embedded system (around 12Mb binaries). Development tools and programs not really necessary to run and maintain a unix system are ripped off. To gain lots of space all programs on /, apart of sh, init and ldconfig, are linked against shared libs located in /lib. All the shared libraries, needed by the programs in /bin & /sbin are put there. This needs modifications in to crt.o, ld.so ... (speaking a.out so far) Now, to administer the changed parts and have the possibility to do "make world" independent of the standard source tree I have patched make to have the possibility to do a "three directories make": .CURDIR, .OBJDIR and sources in .SRCDIR This way I have duplicated the source tree hierarchie with the Makefiles and modified source files. This is my .CURDIR tree - the one where I do the make. .SRCDIR points to the corresponding dir in the source tree, so I have to change some of the references to ${.CURDIR} in the original Makefiles to ${.SRCDIR}. Source files in .CURDIR take precedence over the files in .SRCDIR allowing to maintain modified sources locally. .SRCDIR is set similar as .OBJDIR by environment variables. Is there anybody, who has done similar things or is interrested in discussing this. The patch to make is rather small, does no harm with the environment variables not set. If anybody is interrested, drop me a mail. cheers -- Thomas Zenker at work thz@lennartz-electronic.de private thz@tuebingen.netsurf.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message