[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to build packages from tarballs without makefiles



On Sun, Apr 09, 2006 at 09:45:02AM -0500, Carlo Segre wrote:
> On Sun, 9 Apr 2006, David Liontooth wrote:
> 
> >Roberto C. Sanchez wrote:
> >>
> >>I would just put those into the debian/rules.  There is not enough there
> >>to justify a full-blown makefile in my mind.
> >>
> >OK, that's good news, but I need a bit more help -- where do I add them to 
> >rules?
> >
> >  CFLAGS = -Wall -g
> >
> >Can I add the "Link with" line to give
> >
> > CFLAGS = -Wall -g -lGLU -lGL -lXmu -lXext -lX11
> >
> >Does that work? What about
> >
> >-O -c -I/usr/X11R6/include otk_lib.c -o
> >
> >Under "# Add here commands to compile the package." I just have
> >      $(MAKE)
> >
> 
> Since there is no Makefile, you will need to explicitly replace the 
> $(MAKE) with the gcc or cc command with the options you want.
Not true; make foo.o will create it from foo.c or foo.f or whatever,
using values of CFLAGS FFLAGS CPPFLAGS or whatever is appropriate.
make foo also works (assuming of course that the source file is called
foo.something).

> In the "install" section, again, you will need to replace the
> $(MAKE) install with individual install commands to put the
> libraries where they are supposed to go.
True, afaik.



Reply to: