mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-19 19:42:30 +02:00
b25c6d7e86
Change-Id: Ic377958d303b1dcfa9d877d3a63ecf39bdff7aef Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20240315170054.2368254-1-frank@lichtenheld.com> URL: https://sourceforge.net/p/openvpn/mailman/message/58749316/ Signed-off-by: Gert Doering <gert@greenie.muc.de>
38 lines
986 B
Makefile
38 lines
986 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2020-2024 OpenVPN Inc <sales@openvpn.net>
|
|
#
|
|
|
|
#
|
|
# Plug-ins to build - listed entries should not carry any extensions
|
|
#
|
|
PLUGINS = \
|
|
defer/multi-auth \
|
|
keying-material-exporter-demo/keyingmaterialexporter \
|
|
log/log log/log_v3 \
|
|
simple/base64 \
|
|
simple/simple \
|
|
client-connect/sample-client-connect
|
|
|
|
# All the plugins to build - rewritten with .so extension
|
|
all : $(foreach var, $(PLUGINS), $(var).so)
|
|
|
|
# Do not automatically remove object files
|
|
# This is a special Make setting, to avoid adding an implicit
|
|
# 'rm' command on object files - due to the .c.o/%.so rules below
|
|
.PRECIOUS: %.o
|
|
|
|
# Compile step
|
|
.c.o :
|
|
test -d `dirname $@` || $(MKDIR_P) `dirname $@`; \
|
|
$(CC) -c -o $@ $(CFLAGS) $(AM_CPPFLAGS) -fPIC $<
|
|
|
|
# Link step
|
|
%.so : %.o
|
|
$(CC) $(LDFLAGS) -shared -fPIC -o $@ $<
|
|
|
|
# Clean up all build object and shared object files
|
|
clean :
|
|
rm -f $(foreach var, $(PLUGINS), $(var).o) \
|
|
$(foreach var, $(PLUGINS), $(var).so)
|