Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Fri, 23 Apr 2004 14:00:08 +0000
changeset 884 20d3a599f601
parent 831 26fe9256c48b
child 1010 2cd32a2d1f11
permissions -rw-r--r--
Increment version...
     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.DC	\
    29 	README.Epoc	\
    30 	README.MacOS	\
    31 	README.MacOSX	\
    32 	README.MiNT	\
    33 	README.NanoX	\
    34 	README.PicoGUI	\
    35 	README.QNX	\
    36 	README.Qtopia	\
    37 	README.WinCE	\
    38 	README-SDL.txt	\
    39 	Borland.html	\
    40 	Borland.zip	\
    41 	VisualC.html	\
    42 	VisualC.zip	\
    43 	VisualC7.zip	\
    44 	VisualCE.zip	\
    45 	Makefile.dc	\
    46 	MPWmake.sea.bin	\
    47 	CWprojects.sea.bin \
    48 	PBProjects.tar.gz \
    49 	EpocBuildFiles.zip \
    50 	WhatsNew	\
    51 	docs.html	\
    52 	sdl.m4		\
    53 	SDL.spec	\
    54 	autogen.sh	\
    55 	strip_fPIC.sh
    56 
    57 # M4 macro file for inclusion with autoconf
    58 m4datadir = $(datadir)/aclocal
    59 m4data_DATA = sdl.m4
    60 
    61 # Rule to build tar-gzipped distribution package
    62 $(PACKAGE)-$(VERSION).tar.gz: dist
    63 
    64 # Rule to build RPM distribution package
    65 rpm: $(PACKAGE)-$(VERSION).tar.gz
    66 	rpm -ta $(PACKAGE)-$(VERSION).tar.gz
    67 
    68 # Rule to rebuild the export lists for BeOS, MacOS and Win32.
    69 exports:
    70 	(cd src/main/beos/exports; $(MAKE))
    71 	(cd src/main/macos/exports; $(MAKE))
    72 	(cd src/main/macosx/exports; $(MAKE))
    73 	(cd src/main/win32/exports; $(MAKE))
    74 
    75 # Rule to build the Project Builder archive in MacOS X
    76 PBProjects.tar.gz:
    77 	rm -f `find . -name .DS_Store`
    78 	if [ -d PBProjects ]; then \
    79 	    tar zcvf $@ PBProjects; \
    80 	fi
    81 
    82 # Rule to install the libraries only - prevent rebuilding apps
    83 install-lib:
    84 	cd src && $(MAKE) install-libLTLIBRARIES
    85 
    86 # Run ldconfig after installing the library:
    87 install-hook:
    88 	-ldconfig
    89 
    90 # Grab the test programs for the distribution:
    91 dist-hook:
    92 	if test -f test/Makefile; then (cd test; make distclean); fi
    93 	rm -rf $(srcdir)/test/autom4te*
    94 	cp -rp $(srcdir)/test $(distdir)
    95 	rm -rf `find $(distdir) -type d -name CVS -print`
    96 
    97 # Create a CVS snapshot that people can run update -d on
    98 CVSROOT = :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs
    99 snapshot:
   100 	cvs -d $(CVSROOT) login
   101 	cvs -d $(CVSROOT) checkout SDL12
   102 	(cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
   103 	mv SDL12 SDL-1.2
   104 	tar zcvf $(HOME)/SDL-1.2.tar.gz SDL-1.2
   105 	rm -rf SDL-1.2
   106 snapshot13:
   107 	cvs -d $(CVSROOT) login
   108 	cvs -d $(CVSROOT) checkout -r branch_1_3_x SDL12
   109 	(cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
   110 	mv SDL12 SDL-1.3
   111 	tar zcvf $(HOME)/SDL-1.3.tar.gz SDL-1.3
   112 	rm -rf SDL-1.3