A few simple "Q"s about make.

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
User avatar
cobaka
Posts: 521
Joined: Thu Jul 16, 2020 6:04 am
Location: Central Coast, NSW - au
Has thanked: 87 times
Been thanked: 49 times

A few simple "Q"s about make.

Post by cobaka »

'Allo all and woof!

I'm quite unsure whether this topic should be posted in 'beginner' or 'programming'.
It's in 'programming' for the moment - here goes.

I found a set of files for a project. These files date (I suspect) from the mid-80s.
Looking at the C code I suspect the syntax for this project conforms to K&R C and not the syntax needed for the 2017 gcc compiler.
My Puppy - the very elegant uPupBB32. The compiler ...

# gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

I get many warnings that suggest the C source predates the puppy compiler provides.

A make file is included in the collection of files I found.
(A make-file? Oh, good! What's a "make" file? Never seen one before, but it must be useful, otherwise it wouldn't be included, right?)

# make --version
GNU Make 4.1
Built for i686-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.

OK - I do know a little about make - now ...
Reading about 'make' on the net, and comparing what I read online with information in the GNU make manual, I see differences.

My "Q". Did "make" evolve in the same way "C" evolved?
Next "Q": Since I am (Puppy is) using the GNU compiler called "gcc" then I assume the matching "make" utility follows the GNU rules?
In other words, if I'm reading the GNU manual for make, am I in the right paddock?
(I always like to be in the right paddock.)

Thanks,

собака

собака --> это Русский --> an old dog
"so-baka" (not "co", as in coast or crib).

Post Reply

Return to “Programming”