Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 21:57:02 +0200
From:      Polytropon <freebsd@edvax.de>
To:        francis keyes <fkeymo@gmail.com>
Cc:        Polytropon <freebsd@edvax.de>, Chuck Robey <chuckr@telenix.org>, freebsd-questions@freebsd.org
Subject:   Re: compiling FreeBSD date on Linux
Message-ID:  <20090520215702.826770e3.freebsd@edvax.de>
In-Reply-To: <d64607cc0905201045i36084a34g2a6c0d4e9d5f750d@mail.gmail.com>
References:  <d64607cc0905191419p621f7e65tf5515d1d3696bfa0@mail.gmail.com> <20090520000137.3d46fcb2.freebsd@edvax.de> <4A135119.8010007@telenix.org> <d64607cc0905201045i36084a34g2a6c0d4e9d5f750d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 May 2009 14:45:59 -0300, francis keyes <fkeymo@gmail.com> 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 <bsd.prog.mk>

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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090520215702.826770e3.freebsd>