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