aboutsummaryrefslogblamecommitdiff
path: root/plugin/down-root/Makefile
blob: 5ce4ffb745f6e25c9cb595c13bb7613b3c657f40 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                              
#
# Build the OpenVPN down-root plugin module.
#

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

CC_FLAGS=-O2 -Wall

down-root.so : down-root.o
	gcc ${CC_FLAGS} -fPIC -shared -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc

down-root.o : down-root.c
	gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} down-root.c

clean :
	rm -f *.o *.so