forked from shiningzhang0926/CSE522_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 680 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CC=gcc
CFLAGS=-g -lpthread
TARGET = resmanager
DEPS = mid_wrapper.h
OBJ = resmamager.o mid_wrapper.o
default: $(TARGET) tests
all: default tests
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $<
$(TARGET): $(OBJ)
$(CC) $(CFLAGS) -o $@ $^
tests: test_normal.c test_fork_bomb.c test_increase.c parallel_dense_mm.c
$(CC) $(CFLAGS) -o test_normal test_normal.c
$(CC) $(CFLAGS) -o test_fork_bomb test_fork_bomb.c
$(CC) $(CFLAGS) -o test_increase test_increase.c
$(CC) $(CFLAGS) -o parallel_dense_mm parallel_dense_mm.c -fopenmp
$(CC) $(CFLAGS) -o test_input_fwd test_input_fwd.c
clean:
rm -f *.o
rm -f $(TARGET) test_increase test_fork_bomb test_normal parallel_dense_mm