# Makefile for building programs with whole-program interfile optimization
###################################################################################################
OPT := -fwhole-program -combine -03 #-DNDEBUG
-CFLAGS := -g -Wall -Werror -std=c99 -m64 -fnested-functions $(OPT) #-DENABLE_TRACE
+CFLAGS := -g -Wall -Werror -std=c99 -m64 -fnested-functions #$(OPT) #-DENABLE_TRACE
INCS := $(addprefix -I, include)
TESTS := output/rcu_test output/list_test output/ht_test
EXES := $(TESTS)
-UTIL_SRCS := util/nbd.c util/rcu.c util/lwt.c util/CuTest.c util/mem.c
-rcu_test_SRCS := $(UTIL_SRCS)
-list_test_SRCS := $(UTIL_SRCS) struct/list.c
-ht_test_SRCS := $(UTIL_SRCS) struct/ht.c struct/ht_test.c
+RUNTIME_SRCS := runtime/runtime.c runtime/rcu.c runtime/lwt.c runtime/mem.c runtime/CuTest.c
+rcu_test_SRCS := $(RUNTIME_SRCS)
+list_test_SRCS := $(RUNTIME_SRCS) struct/list.c
+ht_test_SRCS := $(RUNTIME_SRCS) struct/ht.c struct/ht_test.c
tests: $(TESTS)