#!/usr/bin/env make # # IOCCC 1994 winning entry - weisberg ################################################################################ # # IOCCC winning entry code may not work on your system. What was liked/allowed # and worked in the past may no longer be liked/allowed or compile/run today. # # Bug fixes, corrections and typo fixes are VERY WELCOME. If you see a problem, # first check this URL for a list of known bugs and (mis)features of IOCCC entries: # # https://www.ioccc.org/bugs.html # # GitHub pull requests are welcome! Please see the above URL for details. # ################################################################################ # # This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. # You are free to share and adapt this file under the terms of this license: # # Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) # # For more information, see: https://creativecommons.org/licenses/by-sa/4.0/ ############################# # shell used by this Makefile ############################# # SHELL= bash ####################### # common tool locations ####################### # include ../../var.mk # Common C compiler warnings to silence # CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-pointer-to-int-cast \ -Wno-shift-op-parentheses -Wno-implicit-int -Wno-parentheses \ -Wno-return-type -Wno-builtin-declaration-mismatch -Wno-int-in-bool-context # Attempt to silence unknown warning option # CUNKNOWN= -Wno-unknown-warning-option # Common C compiler warning flags # CWARN= -Wall -Wextra ${CSILENCE} ${CUNKNOWN} # Compiler standard # CSTD= -std=gnu90 # Compiler bit architecture # ARCH= # Defines that are needed to compile # CDEFINE= -Dc='n*n>x?p:((m=*(b+1)),N))' \ -DN='((b=t+1),x+=2,x>e?exit(0):o' \ -Dp='(a-t