Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 9a0a2148 authored by deuce's avatar deuce

Add a new macro to disable the dllimport stuff for telnet.c when used

in SyncTERM.

Win32 binaries end with .exe.

Line with winmm and ws2_32 libs for Win32
parent e3e5be47
......@@ -262,7 +262,11 @@ endif
LIBPREFIX := lib
DIRSEP := /
OFILE := .o
EXEFILE :=
ifeq ($(os),win32)
EXEFILE := .exe
else
EXEFILE :=
endif
SOFILE := .so
LIBFILE := .a
UL_PRE := -l
......
......@@ -146,7 +146,7 @@ enum {
#undef DLLCALL
#endif
#ifdef _WIN32
#if defined(_WIN32) && !defined(TELNET_NO_DLL)
#ifdef SBBS_EXPORTS
#define DLLEXPORT __declspec(dllexport)
#else
......
......@@ -9,6 +9,7 @@
#include "genwrap.h"
#include "sockwrap.h"
#define TELNET_NO_DLL
#include "telnet.h"
#include "gen_defs.h"
#include "bbslist.h"
......
......@@ -5,6 +5,7 @@
#ifndef _TELNET_IO_H_
#define _TELNET_IO_H_
#define TELNET_NO_DLL
#include "telnet.h"
extern uchar telnet_local_option[0x100];
......
......@@ -28,6 +28,9 @@ endif
ifeq ($(os),linux) # Linux
XPDEV-MT_LIBS += -lpthread
endif
ifeq ($(os),win32) # MinGW32
XPDEV-MT_LIBS += -lws2_32 -lwinmm
endif
ifeq ($(shell if [ -c /dev/urandom ] ; then echo YES ; fi),YES)
XPDEV-MT_CFLAGS += -DHAS_DEV_URANDOM -DURANDOM_DEV=\"/dev/urandom\"
XPDEV_CFLAGS += -DHAS_DEV_URANDOM -DURANDOM_DEV=\"/dev/urandom\"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment