Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sat, 01 Jun 2002 18:43:51 +0000
changeset 386 2c5d4c22a2ac
parent 367 8a0a806bfe05
child 433 706de3956894
permissions -rw-r--r--
Added a README for Qtopia
     1 # The top-level input Makefile for SDL
     2 
     3 # require automake 1.4
     4 AUTOMAKE_OPTIONS = 1.4
     5 
     6 ## Any directories that you want built and installed should go here.
     7 SUBDIRS = src include docs
     8 
     9 ## Any directories you want a part of the distribution should be listed
    10 ## here, as well as have a Makefile generated at the end of configure.in
    11 ##
    12 ## This only works for subdirectories one level deep.
    13 DIST_SUBDIRS = $(SUBDIRS)
    14 
    15 # SDL runtime configuration script
    16 bin_SCRIPTS = sdl-config
    17 
    18 # All the rest of the distributed files
    19 EXTRA_DIST =		\
    20 	BUGS		\
    21 	TODO		\
    22         COPYING		\
    23         CREDITS		\
    24         INSTALL		\
    25 	README		\
    26 	README.AmigaOS	\
    27 	README.CVS	\
    28 	README.Epoc	\
    29 	README.MacOS	\
    30 	README.MacOSX	\
    31 	README.MiNT	\
    32 	README.NanoX	\
    33 	README.QNX	\
    34 	README.Qtopia	\
    35 	README.WinCE	\
    36 	README-SDL.txt	\
    37 	BorlandC.html	\
    38 	Borland.zip	\
    39         VisualC.html	\
    40         VisualC.zip	\
    41         MPWmake.sea.bin	\
    42 	CWprojects.sea.bin \
    43 	PBProjects.tar.gz \
    44 	EpocBuildFiles.zip \
    45         WhatsNew	\
    46         docs.html	\
    47 	sdl.m4		\
    48         SDL.spec	\
    49         autogen.sh	\
    50         strip_fPIC.sh
    51 
    52 # M4 macro file for inclusion with autoconf
    53 m4datadir = $(datadir)/aclocal
    54 m4data_DATA = sdl.m4
    55 
    56 # Rule to build tar-gzipped distribution package
    57 $(PACKAGE)-$(VERSION).tar.gz: dist
    58 
    59 # Rule to build RPM distribution package
    60 rpm: $(PACKAGE)-$(VERSION).tar.gz
    61 	rpm -ta $(PACKAGE)-$(VERSION).tar.gz
    62 
    63 # Rule to rebuild the export lists for BeOS, MacOS and Win32.
    64 exports:
    65 	(cd src/main/beos/exports; $(MAKE))
    66 	(cd src/main/macos/exports; $(MAKE))
    67 	(cd src/main/win32/exports; $(MAKE))
    68 
    69 # Rule to build the Project Builder archive in MacOS X
    70 PBProjects.tar.gz:
    71 	rm -f `find . -name .DS_Store`
    72 	if [ -d PBProjects ]; then \
    73 	    tar zcvf $@ PBProjects; \
    74 	fi
    75 
    76 # Rule to force automake to rebuild the library
    77 changed:
    78 	@echo "This build target is no longer necessary"
    79 
    80 # Rule to install the libraries only - prevent rebuilding apps
    81 install-lib:
    82 	cd src && $(MAKE) install-libLTLIBRARIES
    83 
    84 # Run ldconfig after installing the library:
    85 install-hook:
    86 	-ldconfig
    87 
    88 # Grab the test programs for the distribution:
    89 dist-hook:
    90 	if test -f test/Makefile; then (cd test; make distclean); fi
    91 	cp -rp $(srcdir)/test $(distdir)
    92 	rm -rf `find $(distdir) -type d -name CVS -print`
    93 
    94 # Create a CVS snapshot that people can run update -d on
    95 CVSROOT = :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs
    96 snapshot:
    97 	cvs -d $(CVSROOT) login
    98 	cvs -d $(CVSROOT) checkout SDL12
    99 	(cd SDL12 && ./autogen.sh)
   100 	mv SDL12 SDL-1.2
   101 	tar zcvf $(HOME)/SDL-1.2.tar.gz SDL-1.2
   102 	rm -rf SDL-1.2