You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
2.0 KiB

GUI_VERSION = @PACKAGE_VERSION@
BASENAME = openvpn-gui-$(GUI_VERSION)
EXE = $(BASENAME).exe
CC = @CC@
WINDRES = @WINDRES@
ZIP = @ZIP@
CFLAGS = @CRYPTO_CPPFLAGS@ @CFLAGS@ @CPPFLAGS@
LDFLAGS = @CRYPTO_LDFLAGS@ @LDFLAGS@
LIBS = @CRYPTO_LIBS@ @LIBS@
CFLAGS += -W -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
-Wcast-align -Wwrite-strings -Wconversion -Wsign-compare \
-Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute \
-Wredundant-decls -Winline -Wdisabled-optimization \
-Wno-unused-function -Wno-unused-variable
OBJS = main.o tray.o openvpn.o openvpn_monitor_process.o viewlog.o \
service.o options.o passphrase.o proxy.o ieproxy.o registry.o \
openvpn_config.o scripts.o openvpn-gui-res.o
SOURCES = main.c main.h openvpn.c openvpn.h \
openvpn_monitor_process.c openvpn_monitor_process.h \
tray.c tray.h viewlog.c viewlog.h service.c service.h \
options.c options.h passphrase.c passphrase.h proxy.c proxy.h \
ieproxy.c ieproxy.h registry.c registry.h scripts.c scripts.h \
openvpn_config.c openvpn_config.h openvpn-gui.exe.manifest \
chartable.h openvpn-gui-res.h openvpn-gui-res*.rc
EXTRA = connected.ico connecting.ico disconnected.ico reconnecting.ico openvpn-gui.ico \
acinclude.m4 Makefile.in aclocal.m4 config.h.in configure configure.ac \
OpenVPN\ GUI\ ReadMe.txt changes.txt COPYING COPYRIGHT.GPL
all : ${OBJS}
${CC} $(CFLAGS) $(LDFLAGS) -o ${EXE} ${OBJS} ${LIBS}
%.o : %.c %.h
$(CC) $(CFLAGS) -c $<
openvpn-gui-res.o : openvpn-gui-res.h *.rc *.ico *.manifest
$(WINDRES) -i openvpn-gui-res.rc -o openvpn-gui-res.o
dist:
@test -x "$(ZIP)" || { \
echo "zip(1) was not found on your system"; \
echo "please install and run configure again"; \
exit 1; \
}
rm -rf $(BASENAME)
mkdir $(BASENAME)
cp $(SOURCES) $(EXTRA) $(BASENAME)
$(ZIP) -qr $(BASENAME).zip $(BASENAME)
rm -rf $(BASENAME)
clean :
rm -f *.o *.exe