
-----------------------------------
Geminias
Wed Feb 13, 2008 8:34 pm

Makefile question
-----------------------------------
I know the basics, but I don't know exactly what is going on here: 


all: roll run

clean:
	rm -f *~ *.o roll test test.cpp

CXXTEST = ../..
CCFLAGS = -I. -I$(CXXTEST)

roll: roll.o Dice.o real_stdlib.o
	g++ -o $@ $^

run: test
	./roll

test: test.o Dice.o mock_stdlib.o
	g++ -o $@ $^

.cpp.o:
	g++ -c -o $@ $(CCFLAGS) $<

test.cpp: TestDice.h
	$(CXXTEST)/cxxtestgen.pl -o $@ --error-printer $<


in particular, what are the $@?  is that the same as bash script for all arguments?  $