27 Commits
Author SHA1 Message Date
Cody Boone Ferguson 2cfcf7498d Correct comments wrt CC in example Makefile
A long while back I improved the Makefiles to allow for compiler
specific flags so that they don't have to be only "clang" or "gcc". This
is because in some systems gcc is actually clang (macOS does this). Also
if someone wants to use a different version or path then they can do so
with the right flags enabled. Before that change it would not work
right.

The comments suggested these flags will only be set when CC is exactly
"clang" or "gcc". This has been corrected.
2025-11-18 04:34:03 -08:00
Cody Boone Ferguson f334eb58cb Add CPP var to next/Makefile.example 2025-11-16 07:50:46 -08:00
Cody Boone Ferguson a5b85f9fe5 Add -Wno-overriding-deployment-version
A bug in macOS 26 (is anyone surprised any more?) ends up with warning:

    clang: warning: overriding deployment version from '16.0' to '26.0' [-Woverriding-deployment-version]

depending on invocation. Particularly with at least some versions of
gcc, even though in this case it was actually gcc and not the system gcc
that is really clang in disguise.

Because of this -Wno-overriding-deployment-version was added to
next/Makefile.example.
2025-09-28 03:46:06 -07:00
Cody Boone Ferguson 3ea688696a Fix CSILENCE= in next/Makefile.example
One of the warnings disabled (triggered in macOS) that was already added
seemed to be missing.

I also disabled the silly warning triggered by clang with -Weverything (I
think -Weverything) -Wunsafe-buffer-usage as that is against basic C (it
will not even let you iterate through argv without whining about it
being 'unsafe').

The example in the Makefile given is -Wno-int-conversion instead.
2025-09-21 09:13:07 -07:00
Cody Boone Ferguson feab6674c2 Typo fixes in next/Makefile.example
References to try when it should be try.alt were fixed.
2025-08-22 08:17:58 -07:00
Cody Boone Ferguson af767b3b46 Improve next/Makefile.example
In the commented out include of ../../var.mk add var.mk for the tarballs
of each entry.
2025-08-10 07:22:22 -07:00
Landon Curt Noll f28e69499d improve top comment for submission Makefile template 2025-07-04 23:02:55 -07:00
Landon Curt Noll 748e3504a0 add improved try and try.alt rules to next/Makefile.example 2025-06-23 23:02:46 -07:00
Landon Curt Noll 4ed3a81f00 restore useful comments in Makefile.example
By mistake in a few previous commits, some useful explanatory
and example comments were removed.

Add comments that will be useful for IOCCC29 and beyond.

Remove `${GINDENT}` and add `${RMDIR}` Makefile variables.
2025-06-19 20:27:05 -07:00
Landon Curt Noll 1fba8a2aec update next/Makefile.example as per final judging rounds
We update `next/Makefile.example` as per needs of IOCCC
final judging rounds.

Improved a few "XXX" comments.

Add `-pedantic` to `${CWARN}` by default with a comment
suggesting that is is OK to remove that compiler flag.
2025-06-19 19:35:44 -07:00
Landon Curt Noll f0f464dee2 improve some XXX comments in Makefile.example 2025-06-19 11:53:12 -07:00
Landon Curt Noll b13b0e523d minor comment update to Makefile.example 2025-06-19 11:44:19 -07:00
Landon Curt Noll 0d5d5754f3 improve Makefile.example for final rounds and for IOCCC29 2025-06-19 11:41:53 -07:00
Cody Boone Ferguson 77ee12b23b Fix make clobber in next/Makefile.example
*.dSYM is a directory so the ${RM} -f needs -r too.
2025-05-17 01:34:08 -07:00
Cody Boone Ferguson dedfb66358 Disable poison directories in example Makefile
That is, add to CSILENCE -Wno-poison-system-directories and add to
CUNKNOWN -Wno-unknown-warning-option.
2025-03-23 12:39:47 -07:00
Cody Boone Ferguson acc69f999b Add missing CHMOD= in Makefile.example 2025-03-20 04:56:45 -07:00
Cody Boone Ferguson 5ea01b6bd5 Fixes in example Makefile under next/ 2025-03-06 08:03:42 -08:00
Cody Boone Ferguson 49609b0ead Final edits before IOCCC28 (I hope :-) )
Renamed some FAQs (typos and/or other things).

Fix a number of typos in various files (including markdown format
errors).

Rules and guidelines should be relatively good although as there is a
lot to get through and not much time left maybe I missed something (I
also kind of cheated doing the final checks with the guidelines rather
than going through them all again).

The next/try.sh and next/try.alt.sh scripts have had updates as well and
the next/Makefile.example was modified too.

The index.html page now has an anchor for goals of the contest so that
the goals in the rules could simply link to it in index.html.

