panthema / 2006 / SDIOS06 / sdios06 / testapps / heaptest / Makefile (Download File)
SOURCES = $(wildcard *.cc)
OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
GOAL=heaptest
CFLAGS = -O0 -g3 -Wall -W -Werror -I.

all: $(GOAL)

$(GOAL): $(OBJECTS)
	g++ $(OBJECTS) -o $(GOAL)

%.o: %.cc
	g++ $(CFLAGS) -c $*.cc -o $*.o

clean:
	rm -rf $(OBJECTS) $(GOAL)