src/thread/Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Fri, 14 Sep 2001 04:34:15 +0000
changeset 185 34d316d5e744
parent 173 83018110dce8
child 256 640dcf27d2f7
permissions -rw-r--r--
Added support for the GNU Pth thread lib (thanks Mandin!)
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@185
     9
               $(srcdir)/epoc		\
slouken@185
    10
               $(srcdir)/irix		\
slouken@185
    11
               $(srcdir)/linux		\
slouken@185
    12
               $(srcdir)/pth		\
slouken@173
    13
               $(srcdir)/win32
slouken@0
    14
slouken@0
    15
# Older versions of Linux require an asm clone() implementation
slouken@0
    16
if USE_CLONE
slouken@0
    17
THREAD_ASM_SRC = clone.S
slouken@0
    18
else
slouken@0
    19
THREAD_ASM_SRC =
slouken@0
    20
endif
slouken@0
    21
slouken@0
    22
COMMON_SRCS =			\
slouken@0
    23
	SDL_systhread.h		\
slouken@0
    24
	SDL_thread.c		\
slouken@0
    25
	SDL_thread_c.h
slouken@0
    26
ARCH_SRCS = 			\
slouken@0
    27
	SDL_systhread.c		\
slouken@0
    28
	SDL_systhread_c.h	\
slouken@0
    29
	SDL_sysmutex.c		\
slouken@0
    30
	SDL_sysmutex_c.h	\
slouken@0
    31
	SDL_syssem.c		\
slouken@0
    32
	SDL_syssem_c.h		\
slouken@0
    33
	SDL_syscond.c		\
slouken@0
    34
	SDL_syscond_c.h		\
slouken@0
    35
	$(THREAD_ASM_SRC)
slouken@0
    36
slouken@0
    37
libthread_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
slouken@0
    38
slouken@0
    39
## Let automake know that it shouldn't distribute linked sources
slouken@0
    40
BUILT_SOURCES = $(ARCH_SRCS)
slouken@0
    41
slouken@0
    42
## Let automake know that it should remove these for distribution
slouken@0
    43
DISTCLEANFILES = $(ARCH_SRCS)
slouken@0
    44
slouken@0
    45
# The architecture specific directories need to be copied into place
slouken@0
    46
# when building a distribution.
slouken@0
    47
dist-hook:
slouken@0
    48
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
slouken@0
    49
	cp -rp $(ARCH_SUBDIRS) $(distdir)
slouken@0
    50
	(cd $(distdir) && rm -rf `find . -name CVS`)