compiling FreeBSD date on Linux

Polytropon freebsd at
Wed May 20 19:57:10 UTC 2009

On Wed, 20 May 2009 14:45:59 -0300, francis keyes <fkeymo at> 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 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.


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.

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list