# tools
CC := gcc
RM := rm -f

# flags
CFLAGS := -ggdb
LDFLAGS :=
LDLIBS :=

# sources
sources := target1.c target2.c target3.c target4.c tmalloc.c
targets := target1 target2 target3 target4

# gmake magic
.PHONY: default all clean

#targets
default: all
all: $(targets)

clean:
	$(RM) $(targets) $(sources:.c=.o)


#dependencies
target3: tmalloc.o
tmalloc.o target3.o: tmalloc.h
