makefile 395 Bytes
Newer Older
Imanol Pérez committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
all: main
#For debugging
OPT=-g
#For optimistaion
#OPT=-O
#All objects (except main) come from cpp and hpp 
%.o:	%.cpp %.hpp
	g++ ${OPT} -c -o $@ $<
#use_vectors relies on objects which rely on headers

main:	main.cpp global.o Population.o Organism.o Stock.o Quote.o Exception.o
		g++ ${OPT} -o main main.cpp global.o Population.o Organism.o Stock.o Quote.o Exception.o
clean:
	rm -f *.o *~ main