mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 09:33:56 +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
|
CC=gcc
|
||||||
CFLAGS=-Wall
|
CFLAGS=-g -O2 -ffile-prefix-map=/=. -fstack-protector-strong -Wformat -Werror=format-security
|
||||||
LDFLAGS=-lsodium
|
LDFLAGS=-Wl,-z,relro -lsodium
|
||||||
LDFLAGS_LIB=-I/usr/include/exim4 -fpic -shared -export-dynamic
|
LDFLAGS_LIB=-I/usr/include/exim4 -fpic -shared -export-dynamic
|
||||||
|
|
||||||
.PHONY: clean libs
|
.PHONY: clean libs
|
||||||
@ -8,12 +8,12 @@ LDFLAGS_LIB=-I/usr/include/exim4 -fpic -shared -export-dynamic
|
|||||||
.DEFAULT_GOAL := libs
|
.DEFAULT_GOAL := libs
|
||||||
|
|
||||||
libexim-encrypt-dlfunc.so: libexim-encrypt-dlfunc.c
|
libexim-encrypt-dlfunc.so: libexim-encrypt-dlfunc.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_LIB) -o $@ $<
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_LIB)
|
||||||
|
|
||||||
genkey: genkey.c
|
genkey: genkey.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f libexim-kitencrypt-dlfunc.so libexim-encrypt-dlfunc.so
|
rm -f libexim-encrypt-dlfunc.so genkey
|
||||||
|
|
||||||
libs: libexim-encrypt-dlfunc.so
|
libs: libexim-encrypt-dlfunc.so
|
||||||
|
|||||||
Reference in New Issue
Block a user