
CC = g++

CFLAGS = -Wall -O2

all: simple-thread complex-thread multiple-thread threadpool

simple-thread: simple-thread.cc
	$(CC) simple-thread.cc -o simple-thread $(CFLAGS) `pkg-config gfccore-2.0 --cflags --libs`

complex-thread: complex-thread.cc
	$(CC) complex-thread.cc -o complex-thread $(CFLAGS) `pkg-config gfccore-2.0 --cflags --libs`

multiple-thread: multiple-thread.cc
	$(CC) multiple-thread.cc -o multiple-thread $(CFLAGS) `pkg-config gfccore-2.0 --cflags --libs`

threadpool: threadpool.cc
	$(CC) threadpool.cc -o threadpool $(CFLAGS) `pkg-config gfccore-2.0 --cflags --libs`

clean: 
	rm -f *.o simple-thread complex-thread multiple-thread threadpool
