src/cdrom/Makefile.am
changeset 153 2839f45bdba0
parent 138 69ee0b88b615
child 237 2fe3fbd2bff5
     1.1 --- a/src/cdrom/Makefile.am	Sat Aug 18 21:58:26 2001 +0000
     1.2 +++ b/src/cdrom/Makefile.am	Sat Aug 18 22:03:11 2001 +0000
     1.3 @@ -3,27 +3,17 @@
     1.4  
     1.5  noinst_LTLIBRARIES = libcdrom.la
     1.6  
     1.7 -ARCH_SUBDIRS = $(srcdir)/dummy $(srcdir)/beos $(srcdir)/freebsd \
     1.8 -	$(srcdir)/linux $(srcdir)/macos $(srcdir)/openbsd \
     1.9 -	$(srcdir)/qnx $(srcdir)/win32
    1.10 +# Define which subdirectories need to be built
    1.11 +SUBDIRS = @CDROM_SUBDIRS@
    1.12 +DIST_SUBDIRS = aix beos dummy freebsd linux macos openbsd qnx win32
    1.13 +
    1.14 +DRIVERS = @CDROM_DRIVERS@
    1.15  
    1.16  # Include the architecture-independent sources
    1.17 -COMMON_SRCS = SDL_cdrom.c SDL_syscdrom.h
    1.18 +COMMON_SRCS =			\
    1.19 +	SDL_cdrom.c		\
    1.20 +	SDL_syscdrom.h
    1.21  
    1.22 -# Include the architecture-specific sources
    1.23 -ARCH_SRCS = SDL_syscdrom.c
    1.24 -
    1.25 -libcdrom_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
    1.26 -
    1.27 -## Let automake know that it shouldn't distribute linked sources
    1.28 -BUILT_SOURCES = $(ARCH_SRCS)
    1.29 -
    1.30 -## Let automake know that it should remove these for distribution
    1.31 -DISTCLEANFILES = $(ARCH_SRCS)
    1.32 -
    1.33 -# The architecture specific directories need to be copied into place
    1.34 -# when building a distribution.
    1.35 -dist-hook:
    1.36 -	(cd $(distdir) && rm -f $(BUILT_SOURCES))
    1.37 -	cp -rp $(ARCH_SUBDIRS) $(distdir)
    1.38 -	(cd $(distdir) && rm -rf `find . -name CVS`)
    1.39 +libcdrom_la_SOURCES = $(COMMON_SRCS)
    1.40 +libcdrom_la_LIBADD = $(DRIVERS)
    1.41 +libcdrom_la_DEPENDENCIES = $(DRIVERS)