# RJP === Sample Makefile for using threads # CC=g++ INCLUDE_FLAGS= -I../include LIB_PATH= -L../src CFLAGS= $(INCLUDE_FLAGS) -D_REENTRANT CXXFLAGS = $(CFLAGS) LDFLAGS= -lpthread -lrhino $(LIB_PATH) #=============== Change this ================== # What is the target? #TARGET = trythread # Name all the dependent objects #OBJECTS = trythread.o #============================================== all: trythread trythread2 tryblock trythread: trythread.o trythread2: trythread2.o tryblock: tryblock.o %:%.o $(CXX) -o $@ $< $(LDFLAGS) host: echo $host) $(TARGET): $(OBJECTS) $(CC) $(OBJECTS) -o $@ $(LDFLAGS)