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

Re: How to build packages from tarballs without makefiles



On Sun, 9 Apr 2006, Justin Pryzby wrote:

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


Interesting, I had not tried that before. Obviously my "make" experience is lacking...

Carlo


--
Carlo U. Segre -- Professor of Physics
Associate Dean for Special Projects, Graduate College
Illinois Institute of Technology
Voice: 312.567.3498            Fax: 312.567.3494
Carlo.Segre@iit.edu    http://www.iit.edu/~segre



Reply to: