The commit223b1a3f94was a mistake, so we reverse both commit5f7cf0b60dand commit223b1a3f94for now.
118 lines
1.8 KiB
Makefile
118 lines
1.8 KiB
Makefile
#!/usr/bin/env make
|
|
#
|
|
# 2011 makefile
|
|
#
|
|
# Copyright (C) 2011, Landon Curt Noll, Simon Cooper, and Leonid A. Broukhis.
|
|
#
|
|
# Creative Commons Attribution-ShareAlike 3.0 Unported License.
|
|
# See: http://creativecommons.org/licenses/by-sa/3.0/
|
|
|
|
|
|
################
|
|
# tool locations
|
|
################
|
|
#
|
|
SHELL= bash
|
|
CP= cp
|
|
CPP= cpp
|
|
GUNZIP= gunzip
|
|
LD= ld
|
|
MAKE= make
|
|
RM= rm
|
|
SED= sed
|
|
TAR= tar
|
|
TRUE= true
|
|
|
|
# optimization
|
|
#
|
|
# Most compiles will safely use -O2. Some can use only -O1 or -O.
|
|
# A few compilers have broken optimizers or this entry make break
|
|
# under those buggy optimizers and thus you may not want anything.
|
|
#
|
|
OPT= -O2
|
|
|
|
# bitness
|
|
#
|
|
# Some entries require 32-bitness,
|
|
# other entries require 64-bitess.
|
|
# By default we assume nothing.
|
|
#
|
|
ARCH=
|
|
|
|
# default flags for ANSI C compilation
|
|
#
|
|
CFLAGS= -Wall -W -ansi ${ARCH} ${OPT} -D_BSD_SOURCE -lm
|
|
|
|
# ANSI compiler
|
|
#
|
|
# Set CC to the name of your ANSI compiler.
|
|
#
|
|
CC= cc
|
|
|
|
|
|
##############################
|
|
# Special flags for this entry
|
|
##############################
|
|
#
|
|
ENTRY= zucker
|
|
DATA=
|
|
|
|
|
|
#################
|
|
# build the entry
|
|
#################
|
|
#
|
|
all: ${ENTRY} ${DATA}
|
|
@${TRUE}
|
|
|
|
${ENTRY}: ${ENTRY}.c
|
|
${CC} ${CFLAGS} ${ENTRY}.c -o ${ENTRY}
|
|
|
|
# alternative executable
|
|
#
|
|
alt:
|
|
@${TRUE}
|
|
|
|
|
|
###############
|
|
# utility rules
|
|
###############
|
|
#
|
|
everything: all alt
|
|
|
|
clean:
|
|
${RM} -f ${ENTRY}.o
|
|
|
|
clobber: clean
|
|
${RM} -f ${ENTRY}
|
|
|
|
nuke: clobber
|
|
@echo gnab gib!
|
|
|
|
install:
|
|
@echo "Surely you're joking Mr. Feynman!"
|
|
|
|
# backwards compatibility
|
|
#
|
|
build: all
|
|
|
|
|
|
##################
|
|
# 133t hacker rulz
|
|
##################
|
|
#
|
|
love:
|
|
@echo 'not war?'
|
|
|
|
haste:
|
|
$(MAKE) waste
|
|
|
|
waste:
|
|
@echo 'waste'
|
|
|
|
easter_egg:
|
|
@echo you expected to mis-understand this $${RANDOM} magic
|
|
@echo chongo '<was here>' "/\\oo/\\"
|
|
@echo Readers shall not be disallowed from being unable to partly misunderstand this final echo.
|
|
@${TRUE}
|