#
# This GNU make makefile for GCC will be generate next files:
#
# ..\bin\vncviewer.exe
#

# Name for binary (without path and extension)
NAME = vncviewer

# Binary file extension (dll/exe)
EXT = exe

VERSION = 0.3.1
DESCRIPTION = VNC Viewer

# Compilation flags for ../common/utils.c
UTILS_CFLAGS = -DUTILS_WITH_OPENSSL
#UTILS_CFLAGS = -DUTILS_WITH_GNUTLS

# Sources
SRCS = main.c lnchpad.c clntconn.c progress.c pswddlg.c clntwnd.c \
       optionsdlg.c tipwin.c filexfer.c fxdlg.c prbar.c ../common/utils.c \
       ..\common\chatwin.c ..\common\conv.c

# Libraries (-Lpath -lname ...)
LIBS = -L../libvncserver -L../os2xkey -L../libgiconv -los2xkey \
       -llibgiconv -lvncclient -lz -ljpeg -lpthread
LIBS += -llibcrypto -llibssl
#LIBS += -lgnutls_dll

CFLAGS =

include ../common/makefile.begin


$(FILE_BIN): $(OBJS) $(FILE_DEF) $(FILE_RES) ../libvncserver/vncclient.a
	$(CC) $(FILE_DEF) $(LDFLAGS)
	$(LXLITE) >nul
	$(RC) $(RCLFLAGS)

$(FILE_DEF):
ifneq ($(DEBUGCODE),YES)
	@echo NAME $(NAME) windowapi >$@
	$(DESCRCMD) >>$@
else
	$(DESCRCMD) >$@
endif


include ../common/makefile.end
