src/cdrom/Makefile.am
author Sam Lantinga <slouken@lokigames.com>
Thu, 26 Apr 2001 16:45:43 +0000
changeset 0 74212992fb08
child 138 69ee0b88b615
permissions -rw-r--r--
Initial revision
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@0
     6
ARCH_SUBDIRS = dummy beos freebsd linux macos openbsd qnx win32
slouken@0
     7
slouken@0
     8
# Include the architecture-independent sources
slouken@0
     9
COMMON_SRCS = SDL_cdrom.c SDL_syscdrom.h
slouken@0
    10
slouken@0
    11
# Include the architecture-specific sources
slouken@0
    12
ARCH_SRCS = SDL_syscdrom.c
slouken@0
    13
slouken@0
    14
libcdrom_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
slouken@0
    15
slouken@0
    16
## Let automake know that it shouldn't distribute linked sources
slouken@0
    17
BUILT_SOURCES = $(ARCH_SRCS)
slouken@0
    18
slouken@0
    19
## Let automake know that it should remove these for distribution
slouken@0
    20
DISTCLEANFILES = $(ARCH_SRCS)
slouken@0
    21
slouken@0
    22
# The architecture specific directories need to be copied into place
slouken@0
    23
# when building a distribution.
slouken@0
    24
dist-hook:
slouken@0
    25
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
slouken@0
    26
	cp -rp $(ARCH_SUBDIRS) $(distdir)
slouken@0
    27
	(cd $(distdir) && rm -rf `find . -name CVS`)