Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 06 Oct 2002 20:31:34 +0000
changeset 515 230b156829ed
parent 509 dad72daf44b3
child 521 136d97397288
permissions -rw-r--r--
*** empty log message ***
     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 	VisualCE.zip	\
    44 	Makefile.dc	\
    45 	MPWmake.sea.bin	\
    46 	CWprojects.sea.bin \
    47 	PBProjects.tar.gz \
    48 	EpocBuildFiles.zip \
    49 	WhatsNew	\
    50 	docs.html	\
    51 	sdl.m4		\
    52 	SDL.spec	\
    53 	autogen.sh	\
    54 	strip_fPIC.sh
    55 
    56 # M4 macro file for inclusion with autoconf
    57 m4datadir = $(datadir)/aclocal
    58 m4data_DATA = sdl.m4
    59 
    60 # Rule to build tar-gzipped distribution package
    61 $(PACKAGE)-$(VERSION).tar.gz: dist
    62 
    63 # Rule to build RPM distribution package
    64 rpm: $(PACKAGE)-$(VERSION).tar.gz
    65 	rpm -ta $(PACKAGE)-$(VERSION).tar.gz
    66 
    67 # Rule to rebuild the export lists for BeOS, MacOS and Win32.
    68 exports:
    69 	(cd src/main/beos/exports; $(MAKE))
    70 	(cd src/main/macos/exports; $(MAKE))
    71 	(cd src/main/win32/exports; $(MAKE))
    72 
    73 # Rule to build the Project Builder archive in MacOS X
    74 PBProjects.tar.gz:
    75 	rm -f `find . -name .DS_Store`
    76 	if [ -d PBProjects ]; then \
    77 	    tar zcvf $@ PBProjects; \
    78 	fi
    79 
    80 # Rule to force automake to rebuild the library
    81 changed:
    82 	@echo "This build target is no longer necessary"
    83 
    84 # Rule to install the libraries only - prevent rebuilding apps
    85 install-lib:
    86 	cd src && $(MAKE) install-libLTLIBRARIES
    87 
    88 # Run ldconfig after installing the library:
    89 install-hook:
    90 	-ldconfig
    91 
    92 # Grab the test programs for the distribution:
    93 dist-hook:
    94 	if test -f test/Makefile; then (cd test; make distclean); fi
    95 	cp -rp $(srcdir)/test $(distdir)
    96 	rm -rf `find $(distdir) -type d -name CVS -print`
    97 
    98 # Create a CVS snapshot that people can run update -d on
    99 CVSROOT = :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs
   100 snapshot:
   101 	cvs -d $(CVSROOT) login
   102 	cvs -d $(CVSROOT) checkout SDL12
   103 	(cd SDL12 && ./autogen.sh)
   104 	mv SDL12 SDL-1.2
   105 	tar zcvf $(HOME)/SDL-1.2.tar.gz SDL-1.2
   106 	rm -rf SDL-1.2