-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (42 loc) · 1.32 KB
/
Makefile
File metadata and controls
53 lines (42 loc) · 1.32 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# pg_argon2id Makefile
# Build PostgreSQL extension for Argon2id password hashing
# Extension name and version
EXTENSION = pg_argon2id
EXTVERSION = 1.0
# Source files
MODULE_big = pg_argon2id
OBJS = pg_argon2id.o
# SQL scripts to install
DATA = sql/pg_argon2id--1.0.sql sql/pg_argon2id--uninstall--1.0.sql
# PostgreSQL configuration
PG_CONFIG = pg_config
# Compiler and linker flags
# Link against the argon2 library
SHLIB_LINK = -largon2
# Additional compiler flags for warnings and optimization
PG_CPPFLAGS = -Wall -Wextra -Werror
# Documentation files (optional)
DOCS = README.md
# Regression tests
REGRESS = basic_test parameter_test
# Use PGXS for building
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
# Additional targets
.PHONY: help
help:
@echo "pg_argon2id - Argon2id password hashing extension for PostgreSQL"
@echo ""
@echo "Available targets:"
@echo " make - Build the extension"
@echo " make install - Install the extension"
@echo " make installcheck - Run regression tests"
@echo " make clean - Clean build artifacts"
@echo ""
@echo "Prerequisites:"
@echo " - PostgreSQL development files (postgresql-server-dev-16)"
@echo " - Argon2 library (libargon2-dev)"
@echo ""
@echo "Example usage:"
@echo " sudo make install"
@echo " sudo -u postgres psql -c 'CREATE EXTENSION pg_argon2id;'"