#  Sample Makefile for using pthreads. I hope. --Jered
# -I/afs/sipb/project/pthreads/current/include -L/afs/sipb/project/pthreads/current/lib -lpthread
CFLAGS_PTHREAD= -I/afs/sipb/project/pthreads/current/include
LDFLAGS_PTHREAD= -L/afs/sipb/project/pthreads/current/lib
LIBS_PTHREAD= -lpthread

CFLAGS= $(CFLAGS_PTHREAD)
LDFLAGS= $(LDFLAGS_PTHREAD)
LIBS= $(LIBS_PTHREAD)

CC=gcc
OBJS=test_switch.o phello.o

all: test_switch phello

phello: phello.o
	$(CC) $(LDFLAGS) -o phello phello.o $(LIBS)

test_switch: $(OBJS)
	$(CC) $(LDFLAGS) -o test_switch $(OBJS) $(LIBS)
