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