Makefile.am
author Ryan C. Gordon <icculus@icculus.org>
Fri, 14 Jun 2002 21:11:05 +0000
changeset 285 6e4b9538d99c
parent 282 3d213c035cb1
child 296 32658d27c62f
permissions -rw-r--r--
Rewrote build system to work on MacOS X.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
lib_LTLIBRARIES = libphysfs.la
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     3
#SUBDIRS = platform archivers zlib114 . test extras
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     4
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     5
ZLIB_FILES = zlib114/adler32.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     6
             zlib114/compress.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     7
             zlib114/crc32.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     8
             zlib114/deflate.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
     9
             zlib114/deflate.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    10
             zlib114/infblock.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    11
             zlib114/infblock.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    12
             zlib114/infcodes.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    13
             zlib114/infcodes.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    14
             zlib114/inffast.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    15
             zlib114/inffast.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    16
             zlib114/inffixed.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    17
             zlib114/inflate.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    18
             zlib114/inftrees.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    19
             zlib114/inftrees.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    20
             zlib114/infutil.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    21
             zlib114/infutil.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    22
             zlib114/trees.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    23
             zlib114/trees.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    24
             zlib114/uncompr.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    25
             zlib114/zconf.h		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    26
             zlib114/zlib.h			\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    27
             zlib114/zutil.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    28
             zlib114/zutil.h
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    29
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    30
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    31
if BUILD_ZLIB
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    32
  ZLIB_SRC = $(ZLIB_FILES)
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    33
  ZLIB_INC = -I$(top_srcdir)/zlib114
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    34
  ZLIB_EXTRADIST =
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    35
else
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    36
  ZLIB_SRC =
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    37
  ZLIB_INC =
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    38
  ZLIB_EXTRADIST = $(ZLIB_FILES)
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    39
endif
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    40
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    41
if BUILD_BEOS_CPP
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    42
  BEOS_SRC = platform/beos.cpp
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    43
  BEOS_EXTRADIST =
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    44
else
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    45
  BEOS_SRC =
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    46
  BEOS_EXTRADIST = platform/beos.cpp
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    47
endif
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    48
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    49
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    50
libphysfsincludedir = $(includedir)
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    51
libphysfsinclude_HEADERS =	\
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    52
	physfs.h
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    53
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    54
libphysfs_la_SOURCES =	\
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    55
	physfs.c	        \
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    56
	physfs_internal.h	\
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    57
	physfs_byteorder.c  \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    58
	archivers/dir.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    59
	archivers/grp.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    60
	archivers/zip.c		\
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    61
	archivers/unzip.c   \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    62
	archivers/unzip.h   \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    63
	platform/unix.c     \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    64
	platform/posix.c    \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    65
    $(ZLIB_SRC) $(BEOS_SRC)
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    66
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    67
libphysfs_la_INCLUDES = $(ZLIB_INC)
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    68
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    69
libphysfs_la_LDFLAGS = 		\
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    70
	-release $(LT_RELEASE)	\
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    71
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    72
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    73
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    74
if BUILD_TEST_PHYSFS
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    75
bin_PROGRAMS = test_physfs
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    76
test_physfs_INCLUDES = -I$(top_srcdir)
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    77
test_physfs_LDADD = $(top_srcdir)/libphysfs.la
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    78
test_physfs_SOURCES = test/test_physfs.c
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    79
TEST_EXTRADIST =
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    80
else
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    81
TEST_EXTRADIST = test/test_physfs.c
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    82
endif
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    83
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    84
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    85
EXTRA_DIST =	\
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    86
	CREDITS \
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    87
	LICENSE \
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    88
	CHANGELOG \
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    89
	INSTALL \
263
4deea02e4822 Doc stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 231
diff changeset
    90
	TODO \
4deea02e4822 Doc stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 231
diff changeset
    91
	Doxyfile \
282
3d213c035cb1 Added VS6.0 and CW project files to dist.
Ryan C. Gordon <icculus@icculus.org>
parents: 270
diff changeset
    92
	CWProjects.sit \
3d213c035cb1 Added VS6.0 and CW project files to dist.
Ryan C. Gordon <icculus@icculus.org>
parents: 270
diff changeset
    93
	physfs.dsp \
3d213c035cb1 Added VS6.0 and CW project files to dist.
Ryan C. Gordon <icculus@icculus.org>
parents: 270
diff changeset
    94
	test_physfs.dsp \
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    95
	platform/skeleton.c    \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    96
	platform/macclassic.c  \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    97
	platform/win32.c       \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    98
    docs                   \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
    99
    extras/physfsrwops.h   \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
   100
    extras/physfsrwops.c   \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
   101
    extras/physfshttpd.c   \
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
   102
    $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
263
4deea02e4822 Doc stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 231
diff changeset
   103
4deea02e4822 Doc stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 231
diff changeset
   104
dist-hook:
270
7c4b391d577e Clean out docs/ dir before packing.
Ryan C. Gordon <icculus@icculus.org>
parents: 263
diff changeset
   105
	rm -rf $(distdir)/docs/*
285
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
   106
	echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
   107
	echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
6e4b9538d99c Rewrote build system to work on MacOS X.
Ryan C. Gordon <icculus@icculus.org>
parents: 282
diff changeset
   108
	echo >> $(distdir)/docs/README
263
4deea02e4822 Doc stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 231
diff changeset
   109