comparison src/main/Makefile.am @ 0:74212992fb08

Initial revision
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:45:43 +0000
parents
children 69ee0b88b615
comparison
equal deleted inserted replaced
-1:000000000000 0:74212992fb08
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 = beos linux macos win32
8
9 # Build a separate library containing the main() entry point.
10 lib_LIBRARIES = libSDLmain.a
11
12 MAINLIB_ARCH_SRCS = SDL_main.c
13
14 libSDLmain_a_SOURCES = $(MAINLIB_ARCH_SRCS)
15
16 # Build an internal library of any special app setup functions
17 noinst_LTLIBRARIES = libarch.la
18
19 if TARGET_BEOS
20 ARCH_SRCS = SDL_BeApp.cc SDL_BeApp.h
21 else
22 ARCH_SRCS =
23 endif
24
25 # Include the architecture-independent sources
26 COMMON_SRCS = dummy.c
27
28 libarch_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
29
30 ## Let automake know that it shouldn't distribute linked sources
31 BUILT_SOURCES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
32
33 ## Let automake know that it should remove these for distribution
34 DISTCLEANFILES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
35
36 # The architecture specific directories need to be copied into place
37 # when building a distribution.
38 dist-hook:
39 (cd $(distdir) && rm -f $(BUILT_SOURCES))
40 cp -rp $(ARCH_SUBDIRS) $(distdir)
41 (cd $(distdir) && rm -rf `find . -name CVS`)