src/timer/Makefile.am
author Sam Lantinga
Mon, 06 Feb 2006 08:28:51 +0000
changeset 1330 450721ad5436
parent 754 623b453a3219
permissions -rw-r--r--
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
slouken@0
     1
slouken@0
     2
## Makefile.am for the SDL timer library
slouken@0
     3
slouken@0
     4
noinst_LTLIBRARIES = libtimer.la
slouken@0
     5
slouken@173
     6
ARCH_SUBDIRS = $(srcdir)/amigaos \
slouken@173
     7
               $(srcdir)/beos \
slouken@509
     8
               $(srcdir)/dc \
slouken@173
     9
               $(srcdir)/epoc \
slouken@173
    10
               $(srcdir)/linux \
slouken@173
    11
               $(srcdir)/macos \
slouken@281
    12
               $(srcdir)/mint \
slouken@630
    13
               $(srcdir)/riscos \
slouken@173
    14
               $(srcdir)/win32
slouken@0
    15
slouken@0
    16
# Include the architecture-independent sources
slouken@0
    17
COMMON_SRCS = SDL_timer.c SDL_timer_c.h SDL_systimer.h
slouken@0
    18
slouken@0
    19
# Include the architecture-specific sources
slouken@281
    20
if TARGET_MINT
slouken@754
    21
ARCH_SRCS = SDL_systimer.c mint/SDL_vbltimer.S mint/SDL_vbltimer_s.h
slouken@281
    22
else
slouken@0
    23
ARCH_SRCS = SDL_systimer.c
slouken@281
    24
endif
slouken@0
    25
slouken@0
    26
libtimer_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
slouken@0
    27
slouken@0
    28
## Let automake know that it shouldn't distribute linked sources
slouken@0
    29
BUILT_SOURCES = $(ARCH_SRCS)
slouken@0
    30
slouken@0
    31
## Let automake know that it should remove these for distribution
slouken@0
    32
DISTCLEANFILES = $(ARCH_SRCS)
slouken@0
    33
slouken@0
    34
# The architecture specific directories need to be copied into place
slouken@0
    35
# when building a distribution.
slouken@0
    36
dist-hook:
slouken@0
    37
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
slouken@0
    38
	cp -rp $(ARCH_SUBDIRS) $(distdir)
slouken@0
    39
	(cd $(distdir) && rm -rf `find . -name CVS`)