src/thread/Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sat, 05 Oct 2002 16:50:56 +0000
changeset 509 dad72daf44b3
parent 256 640dcf27d2f7
child 754 623b453a3219
permissions -rw-r--r--
Added initial support for Dreamcast (thanks HERO!)
slouken@0
     1
slouken@0
     2
## Makefile.am for the SDL thread library
slouken@0
     3
slouken@0
     4
noinst_LTLIBRARIES = libthread.la
slouken@0
     5
slouken@185
     6
ARCH_SUBDIRS = $(srcdir)/generic	\
slouken@185
     7
               $(srcdir)/amigaos	\
slouken@185
     8
               $(srcdir)/beos		\
slouken@256
     9
               $(srcdir)/bsdi		\
slouken@509
    10
               $(srcdir)/dc		\
slouken@185
    11
               $(srcdir)/epoc		\
slouken@185
    12
               $(srcdir)/irix		\
slouken@185
    13
               $(srcdir)/linux		\
slouken@185
    14
               $(srcdir)/pth		\
slouken@173
    15
               $(srcdir)/win32
slouken@0
    16
slouken@0
    17
# Older versions of Linux require an asm clone() implementation
slouken@0
    18
if USE_CLONE
slouken@0
    19
THREAD_ASM_SRC = clone.S
slouken@0
    20
else
slouken@0
    21
THREAD_ASM_SRC =
slouken@0
    22
endif
slouken@0
    23
slouken@0
    24
COMMON_SRCS =			\
slouken@0
    25
	SDL_systhread.h		\
slouken@0
    26
	SDL_thread.c		\
slouken@0
    27
	SDL_thread_c.h
slouken@0
    28
ARCH_SRCS = 			\
slouken@0
    29
	SDL_systhread.c		\
slouken@0
    30
	SDL_systhread_c.h	\
slouken@0
    31
	SDL_sysmutex.c		\
slouken@0
    32
	SDL_sysmutex_c.h	\
slouken@0
    33
	SDL_syssem.c		\
slouken@0
    34
	SDL_syssem_c.h		\
slouken@0
    35
	SDL_syscond.c		\
slouken@0
    36
	SDL_syscond_c.h		\
slouken@0
    37
	$(THREAD_ASM_SRC)
slouken@0
    38
slouken@0
    39
libthread_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
slouken@0
    40
slouken@0
    41
## Let automake know that it shouldn't distribute linked sources
slouken@0
    42
BUILT_SOURCES = $(ARCH_SRCS)
slouken@0
    43
slouken@0
    44
## Let automake know that it should remove these for distribution
slouken@0
    45
DISTCLEANFILES = $(ARCH_SRCS)
slouken@0
    46
slouken@0
    47
# The architecture specific directories need to be copied into place
slouken@0
    48
# when building a distribution.
slouken@0
    49
dist-hook:
slouken@0
    50
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
slouken@0
    51
	cp -rp $(ARCH_SUBDIRS) $(distdir)
slouken@0
    52
	(cd $(distdir) && rm -rf `find . -name CVS`)