From owner-freebsd-questions@FreeBSD.ORG Wed May 20 19:57:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D256106566B for ; Wed, 20 May 2009 19:57:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 19F0E8FC18 for ; Wed, 20 May 2009 19:57:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-124-142.dynamic.qsc.de [92.195.124.142]) by mx01.qsc.de (Postfix) with ESMTP id 922B93D315; Wed, 20 May 2009 21:57:08 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n4KJv2LN001438; Wed, 20 May 2009 21:57:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 20 May 2009 21:57:02 +0200 From: Polytropon To: francis keyes Message-Id: <20090520215702.826770e3.freebsd@edvax.de> In-Reply-To: References: <20090520000137.3d46fcb2.freebsd@edvax.de> <4A135119.8010007@telenix.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Polytropon , Chuck Robey , freebsd-questions@freebsd.org Subject: Re: compiling FreeBSD date on Linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 19:57:10 -0000 On Wed, 20 May 2009 14:45:59 -0300, francis keyes wrote: > Hmm... the date program looks pretty simple but I don't understand the > Makfile: > > # @(#)Makefile 8.1 (Berkeley) 5/31/93 > # $FreeBSD: src/bin/date/Makefile,v 1.11.30.1 2009/04/15 03:14:26 kensmith > Exp $ > > PROG= date The final program name. > SRCS= date.c netdate.c vary.c The source files it depends on. > DPADD= ${LIBUTIL} Needs to compile what ${LIBUTIL} point to, usually the libutil directory in the src/ tree. > LDADD= -lutil Additional info for the linker: link against libutil. This indicates that libutil is a build dependency for the date program. > .include Definitions, variables and "what to do" is there. > Would it be possible to compile this without a makefile? That was my initial idea. The date program seems to depend on two things: First the kernel interface which would be something similar in Linux, and the libutil library, which is maybe present on Linux, too. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...