Mercurial > sdl-ios-xcode
view src/main/Makefile.am @ 693:6c119628180d
Date: Sat, 16 Aug 2003 16:22:56 +0300
From: "Mike Gorchak"
Subject: Package building for QNX6
I'm just completed the package description file for QNX6 - qpg, it is like a\
.spec files for Linux. Please place SDL.qpg.in file in the root of the proj\
ect, where .spec file is placed. And sdl12qpg.diff - just adding the SDL.qpg\
.in. The same for the SDL_image. I'm planning to add .qpg files creation for\
all SDL* projects.
As for shared library building for QNX6. It is very hard to improve the exis\
ting libtool code to support QNX shared libraries. Much easyiest is to remov\
e libtool.m4 code from the acinclude.m4 for those persons, who building shar\
ed libraries for QNX6. I'm described all what they need to do with .so under\
QNX6 in the README.QNX file. And 90% of people used the precompiled librari\
es, so I think it is not big problem :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 Aug 2003 23:25:46 +0000 |
parents | db0cc6034336 |
children | 623b453a3219 |
line wrap: on
line source
## 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. ARCH_SUBDIRS = $(srcdir)/beos \ $(srcdir)/epoc \ $(srcdir)/linux \ $(srcdir)/macos \ $(srcdir)/macosx \ $(srcdir)/win32 # Build a separate library containing the main() entry point. lib_LIBRARIES = libSDLmain.a if TARGET_MACOSX MAINLIB_ARCH_SRCS = SDLMain.m SDLMain.h else if TARGET_QTOPIA MAINLIB_ARCH_SRCS = SDL_Qtopia_main.cc else MAINLIB_ARCH_SRCS = SDL_main.c endif endif 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`)