mirror of
https://github.com/postgres/postgres.git
synced 2025-12-24 06:01:07 +03:00
A later change will require atomic support, so it wouldn't make sense for a hypothetical new system not to be able to implement spinlocks. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> (concept, not the patch) Reviewed-by: Andres Freund <andres@anarazel.de> (concept, not the patch) Discussion: https://postgr.es/m/3351991.1697728588%40sss.pgh.pa.us
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for storage/lmgr
|
|
#
|
|
# IDENTIFICATION
|
|
# src/backend/storage/lmgr/Makefile
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/storage/lmgr
|
|
top_builddir = ../../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
OBJS = \
|
|
condition_variable.o \
|
|
deadlock.o \
|
|
lmgr.o \
|
|
lock.o \
|
|
lwlock.o \
|
|
predicate.o \
|
|
proc.o \
|
|
s_lock.o \
|
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
|
|
|
ifdef TAS
|
|
TASPATH = $(top_builddir)/src/backend/port/tas.o
|
|
endif
|
|
|
|
s_lock_test: s_lock.c $(top_builddir)/src/common/libpgcommon.a $(top_builddir)/src/port/libpgport.a
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -DS_LOCK_TEST=1 $(srcdir)/s_lock.c \
|
|
$(TASPATH) -L $(top_builddir)/src/common -lpgcommon \
|
|
-L $(top_builddir)/src/port -lpgport -lm -o s_lock_test
|
|
|
|
lwlocknames.h: ../../../include/storage/lwlocklist.h ../../utils/activity/wait_event_names.txt generate-lwlocknames.pl
|
|
$(PERL) $(srcdir)/generate-lwlocknames.pl $^
|
|
|
|
check: s_lock_test
|
|
./s_lock_test
|
|
|
|
clean:
|
|
rm -f s_lock_test
|
|
rm -f lwlocknames.h
|