comparison src/cdrom/Makefile.am @ 153:2839f45bdba0

Fixed IDE and SCSI CD-ROM detection on BeOS (thanks Caz!)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 18 Aug 2001 22:03:11 +0000
parents 69ee0b88b615
children 2fe3fbd2bff5
comparison
equal deleted inserted replaced
152:2cf88672fc7f 153:2839f45bdba0
1 1
2 ## Makefile.am for the SDL cdrom library 2 ## Makefile.am for the SDL cdrom library
3 3
4 noinst_LTLIBRARIES = libcdrom.la 4 noinst_LTLIBRARIES = libcdrom.la
5 5
6 ARCH_SUBDIRS = $(srcdir)/dummy $(srcdir)/beos $(srcdir)/freebsd \ 6 # Define which subdirectories need to be built
7 $(srcdir)/linux $(srcdir)/macos $(srcdir)/openbsd \ 7 SUBDIRS = @CDROM_SUBDIRS@
8 $(srcdir)/qnx $(srcdir)/win32 8 DIST_SUBDIRS = aix beos dummy freebsd linux macos openbsd qnx win32
9
10 DRIVERS = @CDROM_DRIVERS@
9 11
10 # Include the architecture-independent sources 12 # Include the architecture-independent sources
11 COMMON_SRCS = SDL_cdrom.c SDL_syscdrom.h 13 COMMON_SRCS = \
14 SDL_cdrom.c \
15 SDL_syscdrom.h
12 16
13 # Include the architecture-specific sources 17 libcdrom_la_SOURCES = $(COMMON_SRCS)
14 ARCH_SRCS = SDL_syscdrom.c 18 libcdrom_la_LIBADD = $(DRIVERS)
15 19 libcdrom_la_DEPENDENCIES = $(DRIVERS)
16 libcdrom_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
17
18 ## Let automake know that it shouldn't distribute linked sources
19 BUILT_SOURCES = $(ARCH_SRCS)
20
21 ## Let automake know that it should remove these for distribution
22 DISTCLEANFILES = $(ARCH_SRCS)
23
24 # The architecture specific directories need to be copied into place
25 # when building a distribution.
26 dist-hook:
27 (cd $(distdir) && rm -f $(BUILT_SOURCES))
28 cp -rp $(ARCH_SUBDIRS) $(distdir)
29 (cd $(distdir) && rm -rf `find . -name CVS`)