Rewrote build system to work on MacOS X.
This commit is contained in:
parent
93367aa0ad
commit
ac1b3ada9f
93
Makefile.am
93
Makefile.am
|
@ -1,29 +1,86 @@
|
||||||
lib_LTLIBRARIES = libphysfs.la
|
lib_LTLIBRARIES = libphysfs.la
|
||||||
|
|
||||||
SUBDIRS = platform archivers zlib114 . test extras
|
#SUBDIRS = platform archivers zlib114 . test extras
|
||||||
|
|
||||||
|
ZLIB_FILES = zlib114/adler32.c \
|
||||||
|
zlib114/compress.c \
|
||||||
|
zlib114/crc32.c \
|
||||||
|
zlib114/deflate.c \
|
||||||
|
zlib114/deflate.h \
|
||||||
|
zlib114/infblock.c \
|
||||||
|
zlib114/infblock.h \
|
||||||
|
zlib114/infcodes.c \
|
||||||
|
zlib114/infcodes.h \
|
||||||
|
zlib114/inffast.c \
|
||||||
|
zlib114/inffast.h \
|
||||||
|
zlib114/inffixed.h \
|
||||||
|
zlib114/inflate.c \
|
||||||
|
zlib114/inftrees.c \
|
||||||
|
zlib114/inftrees.h \
|
||||||
|
zlib114/infutil.c \
|
||||||
|
zlib114/infutil.h \
|
||||||
|
zlib114/trees.c \
|
||||||
|
zlib114/trees.h \
|
||||||
|
zlib114/uncompr.c \
|
||||||
|
zlib114/zconf.h \
|
||||||
|
zlib114/zlib.h \
|
||||||
|
zlib114/zutil.c \
|
||||||
|
zlib114/zutil.h
|
||||||
|
|
||||||
|
|
||||||
|
if BUILD_ZLIB
|
||||||
|
ZLIB_SRC = $(ZLIB_FILES)
|
||||||
|
ZLIB_INC = -I$(top_srcdir)/zlib114
|
||||||
|
ZLIB_EXTRADIST =
|
||||||
|
else
|
||||||
|
ZLIB_SRC =
|
||||||
|
ZLIB_INC =
|
||||||
|
ZLIB_EXTRADIST = $(ZLIB_FILES)
|
||||||
|
endif
|
||||||
|
|
||||||
|
if BUILD_BEOS_CPP
|
||||||
|
BEOS_SRC = platform/beos.cpp
|
||||||
|
BEOS_EXTRADIST =
|
||||||
|
else
|
||||||
|
BEOS_SRC =
|
||||||
|
BEOS_EXTRADIST = platform/beos.cpp
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
libphysfsincludedir = $(includedir)
|
libphysfsincludedir = $(includedir)
|
||||||
libphysfsinclude_HEADERS = \
|
libphysfsinclude_HEADERS = \
|
||||||
physfs.h
|
physfs.h
|
||||||
|
|
||||||
libphysfs_la_SOURCES = \
|
libphysfs_la_SOURCES = \
|
||||||
physfs.c \
|
physfs.c \
|
||||||
physfs_internal.h \
|
physfs_internal.h \
|
||||||
physfs_byteorder.c
|
physfs_byteorder.c \
|
||||||
|
archivers/dir.c \
|
||||||
|
archivers/grp.c \
|
||||||
|
archivers/zip.c \
|
||||||
|
archivers/unzip.c \
|
||||||
|
archivers/unzip.h \
|
||||||
|
platform/unix.c \
|
||||||
|
platform/posix.c \
|
||||||
|
$(ZLIB_SRC) $(BEOS_SRC)
|
||||||
|
|
||||||
if BUILD_ZLIB
|
libphysfs_la_INCLUDES = $(ZLIB_INC)
|
||||||
ZLIB_LIB = zlib114/libz.la
|
|
||||||
else
|
|
||||||
ZLIB_LIB =
|
|
||||||
endif
|
|
||||||
|
|
||||||
libphysfs_la_LDFLAGS = \
|
libphysfs_la_LDFLAGS = \
|
||||||
-release $(LT_RELEASE) \
|
-release $(LT_RELEASE) \
|
||||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||||
libphysfs_la_LIBADD = \
|
|
||||||
archivers/libarchivers.la \
|
|
||||||
platform/libplatform.la \
|
if BUILD_TEST_PHYSFS
|
||||||
$(ZLIB_LIB)
|
bin_PROGRAMS = test_physfs
|
||||||
|
test_physfs_INCLUDES = -I$(top_srcdir)
|
||||||
|
test_physfs_LDADD = $(top_srcdir)/libphysfs.la
|
||||||
|
test_physfs_SOURCES = test/test_physfs.c
|
||||||
|
TEST_EXTRADIST =
|
||||||
|
else
|
||||||
|
TEST_EXTRADIST = test/test_physfs.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
CREDITS \
|
CREDITS \
|
||||||
|
@ -35,8 +92,18 @@ EXTRA_DIST = \
|
||||||
CWProjects.sit \
|
CWProjects.sit \
|
||||||
physfs.dsp \
|
physfs.dsp \
|
||||||
test_physfs.dsp \
|
test_physfs.dsp \
|
||||||
docs
|
platform/skeleton.c \
|
||||||
|
platform/macclassic.c \
|
||||||
|
platform/win32.c \
|
||||||
|
docs \
|
||||||
|
extras/physfsrwops.h \
|
||||||
|
extras/physfsrwops.c \
|
||||||
|
extras/physfshttpd.c \
|
||||||
|
$(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
|
||||||
|
|
||||||
dist-hook:
|
dist-hook:
|
||||||
rm -rf $(distdir)/docs/*
|
rm -rf $(distdir)/docs/*
|
||||||
|
echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
|
||||||
|
echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
|
||||||
|
echo >> $(distdir)/docs/README
|
||||||
|
|
||||||
|
|
|
@ -219,10 +219,5 @@ AM_CONDITIONAL(BUILD_BEOS_CPP, test x$this_is_beos = xyes)
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
platform/Makefile
|
|
||||||
archivers/Makefile
|
|
||||||
test/Makefile
|
|
||||||
zlib114/Makefile
|
|
||||||
extras/Makefile
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue