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