Although some text had to be added (and some corrected) a reasonable
amount of text was also removed as it was elsewhere or was extraneous in
some way.
2025-03-04 12:11:08 -08:00
Cody Boone Ferguson 7aa9ac3ecf Fix comments in all rule of Makefile.example
Without the @ before the comments (which are informative and to be
removed by contestants) it shows the comments when running 'make'. Even
worse is without doing $${CHMOD} it would not evaluate to anything so it
looked bizarre.

Thus the @ was added to the comments like the rest of the file (comments
in rules).
2025-03-03 09:38:45 -08:00
Cody Boone Ferguson 5e5dacfb5c Add to Makefile.example note about +x
Since only try.sh and try.alt.sh files may be executable in submission
tarballs, the Makefile.example now notes this and shows how one can
adjust this if they need to. This is also in the guidelines, rules and
FAQ but those cannot be committed yet.
2025-02-02 12:37:38 -08:00
Cody Boone Ferguson eda967ff60 Clarification and additions in guidelines
Reworded some things.

Brought up how the IOCCC has moved away from spoilers.

As part of the section on the Makefile I have additionally added to the
Makefile.example a 'try.alt' rule in the case of someone having
alternate code. It is not required, of course.
2025-01-22 09:59:03 -08:00
Cody Boone Ferguson 220864ac2d Fix Makefile.example - add missing variables
Winning entries include var.mk and that sets the variables CLANG and
GCC. Without this the findstring check in the Makefile (on ${CC})
matches the first one and uses the wrong warning options.

This commit resolves this problem.
2025-01-17 09:38:15 -08:00
Cody Boone Ferguson 2c3514ec3f Clarify a statement in next/Makefile.example
One should not remove the ALT_OBJ or ALT_TARGET lines but rather the
comments about them (that explain to submitters how to use them).
2025-01-16 06:31:14 -08:00
Landon Curt Noll c075bca287 improve the next/Makefile.example
Removed use of @${TRUE} in make actions.

Use `${PROG}.c` and `${PROG}.alt.c` in compile actions.
2025-01-12 23:07:51 -08:00
Cody Boone Ferguson 45a601e2da Improve next/Makefile.example
Remove the install rule as that's included in 1337.mk.

Remove the indent.c rule as that's included in 1337.mk.

Add to make clobber removal of *.dSYM.

Removed -g3 from OPT variable. This is more useful in macOS but with
optimised code debug symbols are not nearly as useful anyway.
2024-12-07 12:14:41 -08:00
Cody Boone Ferguson 154d40710b Fixes for recent commits
The Makefile.example file now has the ALT_OBJ and ALT_TARGET (with a
comment explaining how to use it) and the alt rule (which if the
variables are left empty it will do nothing with 'make alt' or 'make
everything').

The example Makefile now has the everything rule as well, for those who
have an alt target.

Fix links to next/try.sh, next/try.alt.sh and next/Makefile.example in
html files (guidelines/rules/FAQ) to not link to GitHub as they're
supposed to be downloaded.
2024-12-04 10:28:16 -08:00
Cody Boone Ferguson a7f9b06350 Move Makefile.entry to Makefile.example
The file template/entry/Makefile.entry was moved to
next/Makefile.example. This matches the mkiocccentry repo in filename
and where it was before (template/entry) is not the right place as that
is for the template of making submissions into a winning entry whereas
next/ is for the next contest. The next/ seems like the most logical
place because the example file could be updated per contest for whatever
reason, perhaps by adding the year in it (or not). On the other hand,
the try.sh in template/entry is for submitters too but since the
bin/cvt-submission.sh script will copy the template files to a winning
entry if it does not exist it is left in template/entry, even if this
might not be ideal.

The references to the old Makefile.entry have been updated to
Makefile.example in the new path/filename.

Other changes had to be made too including updates to
bin/cvt-submission.sh. That script should be checked to make sure
everything is okay but as I have no way to test it that might have to be
done by the judges though I think it is okay.

Html files that have been changed that might need to be checked are:

0.    faq.html (this one especially should be checked)
1.    next/guidelines.html (though the judges will be checking this more)
2.    next/rules.html (though the judges will be checking this more)

For the faq.html file, the Makefile.example and try.sh/try.alt.sh
scripts should be downloaded, not linked to on GitHub and it needs to be
clear that one should use the Makefile.example from the website (this
repo) rather than the out of date mkiocccentry repo.

For the guidelines and rules, and especially the guidelines, any files
linked should also be downloaded and not linked to GitHub. The text
should be clear already but it might be good to have a quick pass. The
judges will be going over these files before the next contest too. The
files should be downloaded here too, not linked to GitHub as submitters
need to download the files to make use of.

The thanks-for-help.html file was slightly modified but should be fine
too. In this case the GitHub file should be linked to.

The version of the rules and guidelines are from an earlier date of when
they were last modified for the above changes (as this was worked on
over a number of days).
2024-12-02 07:06:10 -08:00