csci5451/assignments/01/Makefile

14 lines
175 B
Makefile
Raw Normal View History

2023-09-23 04:37:36 +00:00
.PHONY: all
2023-09-23 05:04:06 +00:00
CFLAGS :=
2023-09-23 04:37:36 +00:00
all: lc_openmp lc_pthreads
2023-09-23 05:04:06 +00:00
lc_openmp: lc_openmp.o common.o
gcc -o $@ $<
lc_pthreads: lc_pthreads.o common.o
2023-09-23 04:37:36 +00:00
gcc -o $@ $<
2023-09-23 05:04:06 +00:00
%.o: %.c
gcc -o $@ -c $<