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.
 
 
 
 
 
 

56 lines
1.9 KiB

ifndef VERSION
VERSION = @PACKAGE_VERSION@
endif
EXE = @PACKAGE_TARNAME@.exe
CC = @CC@
WINDRES = @WINDRES@
ZIP = @ZIP@
LDFLAGS = @CRYPTO_LDFLAGS@ @LDFLAGS@
LIBS = @CRYPTO_LIBS@ @LIBS@
CFLAGS = @CRYPTO_CPPFLAGS@ @CFLAGS@ @CPPFLAGS@
CFLAGS += -W -Wall -Wno-unused-parameter -pedantic
OBJS = main.o tray.o openvpn.o openvpn_monitor_process.o viewlog.o \
service.o options.o passphrase.o proxy.o registry.o \
openvpn_config.o scripts.o localization.o openvpn-gui-res.o
SOURCES = main.c main.h openvpn.c openvpn.h localization.c localization.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 \
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 @PACKAGE_TARNAME@-*/
mkdir @PACKAGE_TARNAME@-$(VERSION)
cp $(SOURCES) $(EXTRA) @PACKAGE_TARNAME@-$(VERSION)
$(ZIP) -qr @PACKAGE_TARNAME@-$(VERSION).zip @PACKAGE_TARNAME@-$(VERSION)
rm -rf @PACKAGE_TARNAME@-$(VERSION)
snapshot:
$(MAKE) dist VERSION="$(VERSION).git`git log --format=format:"%h" HEAD -1`"
clean :
rm -f *.o *.exe