###################################################################################################
# Written by Josh Dybnis and released to the public domain, as explained at
# http://creativecommons.org/licenses/publicdomain
###################################################################################################
# Written by Josh Dybnis and released to the public domain, as explained at
# http://creativecommons.org/licenses/publicdomain
###################################################################################################
# Makefile for building programs with whole-program interfile optimization
###################################################################################################
###################################################################################################
# Makefile for building programs with whole-program interfile optimization
###################################################################################################
CFLAGS := -g -Wall -Werror -std=c99 -m64 $(OPT) #-DENABLE_TRACE
INCS := $(addprefix -I, include)
TESTS := output/ll_test output/sl_test output/ht_test output/rcu_test
CFLAGS := -g -Wall -Werror -std=c99 -m64 $(OPT) #-DENABLE_TRACE
INCS := $(addprefix -I, include)
TESTS := output/ll_test output/sl_test output/ht_test output/rcu_test
###################################################################################################
test: $(addsuffix .log, $(TESTS))
@echo > /dev/null
###################################################################################################
test: $(addsuffix .log, $(TESTS))
@echo > /dev/null
gcc $(CFLAGS) $(INCS) -o $@ $($*_SRCS)
###################################################################################################
gcc $(CFLAGS) $(INCS) -o $@ $($*_SRCS)
###################################################################################################
###################################################################################################
$(addsuffix .d, $(EXES)) : output/%.d :
###################################################################################################
$(addsuffix .d, $(EXES)) : output/%.d :