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