summaryrefslogtreecommitdiffstats
path: root/service-win32/Makefile
blob: 027b6dd9add91fdd09e3e19c7ae753a81ea7c15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This makefile builds the OpenVPN win32 service
# wrapper using the mingw environment.
#
# service.c and service.h should be generated by
# applying service.patch to the Platform
# SDK service sample.

EXE = openvpnserv.exe

HEADERS = service.h

OBJS =	openvpnserv.o service.o

INCLUDE_DIRS =

CC = gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin

all : ${OBJS}
	${CC} -o ${EXE} ${OBJS}

clean :
	rm -f ${OBJS} ${EXE}

%.o : %.c ${HEADERS}
	${CC} ${INCLUDE_DIRS} -c $< -o $@