Skip to content

Commit 1a07fcb

Browse files
authored
Merge branch 'sysprog21:master' into master
2 parents 8db463e + 859f4b0 commit 1a07fcb

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

hp_list/Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
all:
2-
$(CC) -Wall -o list main.c -lpthread -g -fsanitize=thread
1+
CC ?= gcc
2+
CFLAGS = -Wall -g
3+
CFLAGS += -fsanitize=thread
4+
LIBS = -lpthread
5+
BIN = list
6+
7+
all: list
8+
9+
$(BIN): main.c
10+
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
11+
12+
all: CFLAGS += -O2
13+
all: $(BIN)
314

415
# The RUNTIME_STAT allow to show the runtime operation state,
516
# such as "rtry" is the number of retries in the __list_find function.

0 commit comments

Comments
 (0)