src/cdrom/Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Thu, 09 Aug 2001 05:31:32 +0000
changeset 138 69ee0b88b615
parent 0 74212992fb08
child 153 2839f45bdba0
permissions -rw-r--r--
Applied Paul Jenner's patches to fix "make distcheck" and "make rpm"
slouken@0
     1
slouken@0
     2
## Makefile.am for the SDL cdrom library
slouken@0
     3
slouken@0
     4
noinst_LTLIBRARIES = libcdrom.la
slouken@0
     5
slouken@138
     6
ARCH_SUBDIRS = $(srcdir)/dummy $(srcdir)/beos $(srcdir)/freebsd \
slouken@138
     7
	$(srcdir)/linux $(srcdir)/macos $(srcdir)/openbsd \
slouken@138
     8
	$(srcdir)/qnx $(srcdir)/win32
slouken@0
     9
slouken@0
    10
# Include the architecture-independent sources
slouken@0
    11
COMMON_SRCS = SDL_cdrom.c SDL_syscdrom.h
slouken@0
    12
slouken@0
    13
# Include the architecture-specific sources
slouken@0
    14
ARCH_SRCS = SDL_syscdrom.c
slouken@0
    15
slouken@0
    16
libcdrom_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
slouken@0
    17
slouken@0
    18
## Let automake know that it shouldn't distribute linked sources
slouken@0
    19
BUILT_SOURCES = $(ARCH_SRCS)
slouken@0
    20
slouken@0
    21
## Let automake know that it should remove these for distribution
slouken@0
    22
DISTCLEANFILES = $(ARCH_SRCS)
slouken@0
    23
slouken@0
    24
# The architecture specific directories need to be copied into place
slouken@0
    25
# when building a distribution.
slouken@0
    26
dist-hook:
slouken@0
    27
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
slouken@0
    28
	cp -rp $(ARCH_SUBDIRS) $(distdir)
slouken@0
    29
	(cd $(distdir) && rm -rf `find . -name CVS`)