Deutsch   English   Français   Italiano  
<vr6b89$1knu7$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: Python recompile
Date: Sun, 16 Mar 2025 11:04:40 +0000
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <vr6b89$1knu7$1@dont-email.me>
References: <vq1qas$j22$1@gallifrey.nk.ca> <vqefn1$3flpt$1@dont-email.me>
 <vqeu5c$3imil$1@dont-email.me> <vqeun4$3iqbq$1@dont-email.me>
 <vqfcbe$3lkkc$1@dont-email.me> <871pv861ht.fsf@nosuchdomain.example.com>
 <20250308192940.00001351@yahoo.com> <vqi1ge$8jg8$1@dont-email.me>
 <vqmgjv$3a2il$1@paganini.bofh.team> <vqn4dn$1eb9s$1@dont-email.me>
 <vqo3ss$3hkas$1@paganini.bofh.team> <vqph2e$203bs$2@dont-email.me>
 <vqvtop$cpvn$1@paganini.bofh.team> <vr1nkh$1miii$1@dont-email.me>
 <G8_AP.37556$D_V4.24121@fx39.iad> <vr1uk1$1sb5s$1@dont-email.me>
 <874izvjs4m.fsf@nosuchdomain.example.com> <vr27td$22vgq$2@dont-email.me>
 <87senfi7ii.fsf@nosuchdomain.example.com> <vr2dbm$2995t$1@dont-email.me>
 <vr2onl$2hjmt$3@dont-email.me> <vr3k67$3a5r2$1@dont-email.me>
 <vr4shn$cbcb$2@dont-email.me> <vr4t8q$ckip$1@dont-email.me>
 <vr5vdg$uhu$1@news.gegeweb.eu> <vr60j2$1cocj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 16 Mar 2025 12:04:41 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e892a4a9d31106b29d1fb60ac90a094a";
	logging-data="1728455"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+tdN36Jw5M2G3En9DLmq+R"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LFyjP0//61nDVM++A5ZjcXPyZeY=
In-Reply-To: <vr60j2$1cocj$1@dont-email.me>
Content-Language: en-GB
Bytes: 3143

On 16/03/2025 08:02, Lawrence D'Oliveiro wrote:
> On Sun, 16 Mar 2025 08:42:40 +0100, tTh wrote:
> 
>> On 3/15/25 22:59, bart wrote:
>>
>>> I wonder, do you any examples of a project which can be built using
>>> ONLY a C compiler, and a set of source files?
>>
>> There's no example of a project like that, because nobody do that.
> 
> One source file, yes <https://gitlab.com/ldo/slow_dbus_server>. I even
> include the necessary compiler command in the header comments.
> 
> More than one source file -- things get fiddly without at least a simple
> Makefile to keep it tidy.

You've never heard of an '@' file? Take this 3-module project with files 
'cipher.c sha2.c hmac.c':

    c:\c>type cipher
     -O3 -s -o cipher.exe        # list options and source files
     cipher.c
     sha2.c
     hmac.c

    c:\c>gcc @cipher             # build with compiler of choice

    c:\c>tcc @cipher

Yes, each build will process all the source files. But:

(1) For a one-off build at a user site to get a working binary,  you'd
     have to compile all files anyway

(2) If using a compiler like tcc, it probably wouldn't take long:

    c:\luac>tim tcc @lua
    Time: 0.28

 > least a simple
 > Makefile to keep it tidy.

Every single makefile I've seen seems to be the opposite of tidy.