Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.36 KB

Makefile.am

File metadata and controls

50 lines (38 loc) · 1.36 KB
 
Apr 26, 2001
Apr 26, 2001
1
2
3
4
5
6
## Makefile.am for the main() function in the SDL library
#
# This is necessary because some platforms have special program
# entry points, which require special application initialization.
Sep 11, 2001
Sep 11, 2001
7
8
9
10
ARCH_SUBDIRS = $(srcdir)/beos \
$(srcdir)/epoc \
$(srcdir)/linux \
$(srcdir)/macos \
Nov 2, 2001
Nov 2, 2001
11
$(srcdir)/macosx \
Sep 11, 2001
Sep 11, 2001
12
$(srcdir)/win32
Apr 26, 2001
Apr 26, 2001
13
14
15
16
# Build a separate library containing the main() entry point.
lib_LIBRARIES = libSDLmain.a
Aug 21, 2001
Aug 21, 2001
17
if TARGET_MACOSX
Sep 23, 2001
Sep 23, 2001
18
MAINLIB_ARCH_SRCS = SDLMain.m SDLMain.h
Aug 21, 2001
Aug 21, 2001
19
else
Apr 26, 2001
Apr 26, 2001
20
MAINLIB_ARCH_SRCS = SDL_main.c
Aug 21, 2001
Aug 21, 2001
21
endif
Apr 26, 2001
Apr 26, 2001
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
libSDLmain_a_SOURCES = $(MAINLIB_ARCH_SRCS)
# Build an internal library of any special app setup functions
noinst_LTLIBRARIES = libarch.la
if TARGET_BEOS
ARCH_SRCS = SDL_BeApp.cc SDL_BeApp.h
else
ARCH_SRCS =
endif
# Include the architecture-independent sources
COMMON_SRCS = dummy.c
libarch_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
## Let automake know that it shouldn't distribute linked sources
BUILT_SOURCES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
## Let automake know that it should remove these for distribution
DISTCLEANFILES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
# The architecture specific directories need to be copied into place
# when building a distribution.
dist-hook:
(cd $(distdir) && rm -f $(BUILT_SOURCES))
cp -rp $(ARCH_SUBDIRS) $(distdir)
(cd $(distdir) && rm -rf `find . -name CVS`)