Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2011 11:30:02 +0200
From:      Vikash Badal <Vikash.Badal@is.co.za>
To:        Polytropon <freebsd@edvax.de>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   RE: switching from gnu make to bsd make
Message-ID:  <9B425C841283E0418B1825D40CBCFA615B422307D7@ZABRYSVISEXMBX1.af.didata.local>
In-Reply-To: <20110210091036.d2f68289.freebsd@edvax.de>
References:  <9B425C841283E0418B1825D40CBCFA615B422306F9@ZABRYSVISEXMBX1.af.didata.local> <20110210091036.d2f68289.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> -----Original Message-----
> From: Polytropon [mailto:freebsd@edvax.de]
> Sent: 10 February 2011 10:11 AM
> To: Vikash Badal
> Cc: freebsd-questions@freebsd.org
> Subject: Re: switching from gnu make to bsd make
>=20
> Of course, in my testing case OBJDIR and SRCDIR are
> empty, and I didn't define any of CC, CFLAGS, INCDIR or
> LIBDIR, so the defaults have been chosen.
>=20
> Do you encounter a specific problem?

This is my problem:

vix:$ make
make: don't know how to make src/%.c. Stop


this is my make file:

-------------------------------------------------------------------------=
---------

CC            =3D cc
LIBS          =3D -lpthread -lmysqlclient_r
CFLAGS        =3D -Wall -g
INCDIR        =3D -Iinclude -I/usr/local/include -I/usr/local/include/mys=
ql
LIBDIR        =3D -L/usr/local/lib -L/usr/local/lib/mysql
OBJDIR        =3D obj
SRCDIR        =3D src
BINDIR        =3D bin
PREFIX        =3D /usr/local/nntpd
BINDIRFILES   =3D ${BINDIR}/nntpd
OBJS          =3D ${OBJDIR}/log.o ${OBJDIR}/cleanup.o ${OBJDIR}/config.o =
\
=20               ${OBJDIR}/leecherpool.o ${OBJDIR}/mytime.o ${OBJDIR}/nn=
tp.o \
=20               ${OBJDIR}/upstream.o ${OBJDIR}/mysleep.o ${OBJDIR}/sqlp=
ool.o \
=20               ${OBJDIR}/sql.o ${OBJDIR}/signalhandler.o ${OBJDIR}/dae=
mon.o \
=20               ${OBJDIR}/list.o ${OBJDIR}/tcpserver.o ${OBJDIR}/tmpfil=
es.o \
=20               ${OBJDIR}/listenpool.o ${OBJDIR}/workers.o \
=20               ${OBJDIR}/nntpd.o

$(OBJDIR)/%.o:${SRCDIR}/%.c
=20       ${CC} -c ${CFLAGS} ${INCDIR} ${LIBDIR} $< -o $@

all:    ${OBJS}
=20       ${CC} -o ${BINDIR}/nntpd ${LIBS} ${CFLAGS} ${INCDIR} ${LIBDIR} =
\
=20       ${OBJDIR}/log.o ${OBJDIR}/cleanup.o ${OBJDIR}/config.o \
=20       ${OBJDIR}/leecherpool.o ${OBJDIR}/mytime.o ${OBJDIR}/nntp.o \
=20       ${OBJDIR}/upstream.o ${OBJDIR}/mysleep.o ${OBJDIR}/sqlpool.o \
=20       ${OBJDIR}/sql.o ${OBJDIR}/signalhandler.o ${OBJDIR}/daemon.o \
=20       ${OBJDIR}/list.o ${OBJDIR}/tcpserver.o ${OBJDIR}/tmpfiles.o \
=20       ${OBJDIR}/listenpool.o ${OBJDIR}/workers.o \
=20       ${OBJDIR}/nntpd.o

-------------------------------------------------------------------------=
---------
>=20
>=20
>=20
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
Please note: This email and its content are subject to the disclaimer as =
displayed at the following link http://www.is.co.za/legal/E-mail+Confiden=
tiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a=
=20mail to disclaimers@is.co.za and a copy will be emailed to you.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?9B425C841283E0418B1825D40CBCFA615B422307D7>