/
Makefile.am.newautomake
158 lines (135 loc) · 3.33 KB
1
2
3
4
5
6
lib_LTLIBRARIES = libphysfs.la
libphysfsincludedir = $(includedir)
libphysfsinclude_HEADERS = \
physfs.h
7
8
if BUILD_MACOSX
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ZLIB_FILES = zlib123/adler32.c \
zlib123/compress.c \
zlib123/crc32.c \
zlib123/crc32.h \
zlib123/deflate.c \
zlib123/deflate.h \
zlib123/gzio.c \
zlib123/infback.c \
zlib123/inffast.c \
zlib123/inffast.h \
zlib123/inffixed.h \
zlib123/inflate.c \
zlib123/inflate.h \
zlib123/inftrees.c \
zlib123/inftrees.h \
zlib123/trees.c \
zlib123/trees.h \
zlib123/uncompr.c \
zlib123/zconf.h \
zlib123/zlib.h \
zlib123/zutil.c \
zlib123/zutil.h
31
32
33
34
if BUILD_ZLIB
ZLIB_SRC = $(ZLIB_FILES)
35
ZLIB_INC = -I$(top_srcdir)/zlib123
36
37
38
39
40
41
42
43
44
45
46
47
48
ZLIB_EXTRADIST =
else
ZLIB_SRC =
ZLIB_INC =
ZLIB_EXTRADIST = $(ZLIB_FILES)
endif
libphysfs_la_SOURCES = \
physfs.c \
physfs_internal.h \
physfs_byteorder.c \
archivers/dir.c \
archivers/grp.c \
49
archivers/wad.c \
50
51
archivers/hog.c \
archivers/mvl.c \
52
archivers/zip.c \
53
archivers/qpak.c \
54
55
platform/unix.c \
platform/posix.c \
56
$(ZLIB_SRC)
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
libphysfs_la_INCLUDES = $(ZLIB_INC)
libphysfs_la_LDFLAGS = \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
if BUILD_TEST_PHYSFS
bin_PROGRAMS = test_physfs
test_physfs_INCLUDES = -I$(top_srcdir)
test_physfs_LDADD = $(top_srcdir)/libphysfs.la
test_physfs_SOURCES = test/test_physfs.c
TEST_EXTRADIST =
else
TEST_EXTRADIST = test/test_physfs.c
endif
EXTRA_DIST = \
CREDITS \
LICENSE \
CHANGELOG \
INSTALL \
TODO \
Doxyfile \
83
CWProjects.sit \
84
physfs.spec \
85
86
physfs.dsp \
test_physfs.dsp \
87
88
89
physfs_static.dsp \
physfs.vcproj \
test_physfs.vcproj \
90
91
92
platform/skeleton.c \
platform/macclassic.c \
platform/win32.c \
93
platform/beos.cpp \
94
platform/os2.c \
95
96
97
extras/physfsrwops.h \
extras/physfsrwops.c \
extras/physfshttpd.c \
98
99
Makefile.am.oldautomake \
Makefile.am.newautomake \
100
zlib_license_change.txt \
101
makeos2.cmd \
102
PBProjects \
103
$(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
104
105
106
else
107
SUBDIRS = platform archivers zlib123 . test extras
108
109
110
111
112
113
114
libphysfs_la_SOURCES = \
physfs.c \
physfs_internal.h \
physfs_byteorder.c
if BUILD_ZLIB
115
ZLIB_LIB = zlib123/libz.la
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
else
ZLIB_LIB =
endif
libphysfs_la_LDFLAGS = \
-release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libphysfs_la_LIBADD = \
archivers/libarchivers.la \
platform/libplatform.la \
$(ZLIB_LIB)
EXTRA_DIST = \
CREDITS \
LICENSE \
CHANGELOG \
INSTALL \
TODO \
Doxyfile \
135
PBProjects \
136
CWProjects.sit \
137
physfs.spec.in \
138
physfs.spec \
139
physfs.dsp \
140
test_physfs.dsp \
141
142
143
physfs_static.dsp \
physfs.vcproj \
test_physfs.vcproj \
144
zlib_license_change.txt \
145
makeos2.cmd
146
147
148
149
endif
150
151
dist-hook:
152
perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj
153
mkdir $(distdir)/docs
154
155
156
echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
echo >> $(distdir)/docs/README
157
rm -rf `find $(distdir) -name "CVS" -type d`