diff --git a/contrib/Makefile.am b/contrib/Makefile.am deleted file mode 100644 index d39f2caa8..000000000 --- a/contrib/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2005-2009 MaNGOS -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -## Process this file with automake to produce Makefile.in - -## Sub-directories to parse -SUBDIRS = extractor - -## Additional files to include when running 'make dist' -# Nothing yet. diff --git a/contrib/extractor/CMakeLists.txt b/contrib/extractor/CMakeLists.txt new file mode 100644 index 000000000..a00dda120 --- /dev/null +++ b/contrib/extractor/CMakeLists.txt @@ -0,0 +1,21 @@ +# Copyright (C) 2005-2009 MaNGOS project +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +cmake_minimum_required (VERSION 2.6) +project (MANGOS_MAP_EXTRACTOR) + +add_subdirectory (libmpq) + +include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) +link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) + +add_executable (ad adt.cpp dbcfile.cpp mpq_libmpq.cpp System.cpp) + +target_link_libraries (ad libmpq) diff --git a/contrib/extractor/Makefile.am b/contrib/extractor/Makefile.am deleted file mode 100644 index b84617069..000000000 --- a/contrib/extractor/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -# The top-level input Makefile for mpq-tools - -# Any directories which should be built and installed. -SUBDIRS = libmpq - -# The directories which are part of the distribution. -DIST_SUBDIRS = $(SUBDIRS) - -EXTRA_DIST = \ - README.linux diff --git a/contrib/extractor/README.linux b/contrib/extractor/README.linux index e1ebdb8bb..1986831e7 100644 --- a/contrib/extractor/README.linux +++ b/contrib/extractor/README.linux @@ -1,13 +1,7 @@ Linux instructions ------------------ -1. Configure and build MaNGOS. -2. cd contrib/map_extractor/libmpq/ +1. install cmake +2. cmake -i 3. make -4. cd .. -5. make -6. run ad - -if there are any problems create folder named .deps in contrib/map_extractor/ -it is old bug from first extractor and i am too lasy to fix it :) - +4. ./ad diff --git a/contrib/extractor/libmpq/CMakeLists.txt b/contrib/extractor/libmpq/CMakeLists.txt new file mode 100644 index 000000000..c00120c6e --- /dev/null +++ b/contrib/extractor/libmpq/CMakeLists.txt @@ -0,0 +1,13 @@ +# Copyright (C) 2005-2009 MaNGOS project +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +add_library (libmpq common.cpp explode.cpp extract.cpp huffman.cpp mpq.cpp parser.cpp wave.cpp ) +# link libmpq with zlib +target_link_libraries (libmpq z) diff --git a/contrib/extractor/libmpq/Makefile.am b/contrib/extractor/libmpq/Makefile.am deleted file mode 100644 index 192bd1369..000000000 --- a/contrib/extractor/libmpq/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# The input Makefile for the main mpq-tools - -lib_LTLIBRARIES = libmpq.la -noinst_HEADERS = explode.h huffman.h wave.h common.h - -# The directory where the include files will be installed. -libmpq_includedir = $(includedir)/libmpq - -# Which header files to install. -libmpq_include_HEADERS = mpq.h - -libmpq_la_SOURCES = $(GENERAL_SRCS) -libmpq_la_LDFLAGS = -release $(LIBMPQ_VERSION) -libmpq_la_LIBADD = @Z_LIBS@ - -GENERAL_SRCS = \ - common.c \ - huffman.c \ - extract.c \ - explode.c \ - mpq.c \ - parser.c \ - wave.c diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e9dd89330..15372a7cd 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7097" + #define REVISION_NR "7098" #endif // __REVISION_NR_H__