* Basic Makefile support for Linux
** To build run : autoreconf --install, ./configure, make * Minor typecasts and fixed typo to make GCC happy
This commit is contained in:
parent
a2bbc0c7d4
commit
3fbca9faf8
0
src/AUTHORS
Normal file
0
src/AUTHORS
Normal file
0
src/ChangeLog
Normal file
0
src/ChangeLog
Normal file
17
src/Client/DefScript/Makefile.am
Normal file
17
src/Client/DefScript/Makefile.am
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = libdefscript.a
|
||||||
|
libdefscript_a_SOURCES =DefScriptBBFunctions.cpp\
|
||||||
|
DefScriptFileFunctions.cpp\
|
||||||
|
DefScriptListFunctions.cpp\
|
||||||
|
DynamicEvent.cpp\
|
||||||
|
DefScript.cpp\
|
||||||
|
DefScriptFunctions.cpp\
|
||||||
|
DefScriptTools.cpp\
|
||||||
|
VarSet.cpp
|
||||||
|
|
||||||
|
libdefscript_a_LIBADD = $(top_builddir)/shared/libshared.a $(top_builddir)/shared/Auth/libauth.a $(top_builddir)/shared/Network/libnetwork.a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
15
src/Client/GUI/Makefile.am
Normal file
15
src/Client/GUI/Makefile.am
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = libgui.a
|
||||||
|
libgui_a_SOURCES =CCursorController.cpp DrawObject.cpp MInput.h Scene.h SImage.h\
|
||||||
|
CCursorController.h DrawObject.h PseuGUI.cpp SceneLogin.cpp TlTMesh.h\
|
||||||
|
CImageLoaderBLP.cpp DrawObjMgr.cpp PseuGUI.h SceneWorld.cpp TlTSector.h\
|
||||||
|
CImageLoaderBLP.h DrawObjMgr.h Scene.cpp ShTlTerrainSceneNode.cpp\
|
||||||
|
CM2MeshFileLoader.cpp SceneData.h ShTlTerrainSceneNode.h\
|
||||||
|
CM2MeshFileLoader.h MCamera.h SceneGuiStart.cpp SImage.cpp
|
||||||
|
|
||||||
|
libgui_a_LIBADD = $(top_builddir)/shared/libshared.a $(top_builddir)/shared/Auth/libauth.a $(top_builddir)/shared/Network/libnetwork.a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
22
src/Client/Makefile.am
Normal file
22
src/Client/Makefile.am
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
SUBDIRS = DefScript Realm World GUI
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
bin_PROGRAMS = pseuwow
|
||||||
|
pseuwow_SOURCES = Cli.cpp\
|
||||||
|
DefScriptInterface.cpp\
|
||||||
|
MemoryDataHolder.cpp\
|
||||||
|
RemoteController.cpp\
|
||||||
|
ControlSocket.cpp\
|
||||||
|
main.cpp\
|
||||||
|
PseuWoW.cpp\
|
||||||
|
SCPDatabase.cpp\
|
||||||
|
Realm/RealmSession.cpp\
|
||||||
|
Realm/RealmSocket.cpp\
|
||||||
|
World/WorldSocket.cpp\
|
||||||
|
World/UpdateData.cpp\
|
||||||
|
World/MapMgr.cpp
|
||||||
|
|
||||||
|
|
||||||
|
pseuwow_LDADD = ../shared/libshared.a ../shared/Auth/libauth.a ../shared/Network/libnetwork.a DefScript/libdefscript.a World/libworld.a GUI/libgui.a
|
||||||
|
pseuwow_LDFLAGS =-pthread
|
||||||
8
src/Client/Realm/Makefile.am
Normal file
8
src/Client/Realm/Makefile.am
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = librealm.a
|
||||||
|
librealm_a_SOURCES =RealmSession.cpp RealmSession.h RealmSocket.cpp RealmSocket.h
|
||||||
|
librealm_a_LIBADD = $(top_builddir)/shared/libshared.a $(top_builddir)/shared/Auth/libauth.a $(top_builddir)/shared/Network/libnetwork.a
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
inline char *gettypename(uint32 ty)
|
inline char *gettypename(uint32 ty)
|
||||||
{
|
{
|
||||||
return (ty==0 ? "INT" : (ty==1 ? "FLOAT" : "STRING"));
|
return (char*)(ty==0 ? "INT" : (ty==1 ? "FLOAT" : "STRING"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// file-globally declared pointer holder. NOT multi-instance-safe for now!!
|
// file-globally declared pointer holder. NOT multi-instance-safe for now!!
|
||||||
|
|||||||
@ -41,7 +41,7 @@ public:
|
|||||||
// access funcs
|
// access funcs
|
||||||
void *GetPtr(uint32 index, char *entry);
|
void *GetPtr(uint32 index, char *entry);
|
||||||
void *GetPtrByField(uint32 index, uint32 entry);
|
void *GetPtrByField(uint32 index, uint32 entry);
|
||||||
inline char *GetStringByOffset(uint32 offs) { return (offs < _stringsize ? _stringbuf + offs : ""); }
|
inline char *GetStringByOffset(uint32 offs) { return (char*)(offs < _stringsize ? _stringbuf + offs : ""); }
|
||||||
inline char *GetString(uint32 index, char *entry) { return GetStringByOffset(GetUint32(index,entry)); }
|
inline char *GetString(uint32 index, char *entry) { return GetStringByOffset(GetUint32(index,entry)); }
|
||||||
inline char *GetString(uint32 index, uint32 entry) { return GetStringByOffset(GetUint32(index,entry)); }
|
inline char *GetString(uint32 index, uint32 entry) { return GetStringByOffset(GetUint32(index,entry)); }
|
||||||
inline uint32 GetUint32(uint32 index, char *entry) { uint32 *t = (uint32*)GetPtr(index,entry); return t ? *t : 0; }
|
inline uint32 GetUint32(uint32 index, char *entry) { uint32 *t = (uint32*)GetPtr(index,entry); return t ? *t : 0; }
|
||||||
|
|||||||
18
src/Client/World/Makefile.am
Normal file
18
src/Client/World/Makefile.am
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = libworld.a
|
||||||
|
libworld_a_SOURCES =Bag.cpp DynamicObject.cpp MovementMgr.cpp Player.cpp World.cpp\
|
||||||
|
Bag.h DynamicObject.h MovementMgr.h Player.h World.h\
|
||||||
|
CacheHandler.cpp GameObject.cpp Object.cpp SharedDefines.h WorldPacket.cpp\
|
||||||
|
CacheHandler.h GameObject.h ObjectDefines.h Unit.cpp WorldPacket.h\
|
||||||
|
Channel.cpp Item.cpp Object.h Unit.h WorldSession.cpp\
|
||||||
|
Channel.h Item.h ObjMgr.cpp UpdateData.cpp WorldSession.h\
|
||||||
|
CMSGConstructor.cpp ObjMgr.h UpdateData.h WorldSocket.cpp\
|
||||||
|
Corpse.cpp MapMgr.cpp Opcodes.cpp UpdateFields.h WorldSocket.h\
|
||||||
|
Corpse.h MapMgr.h Opcodes.h UpdateMask.h
|
||||||
|
|
||||||
|
libworld_a_LIBADD = ../../shared/libshared.a ../../shared/Auth/libauth.a ../../shared/Network/libnetwork.a
|
||||||
|
libworld_a_LIBFLAGS = -pthread
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include "Item.h"
|
#include "Item.h"
|
||||||
#include "Unit.h"
|
#include "Unit.h"
|
||||||
#include "Gameobject.h"
|
#include "GameObject.h"
|
||||||
|
|
||||||
typedef std::map<uint32,ItemProto*> ItemProtoMap;
|
typedef std::map<uint32,ItemProto*> ItemProtoMap;
|
||||||
typedef std::map<uint32,CreatureTemplate*> CreatureTemplateMap;
|
typedef std::map<uint32,CreatureTemplate*> CreatureTemplateMap;
|
||||||
|
|||||||
4
src/Makefile.am
Normal file
4
src/Makefile.am
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
## Makefile.am - process this file with automake
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
SUBDIRS = shared Client
|
||||||
|
## End Makefile.am
|
||||||
0
src/README
Normal file
0
src/README
Normal file
75
src/configure.ac
Normal file
75
src/configure.ac
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# -*- Autoconf -*-
|
||||||
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
|
AC_PREREQ(2.61)
|
||||||
|
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
|
||||||
|
AM_INIT_AUTOMAKE(pseuwow, 0.1)
|
||||||
|
#AC_CONFIG_SRCDIR([shared/ProgressBar.h])
|
||||||
|
AM_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
|
# Checks for programs.
|
||||||
|
AC_PROG_CXX
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
AC_PROG_LN_S
|
||||||
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
|
# Checks for libraries.
|
||||||
|
AC_CHECK_LIB([Xxf86vm], [main])
|
||||||
|
AC_CHECK_LIB([GL], [main])
|
||||||
|
AC_CHECK_LIB([GLU], [main])
|
||||||
|
AC_CHECK_LIB([Irrlicht], [main])
|
||||||
|
AC_CHECK_LIB([ssl], [main])
|
||||||
|
AC_CHECK_LIB([crypto], [main])
|
||||||
|
AC_CHECK_LIB([ZThread], [main])
|
||||||
|
|
||||||
|
# Checks for header files.
|
||||||
|
AC_PATH_X
|
||||||
|
AC_HEADER_DIRENT
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h inttypes.h limits.h malloc.h memory.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h sys/timeb.h unistd.h utime.h wchar.h])
|
||||||
|
|
||||||
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_HEADER_STDBOOL
|
||||||
|
AC_C_CONST
|
||||||
|
AC_C_INLINE
|
||||||
|
AC_TYPE_INT32_T
|
||||||
|
AC_TYPE_INT64_T
|
||||||
|
AC_TYPE_SIZE_T
|
||||||
|
AC_TYPE_SSIZE_T
|
||||||
|
AC_HEADER_TIME
|
||||||
|
AC_STRUCT_TM
|
||||||
|
AC_TYPE_UINT16_T
|
||||||
|
AC_TYPE_UINT32_T
|
||||||
|
AC_TYPE_UINT64_T
|
||||||
|
AC_C_VOLATILE
|
||||||
|
AC_CHECK_TYPES([ptrdiff_t])
|
||||||
|
|
||||||
|
# Checks for library functions.
|
||||||
|
AC_FUNC_CHOWN
|
||||||
|
AC_FUNC_CLOSEDIR_VOID
|
||||||
|
AC_FUNC_ERROR_AT_LINE
|
||||||
|
AC_FUNC_MALLOC
|
||||||
|
AC_FUNC_MEMCMP
|
||||||
|
AC_FUNC_SELECT_ARGTYPES
|
||||||
|
AC_TYPE_SIGNAL
|
||||||
|
AC_FUNC_STAT
|
||||||
|
AC_FUNC_UTIME_NULL
|
||||||
|
AC_FUNC_VPRINTF
|
||||||
|
AC_CHECK_FUNCS([floor ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname gettimeofday memmove memset mkdir pow realpath select socket sqrt strerror strrchr strstr strtol strtoul uname utime])
|
||||||
|
|
||||||
|
#AC_CONFIG_FILES([dep/src/irrlicht/Makefile
|
||||||
|
# dep/src/zlib/Makefile
|
||||||
|
# dep/src/zthread/Makefile])
|
||||||
|
#AC_CONFIG_SUBDIRS([dep/src/irrlicht/jpeglib
|
||||||
|
# dep/src/irrlicht/libpng])
|
||||||
|
AC_CONFIG_FILES([Makefile
|
||||||
|
shared/Makefile
|
||||||
|
shared/Auth/Makefile
|
||||||
|
shared/Network/Makefile
|
||||||
|
Client/Makefile
|
||||||
|
Client/GUI/Makefile
|
||||||
|
Client/Realm/Makefile
|
||||||
|
Client/World/Makefile
|
||||||
|
Client/DefScript/Makefile])
|
||||||
|
AC_OUTPUT
|
||||||
5
src/shared/Auth/Makefile.am
Normal file
5
src/shared/Auth/Makefile.am
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = libauth.a
|
||||||
|
libauth_a_SOURCES = AuthCrypt.cpp BigNumber.cpp md5.c Sha1.cpp
|
||||||
10
src/shared/Makefile.am
Normal file
10
src/shared/Makefile.am
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
SUBDIRS = Auth Network
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = libshared.a
|
||||||
|
libshared_a_SOURCES = ADTFile.cpp common.h log.h MapTile.h tools.cpp Widen.h\
|
||||||
|
ADTFile.h DebugStuff.h ProgressBar.cpp tools.h ZCompressor.cpp\
|
||||||
|
ADTFileStructs.h libshared.a ProgressBar.h WDTFile.cpp ZCompressor.h\
|
||||||
|
ByteBuffer.h log.cpp MapTile.cpp SysDefs.h WDTFile.h
|
||||||
|
|
||||||
5
src/shared/Network/Makefile.am
Normal file
5
src/shared/Network/Makefile.am
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/Client -I$(top_builddir)/shared -I$(top_builddir)/Client/DefScript -I$(top_builddir)/Client/World -I$(top_builddir)/Client/Realm -Wall
|
||||||
|
## Build pseuwow
|
||||||
|
noinst_LIBRARIES = libnetwork.a
|
||||||
|
libnetwork_a_SOURCES =Base64.cpp PoolSocket.cpp Socket.cpp SocketThread.cpp Thread.cpp CircularBuffer.cpp ResolvServer.cpp SocketHandler.cpp StdoutLog.cpp UdpSocket.cpp Parse.cpp ResolvSocket.cpp socket_include.cpp TcpSocket.cpp Utility.cpp
|
||||||
@ -1,5 +1,9 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#if PLATFORM == PLATFORM_UNIX
|
||||||
|
#include "zlib.h"
|
||||||
|
#else
|
||||||
#include "zlib/zlib.h"
|
#include "zlib/zlib.h"
|
||||||
|
#endif
|
||||||
#include "ZCompressor.h"
|
#include "ZCompressor.h"
|
||||||
|
|
||||||
ZCompressor::ZCompressor()
|
ZCompressor::ZCompressor()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user