Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: bart 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: References: <871pv861ht.fsf@nosuchdomain.example.com> <20250308192940.00001351@yahoo.com> <874izvjs4m.fsf@nosuchdomain.example.com> <87senfi7ii.fsf@nosuchdomain.example.com> 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: 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 . 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.