Files
ostep-code/threads-api/Makefile
Remzi Arpaci-Dusseau 502a67f965 some thread API examples
2019-04-23 12:12:17 -05:00

22 lines
346 B
Makefile

CC := gcc
CFLAGS := -Wall -Werror -I../include
SRCS := thread_create.c \
thread_create_simple_args.c \
thread_create_with_return_args.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 $<