Makefile.am.newautomake
author Ryan C. Gordon <icculus@icculus.org>
Sat, 27 Jul 2002 06:28:45 +0000
changeset 409 3b9db2a124e4
parent 350 ec1e75681b4b
child 453 108de3bb1b6b
permissions -rw-r--r--
Added platform/os2.c to build system.
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
libphysfs_la_SOURCES =	\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    46
	physfs.c	        \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    47
	physfs_internal.h	\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    48
	physfs_byteorder.c  \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    49
	archivers/dir.c		\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    50
	archivers/grp.c		\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    51
	archivers/zip.c		\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    52
	platform/unix.c     \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    53
	platform/posix.c    \
307
babb5487b60a More build stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 306
diff changeset
    54
    $(ZLIB_SRC)
300
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    55
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    56
libphysfs_la_INCLUDES = $(ZLIB_INC)
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    57
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    58
libphysfs_la_LDFLAGS = 		\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    59
	-release $(LT_RELEASE)	\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    60
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    61
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
if BUILD_TEST_PHYSFS
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    64
bin_PROGRAMS = test_physfs
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    65
test_physfs_INCLUDES = -I$(top_srcdir)
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    66
test_physfs_LDADD = $(top_srcdir)/libphysfs.la
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    67
test_physfs_SOURCES = test/test_physfs.c
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    68
TEST_EXTRADIST =
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    69
else
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    70
TEST_EXTRADIST = test/test_physfs.c
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    71
endif
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
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    74
EXTRA_DIST =	\
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    75
	CREDITS \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    76
	LICENSE \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    77
	CHANGELOG \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    78
	INSTALL \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    79
	TODO \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    80
	Doxyfile \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    81
	CWProjects.sit \
350
ec1e75681b4b Added physfs.spec to distribution.
Ryan C. Gordon <icculus@icculus.org>
parents: 337
diff changeset
    82
	physfs.spec \
300
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    83
	physfs.dsp \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    84
	test_physfs.dsp \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    85
	platform/skeleton.c    \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    86
	platform/macclassic.c  \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    87
	platform/win32.c       \
307
babb5487b60a More build stuff.
Ryan C. Gordon <icculus@icculus.org>
parents: 306
diff changeset
    88
	platform/beos.cpp      \
409
3b9db2a124e4 Added platform/os2.c to build system.
Ryan C. Gordon <icculus@icculus.org>
parents: 350
diff changeset
    89
	platform/os2.c         \
300
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    90
    extras/physfsrwops.h   \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    91
    extras/physfsrwops.c   \
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    92
    extras/physfshttpd.c   \
303
Ryan C. Gordon <icculus@icculus.org>
parents: 300
diff changeset
    93
	Makefile.am.oldautomake \
Ryan C. Gordon <icculus@icculus.org>
parents: 300
diff changeset
    94
	Makefile.am.newautomake \
409
3b9db2a124e4 Added platform/os2.c to build system.
Ryan C. Gordon <icculus@icculus.org>
parents: 350
diff changeset
    95
    makeos2.cmd             \
306
580c6753c23a Blargh.
Ryan C. Gordon <icculus@icculus.org>
parents: 305
diff changeset
    96
    $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
300
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    97
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    98
else
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
    99
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
   100
SUBDIRS = platform archivers zlib114 . test extras
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
   101
298
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   102
libphysfs_la_SOURCES =	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   103
	physfs.c	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   104
	physfs_internal.h	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   105
	physfs_byteorder.c
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   106
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   107
if BUILD_ZLIB
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   108
ZLIB_LIB = zlib114/libz.la
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   109
else
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   110
ZLIB_LIB =
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   111
endif
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   112
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   113
libphysfs_la_LDFLAGS = 		\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   114
	-release $(LT_RELEASE)	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   115
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   116
libphysfs_la_LIBADD =	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   117
	archivers/libarchivers.la	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   118
	platform/libplatform.la	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   119
	$(ZLIB_LIB)
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   120
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   121
EXTRA_DIST =	\
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   122
	CREDITS \
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   123
	LICENSE \
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   124
	CHANGELOG \
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   125
	INSTALL \
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   126
	TODO \
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   127
	Doxyfile \
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   128
	CWProjects.sit \
350
ec1e75681b4b Added physfs.spec to distribution.
Ryan C. Gordon <icculus@icculus.org>
parents: 337
diff changeset
   129
	physfs.spec \
298
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   130
	physfs.dsp \
409
3b9db2a124e4 Added platform/os2.c to build system.
Ryan C. Gordon <icculus@icculus.org>
parents: 350
diff changeset
   131
	test_physfs.dsp \
3b9db2a124e4 Added platform/os2.c to build system.
Ryan C. Gordon <icculus@icculus.org>
parents: 350
diff changeset
   132
	makeos2.cmd
298
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   133
300
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
   134
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
   135
endif
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
   136
303
Ryan C. Gordon <icculus@icculus.org>
parents: 300
diff changeset
   137
298
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   138
dist-hook:
303
Ryan C. Gordon <icculus@icculus.org>
parents: 300
diff changeset
   139
	mkdir $(distdir)/docs
300
44170fd5ea40 Blah...wrong file before.
Ryan C. Gordon <icculus@icculus.org>
parents: 298
diff changeset
   140
	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
   141
	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
   142
	echo >> $(distdir)/docs/README
298
c8bc73868cf9 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   143