Makefile.am
changeset 285 6e4b9538d99c
parent 282 3d213c035cb1
child 296 32658d27c62f
equal deleted inserted replaced
284:74608f69e219 285:6e4b9538d99c
     1 lib_LTLIBRARIES = libphysfs.la
     1 lib_LTLIBRARIES = libphysfs.la
     2 
     2 
     3 SUBDIRS = platform archivers zlib114 . test extras
     3 #SUBDIRS = platform archivers zlib114 . test extras
       
     4 
       
     5 ZLIB_FILES = zlib114/adler32.c		\
       
     6              zlib114/compress.c		\
       
     7              zlib114/crc32.c		\
       
     8              zlib114/deflate.c		\
       
     9              zlib114/deflate.h		\
       
    10              zlib114/infblock.c		\
       
    11              zlib114/infblock.h		\
       
    12              zlib114/infcodes.c		\
       
    13              zlib114/infcodes.h		\
       
    14              zlib114/inffast.c		\
       
    15              zlib114/inffast.h		\
       
    16              zlib114/inffixed.h		\
       
    17              zlib114/inflate.c		\
       
    18              zlib114/inftrees.c		\
       
    19              zlib114/inftrees.h		\
       
    20              zlib114/infutil.c		\
       
    21              zlib114/infutil.h		\
       
    22              zlib114/trees.c		\
       
    23              zlib114/trees.h		\
       
    24              zlib114/uncompr.c		\
       
    25              zlib114/zconf.h		\
       
    26              zlib114/zlib.h			\
       
    27              zlib114/zutil.c		\
       
    28              zlib114/zutil.h
       
    29 
       
    30 
       
    31 if BUILD_ZLIB
       
    32   ZLIB_SRC = $(ZLIB_FILES)
       
    33   ZLIB_INC = -I$(top_srcdir)/zlib114
       
    34   ZLIB_EXTRADIST =
       
    35 else
       
    36   ZLIB_SRC =
       
    37   ZLIB_INC =
       
    38   ZLIB_EXTRADIST = $(ZLIB_FILES)
       
    39 endif
       
    40 
       
    41 if BUILD_BEOS_CPP
       
    42   BEOS_SRC = platform/beos.cpp
       
    43   BEOS_EXTRADIST =
       
    44 else
       
    45   BEOS_SRC =
       
    46   BEOS_EXTRADIST = platform/beos.cpp
       
    47 endif
       
    48 
     4 
    49 
     5 libphysfsincludedir = $(includedir)
    50 libphysfsincludedir = $(includedir)
     6 libphysfsinclude_HEADERS =	\
    51 libphysfsinclude_HEADERS =	\
     7 	physfs.h
    52 	physfs.h
     8 
    53 
     9 libphysfs_la_SOURCES =	\
    54 libphysfs_la_SOURCES =	\
    10 	physfs.c	\
    55 	physfs.c	        \
    11 	physfs_internal.h	\
    56 	physfs_internal.h	\
    12 	physfs_byteorder.c
    57 	physfs_byteorder.c  \
       
    58 	archivers/dir.c		\
       
    59 	archivers/grp.c		\
       
    60 	archivers/zip.c		\
       
    61 	archivers/unzip.c   \
       
    62 	archivers/unzip.h   \
       
    63 	platform/unix.c     \
       
    64 	platform/posix.c    \
       
    65     $(ZLIB_SRC) $(BEOS_SRC)
    13 
    66 
    14 if BUILD_ZLIB
    67 libphysfs_la_INCLUDES = $(ZLIB_INC)
    15 ZLIB_LIB = zlib114/libz.la
       
    16 else
       
    17 ZLIB_LIB =
       
    18 endif
       
    19 
    68 
    20 libphysfs_la_LDFLAGS = 		\
    69 libphysfs_la_LDFLAGS = 		\
    21 	-release $(LT_RELEASE)	\
    70 	-release $(LT_RELEASE)	\
    22 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    71 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    23 libphysfs_la_LIBADD =	\
    72 
    24 	archivers/libarchivers.la	\
    73 
    25 	platform/libplatform.la	\
    74 if BUILD_TEST_PHYSFS
    26 	$(ZLIB_LIB)
    75 bin_PROGRAMS = test_physfs
       
    76 test_physfs_INCLUDES = -I$(top_srcdir)
       
    77 test_physfs_LDADD = $(top_srcdir)/libphysfs.la
       
    78 test_physfs_SOURCES = test/test_physfs.c
       
    79 TEST_EXTRADIST =
       
    80 else
       
    81 TEST_EXTRADIST = test/test_physfs.c
       
    82 endif
       
    83 
    27 
    84 
    28 EXTRA_DIST =	\
    85 EXTRA_DIST =	\
    29 	CREDITS \
    86 	CREDITS \
    30 	LICENSE \
    87 	LICENSE \
    31 	CHANGELOG \
    88 	CHANGELOG \
    33 	TODO \
    90 	TODO \
    34 	Doxyfile \
    91 	Doxyfile \
    35 	CWProjects.sit \
    92 	CWProjects.sit \
    36 	physfs.dsp \
    93 	physfs.dsp \
    37 	test_physfs.dsp \
    94 	test_physfs.dsp \
    38     docs
    95 	platform/skeleton.c    \
       
    96 	platform/macclassic.c  \
       
    97 	platform/win32.c       \
       
    98     docs                   \
       
    99     extras/physfsrwops.h   \
       
   100     extras/physfsrwops.c   \
       
   101     extras/physfshttpd.c   \
       
   102     $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
    39 
   103 
    40 dist-hook:
   104 dist-hook:
    41 	rm -rf $(distdir)/docs/*
   105 	rm -rf $(distdir)/docs/*
       
   106 	echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
       
   107 	echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
       
   108 	echo >> $(distdir)/docs/README
    42 
   109