GUI_VERSION = @PACKAGE_VERSION@ BASENAME = openvpn-gui-$(GUI_VERSION) EXE = $(BASENAME).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 $(BASENAME) mkdir $(BASENAME) cp $(SOURCES) $(EXTRA) $(BASENAME) $(ZIP) -qr $(BASENAME).zip $(BASENAME) rm -rf $(BASENAME) clean : rm -f *.o *.exe