summaryrefslogtreecommitdiff
path: root/openvpn/src/plugins/down-root/Makefile
blob: e66c99aed7754a22e13cd12d3951bc401c1e741d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Build the OpenVPN down-root plugin module.
#

# This directory is where we will look for openvpn-plugin.h
CPPFLAGS=-I../../../include

CC=gcc
CFLAGS=-O2 -Wall

down-root.so : down-root.o
	$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc

down-root.o : down-root.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c down-root.c

clean :
	-rm -f *.o *.so