Makefile.am
changeset 296 32658d27c62f
parent 285 6e4b9538d99c
--- a/Makefile.am	Fri Jun 28 03:50:24 2002 +0000
+++ b/Makefile.am	Fri Jun 28 05:01:41 2002 +0000
@@ -1,6 +1,10 @@
 lib_LTLIBRARIES = libphysfs.la
 
-#SUBDIRS = platform archivers zlib114 . test extras
+libphysfsincludedir = $(includedir)
+libphysfsinclude_HEADERS =	\
+	physfs.h
+
+if BUILD_MACOSX
 
 ZLIB_FILES = zlib114/adler32.c		\
              zlib114/compress.c		\
@@ -46,11 +50,6 @@
   BEOS_EXTRADIST = platform/beos.cpp
 endif
 
-
-libphysfsincludedir = $(includedir)
-libphysfsinclude_HEADERS =	\
-	physfs.h
-
 libphysfs_la_SOURCES =	\
 	physfs.c	        \
 	physfs_internal.h	\
@@ -101,6 +100,44 @@
     extras/physfshttpd.c   \
     $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
 
+else
+
+SUBDIRS = platform archivers zlib114 . test extras
+
+libphysfs_la_SOURCES =	\
+	physfs.c	\
+	physfs_internal.h	\
+	physfs_byteorder.c
+
+if BUILD_ZLIB
+ZLIB_LIB = zlib114/libz.la
+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 \
+	CWProjects.sit \
+	physfs.dsp \
+	test_physfs.dsp \
+    docs
+
+
+endif
+
 dist-hook:
 	rm -rf $(distdir)/docs/*
 	echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README