author Sam Lantinga <>
Thu, 26 Apr 2001 16:52:42 +0000
changeset 3 3b97b708523c
parent 0 74212992fb08
child 54 028447a8a758
permissions -rw-r--r--
Use correct repository when generating CVS snapshots

# The top-level input Makefile for SDL

# require automake 1.4

## Any directories that you want built and installed should go here.
SUBDIRS = src include docs

## Any directories you want a part of the distribution should be listed
## here, as well as have a Makefile generated at the end of
## This only works for subdirectories one level deep.

# SDL runtime configuration script
bin_SCRIPTS = sdl-config

# All the rest of the distributed files
	BUGS		\
	TODO		\
        COPYING		\
        CREDITS		\
        INSTALL		\
        README		\
        README-SDL.txt	\
        README.Win32	\
        README.WinCE	\
        README.MacOS	\
        README.MacOSX	\
        VisualC.html	\	\
        MPWmake.sea.bin	\
	CWprojects.sea.bin \
        WhatsNew	\
        docs.html	\
        sdl.m4		\	\

# M4 macro file for inclusion with autoconf
m4datadir = $(datadir)/aclocal
m4data_DATA = sdl.m4

# Rule to build tar-gzipped distribution package
$(PACKAGE)-$(VERSION).tar.gz: dist

# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
	rpm -ba SDL.spec

# Rule to rebuild the export lists for BeOS, MacOS and Win32.
	(cd src/main/beos/exports; $(MAKE))
	(cd src/main/macos/exports; $(MAKE))
	(cd src/main/win32/exports; $(MAKE))

# Rule to force automake to rebuild the library
	@echo "This build target is no longer necessary"

# Rule to install the libraries only - prevent rebuilding apps
	cd src && $(MAKE) install-libLTLIBRARIES

# Run ldconfig after installing the library:

# Grab the test programs for the distribution:
	if test -f test/Makefile; then (cd test; make distclean); fi
	cp -rp test $(distdir)
	rm -rf `find $(distdir) -type d -name CVS -print`

# Create a CVS snapshot that people can run update -d on
	cvs -d $(CVSROOT) login
	cvs -d $(CVSROOT) checkout SDL12
	(cd SDL12 && ./
	mv SDL12 SDL-1.2
	tar zcvf $(HOME)/SDL-1.2.tar.gz SDL-1.2
	rm -rf SDL-1.2