mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 08:43:55 +01:00
Added debian default compiler and linker options (from dpkg-buildflags --get CFLAGS)
This commit is contained in:
10
src/Makefile
10
src/Makefile
@ -1,6 +1,6 @@
|
||||
CC=gcc
|
||||
CFLAGS=-Wall
|
||||
LDFLAGS=-lsodium
|
||||
CFLAGS=-g -O2 -ffile-prefix-map=/=. -fstack-protector-strong -Wformat -Werror=format-security
|
||||
LDFLAGS=-Wl,-z,relro -lsodium
|
||||
LDFLAGS_LIB=-I/usr/include/exim4 -fpic -shared -export-dynamic
|
||||
|
||||
.PHONY: clean libs
|
||||
@ -8,12 +8,12 @@ LDFLAGS_LIB=-I/usr/include/exim4 -fpic -shared -export-dynamic
|
||||
.DEFAULT_GOAL := libs
|
||||
|
||||
libexim-encrypt-dlfunc.so: libexim-encrypt-dlfunc.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_LIB) -o $@ $<
|
||||
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_LIB)
|
||||
|
||||
genkey: genkey.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
|
||||
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f libexim-kitencrypt-dlfunc.so libexim-encrypt-dlfunc.so
|
||||
rm -f libexim-encrypt-dlfunc.so genkey
|
||||
|
||||
libs: libexim-encrypt-dlfunc.so
|
||||
|
||||
Reference in New Issue
Block a user