-CC=gcc
+CC=g++
BIN=libthreads
-SOURCE=libthreads.c schedule.c
-HEADERS=libthreads.h schedule.h common.h
-FLAGS=
+SOURCE=libthreads.cc schedule.cc libatomic.cc userprog.c model.cc
+HEADERS=libthreads.h schedule.h common.h libatomic.h model.h
+FLAGS=-Wall
all: ${BIN}