On Wed, 20 May 2009 14:45:59 -0300, francis keyes <fke...@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, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to