-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 685 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (20 loc) · 685 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
29
CPP=gcc
OPTS=-g -Wall
LIBS=-lresolv -ldl -lm
# Modify SRC_DIR as necessary
SRC_DIR=$(HOME)/postgresql-17.2
INCLUDE=-I$(SRC_DIR)/src/include
freelist_yaclock.o: freelist_yaclock.c
$(CPP) $(OPTS) $(INCLUDE) -c -o freelist_yaclock.o freelist_yaclock.c
clean:
rm -f *.o
yaclock: copyyaclock pgsql
clock: copyclock pgsql
copyyaclock:
cp freelist_yaclock.c $(SRC_DIR)/src/backend/storage/buffer/freelist.c
cp bufmgr_yaclock.c $(SRC_DIR)/src/backend/storage/buffer/bufmgr.c
copyclock:
cp freelist.original.c $(SRC_DIR)/src/backend/storage/buffer/freelist.c
cp bufmgr.original.c $(SRC_DIR)/src/backend/storage/buffer/bufmgr.c
pgsql:
cd $(SRC_DIR) && make && make install