Added common include for simple C programs, and threads-intro code

This commit is contained in:
Remzi Arpaci-Dusseau
2018-09-10 10:34:11 -05:00
parent f83b83e680
commit a72eedc5b6
5 changed files with 136 additions and 0 deletions

14
threads-intro/Makefile Normal file
View File

@@ -0,0 +1,14 @@
FLAGS = -Wall -pthread
INCLUDES = ../include
all: t0 t1
clean:
rm -f t0 t1
t0: t0.c
gcc -I $(INCLUDES) -o t0 t0.c $(FLAGS)
t1: t1.c
gcc -I $(INCLUDES) -o t1 t1.c $(FLAGS)