view interps/unlambda/Makefile @ 9554:23f43464694e

<Zarutian> le/rn Frams\xc3\xb3knarflokkurinn/A, now defunct, political party in Iceland. Like its sister party Sj\xc3\xa1lfst\xc3\xa6\xc3\xb0isflokkurinn it is named by the antonym of what it is. (The name means the Progressive Party but they have nearly always been highly regressive). Think dumb Hill-Billies in ill fitting suits and you get their constiuents.
author HackBot
date Sun, 30 Oct 2016 14:33:24 +0000
parents 859f9b4339e6
children
line wrap: on
line source

unlambda: unlambda.c
	gcc -Wall -O10 -DNDEBUG=1 -fomit-frame-pointer -fschedule-insns2 \
	-fstrict-aliasing -s unlambda.c -o unlambda -DUSE_SLASH

unl: unlambda.c
	gcc -Wall -g -DSILENT -DDEBUG_REFCOUNT -DUSE_SLASH\
	unlambda.c -o unl

unlambda-cov: unlambda.c paths.unl
	cp unlambda.c unlambda-cov.c
	gcc -Wall -O -DNDEBUG=1 -DUSE_SLASH -g -fprofile-arcs \
	-ftest-coverage unlambda-cov.c -o unlambda-cov ; \
	echo a | unlambda-cov paths.unl > /dev/null ; \
	unlambda-cov paths2.unl > /dev/null ; \
	unlambda-cov paths3.unl > /dev/null ; \
	unlambda-cov paths4.unl > /dev/null ; \
	unlambda-cov paths5.unl > /dev/null ; \
	unlambda-cov &> /dev/null ; \
	gcov unlambda-cov

unlambda.new: unlambda.new.c
	gcc -Wall -O10 -DNDEBUG=1 -fomit-frame-pointer -fschedule-insns2 \
	-fstrict-aliasing -s unlambda.new.c -o unlambda.new -DUSE_SLASH

unlambda.old: unlambda.old.c Makefile
	gcc -Wall -O10 -DNDEBUG=1 -fomit-frame-pointer -fschedule-insns2 \
	-fstrict-aliasing -s unlambda.old.c -o unlambda.old

small: unlambda.small.c Makefile
	gcc -Wall -O10 -DNDEBUG=1 -fomit-frame-pointer -fschedule-insns2 \
	-finline-functions -finline-limit-1000000 \
	-fstrict-aliasing unlambda.small.c -s -o small

clean:
	rm -f *.o *~ small unlambda unlambda.new unlambda.old unl \
	unlambda-cov* *.gcov