src/thread/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 thread library
slouken@0
     3
slouken@0
     4
noinst_LTLIBRARIES = libthread.la
slouken@0
     5
slouken@0
     6
ARCH_SUBDIRS = generic amigaos beos irix linux win32
slouken@0
     7
slouken@0
     8
# Older versions of Linux require an asm clone() implementation
slouken@0
     9
if USE_CLONE
slouken@0
    10
THREAD_ASM_SRC = clone.S
slouken@0
    11
else
slouken@0
    12
THREAD_ASM_SRC =
slouken@0
    13
endif
slouken@0
    14
slouken@0
    15
COMMON_SRCS =			\
slouken@0
    16
	SDL_systhread.h		\
slouken@0
    17
	SDL_thread.c		\
slouken@0
    18
	SDL_thread_c.h
slouken@0
    19
ARCH_SRCS = 			\
slouken@0
    20
	SDL_systhread.c		\
slouken@0
    21
	SDL_systhread_c.h	\
slouken@0
    22
	SDL_sysmutex.c		\
slouken@0
    23
	SDL_sysmutex_c.h	\
slouken@0
    24
	SDL_syssem.c		\
slouken@0
    25
	SDL_syssem_c.h		\
slouken@0
    26
	SDL_syscond.c		\
slouken@0
    27
	SDL_syscond_c.h		\
slouken@0
    28
	$(THREAD_ASM_SRC)
slouken@0
    29
slouken@0
    30
libthread_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
slouken@0
    31
slouken@0
    32
## Let automake know that it shouldn't distribute linked sources
slouken@0
    33
BUILT_SOURCES = $(ARCH_SRCS)
slouken@0
    34
slouken@0
    35
## Let automake know that it should remove these for distribution
slouken@0
    36
DISTCLEANFILES = $(ARCH_SRCS)
slouken@0
    37
slouken@0
    38
# The architecture specific directories need to be copied into place
slouken@0
    39
# when building a distribution.
slouken@0
    40
dist-hook:
slouken@0
    41
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
slouken@0
    42
	cp -rp $(ARCH_SUBDIRS) $(distdir)
slouken@0
    43
	(cd $(distdir) && rm -rf `find . -name CVS`)