#
# This makefile for GCC will be generate next files:
#
# ..\bin\vncserver.exe
#

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

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

VERSION = 0.3.3
DESCRIPTION = VNC Server

# Sources
SRCS = main.c rfbsrv.c config.c gui.c configdlg.c avdlg.c log.c clientsdlg.c \
       ssl_openssl.c protoext.c ..\common\utils.c ..\common\conv.c ..\common\chatwin.c

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

CFLAGS = -DVERSION=\"$(VERSION)\" -D_DIGI \
         -I../libvncserver/libvncserver

include ../common/makefile.begin


$(FILE_BIN): $(OBJS) $(FILE_DEF) $(FILE_RES) ../libvncserver/vncserver.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
