first bits of CV code

This commit is contained in:
Remzi Arpaci-Dusseau
2019-04-29 14:39:06 -05:00
parent fdb5882470
commit a2d7e3595d
3 changed files with 111 additions and 0 deletions

20
threads-cv/Makefile Normal file
View File

@@ -0,0 +1,20 @@
CC := gcc
CFLAGS := -Wall -Werror -I../include
SRCS := join.c \
join_modular.c
OBJS := ${SRCS:c=o}
PROGS := ${SRCS:.c=}
.PHONY: all
all: ${PROGS}
${PROGS} : % : %.o Makefile
${CC} $< -o $@ -pthread
clean:
rm -f ${PROGS} ${OBJS}
%.o: %.c Makefile
${CC} ${CFLAGS} -c $<