CC = gcc
CFLAGS += -Wdiscarded-qualifiers

# compile and link with -pthread
CFLAGS  = -pthread -g -Wall
LDFLAGS = -pthread

executables = malloc malloc2 overhead overhead_syscall overhead_file
objects     = malloc.o malloc2.o overhead.o overhead_syscall.o overhead_file.o

.PHONY: default
default: $(executables)

$(executables):

$(objects):

.PHONY: clean
clean:
	rm -f *~ *.out $(objects) $(executables)

.PHONY: all
all: clean default
