src/main/Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Tue, 05 Mar 2002 19:55:32 +0000
changeset 292 eadc0746dfaf
parent 221 50620ec9c86a
child 371 db0cc6034336
permissions -rw-r--r--
Added SDL_LockRect() and SDL_UnlockRect()
Incorporated XFree86 extension libraries into the source
     1 
     2 ## Makefile.am for the main() function in the SDL library
     3 #
     4 # This is necessary because some platforms have special program
     5 # entry points, which require special application initialization.
     6 
     7 ARCH_SUBDIRS = $(srcdir)/beos \
     8                $(srcdir)/epoc \
     9                $(srcdir)/linux \
    10                $(srcdir)/macos \
    11                $(srcdir)/macosx \
    12                $(srcdir)/win32
    13 
    14 # Build a separate library containing the main() entry point.
    15 lib_LIBRARIES = libSDLmain.a
    16 
    17 if TARGET_MACOSX
    18 MAINLIB_ARCH_SRCS = SDLMain.m SDLMain.h
    19 else
    20 MAINLIB_ARCH_SRCS = SDL_main.c
    21 endif
    22 
    23 libSDLmain_a_SOURCES = $(MAINLIB_ARCH_SRCS)
    24 
    25 # Build an internal library of any special app setup functions
    26 noinst_LTLIBRARIES = libarch.la
    27 
    28 if TARGET_BEOS
    29 ARCH_SRCS = SDL_BeApp.cc SDL_BeApp.h
    30 else
    31 ARCH_SRCS = 
    32 endif
    33 
    34 # Include the architecture-independent sources
    35 COMMON_SRCS = dummy.c
    36 
    37 libarch_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
    38 
    39 ## Let automake know that it shouldn't distribute linked sources
    40 BUILT_SOURCES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
    41 
    42 ## Let automake know that it should remove these for distribution
    43 DISTCLEANFILES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
    44 
    45 # The architecture specific directories need to be copied into place
    46 # when building a distribution.
    47 dist-hook:
    48 	(cd $(distdir) && rm -f $(BUILT_SOURCES))
    49 	cp -rp $(ARCH_SUBDIRS) $(distdir)
    50 	(cd $(distdir) && rm -rf `find . -name CVS`)