Added lmarbles game
6
project/jni/application/lmarbles-1.0.8/AUTHORS
Normal file
@@ -0,0 +1,6 @@
|
||||
Michael Speck <kulkanie@gmx.net>
|
||||
|
||||
**** Contributions ****
|
||||
|
||||
Fix for input bug in Win32, a better installation
|
||||
system and memory leak fixes. - Lee Read
|
||||
280
project/jni/application/lmarbles-1.0.8/COPYING
Normal file
@@ -0,0 +1,280 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
90
project/jni/application/lmarbles-1.0.8/ChangeLog
Normal file
@@ -0,0 +1,90 @@
|
||||
1.0.8:
|
||||
- added XDG desktop support (09/10/26 MS)
|
||||
- fixed configuration process (09/10/26 MS)
|
||||
- removed -Wall from CC arguments for better portability
|
||||
(06/04/01 PM)
|
||||
|
||||
1.0.7:
|
||||
- configure option --with-profile-path has been replaced with
|
||||
autoconf option --localstatedir (04/06/14 M.S.)
|
||||
- data files will be installed to $datadir/lmarbles instead
|
||||
of $datadir/games/lmarbles (04/06/14 M.S.)
|
||||
- replaced strlen with sizeof when building config path (04/06/09 M.S.)
|
||||
- renamed marbles.prfs to lmarbles.prfs in the Makefile (04/06/09 M.S.)
|
||||
- included header for NetBSD (03/09/30 H.F.)
|
||||
|
||||
1.0.6:
|
||||
- renamed project to LMarbles (02/11/24 M.S.)
|
||||
- fixed security holes created by improper use of sprintf
|
||||
(02/11/24 M.S.)
|
||||
|
||||
1.0.5:
|
||||
- switched to SDL_mixer (02/08/10 L.R.)
|
||||
- bunch of memory leaks fixed (02/08/10 L.R.)
|
||||
- for Win32: (02/08/10 L.R.)
|
||||
- edit bug fixed
|
||||
- installation details added to README
|
||||
- much improved installation system
|
||||
- files are always opened in binary mode
|
||||
- transparency bug fix
|
||||
|
||||
1.0.4:
|
||||
- fixed a bug in the sound server that caused Marbles to crash
|
||||
when exiting too fast (01/07/02 M.S.)
|
||||
- fixed a bug that caused Marbles to forget the last used profile
|
||||
(01/07/02 M.S.)
|
||||
- fixed a bug in autoswitch which restarted the level when
|
||||
the figure was completed with the last move (01/07/02 M.S.)
|
||||
- fixed a bug in restart routine that allowed selection of
|
||||
a ghost marble (01/07/02 M.S.)
|
||||
|
||||
1.0.3:
|
||||
- score is now properly modified (02/06/24 M.S.)
|
||||
- fixed a bug that caused an infinite loop when left-clicking
|
||||
an empty tile directly after deselecting a marble (02/06/22 M.S.)
|
||||
- added a missing include at top of timer.c
|
||||
|
||||
1.0.2
|
||||
-compileable for Win32 with MinGW
|
||||
-fixed more color keys
|
||||
-using gettimeofday() instead of ftime() for compatibility with FreeBSD
|
||||
|
||||
1.0.1:
|
||||
-no crash when pressing move key when no marble is selected
|
||||
-configure option 'with-profile-path' named correctly
|
||||
-color key of marbles set correctly
|
||||
|
||||
1.0:
|
||||
-moved config file to ~/.lgames/marbles.conf
|
||||
-rearranged the levelsets into one set with 32 levels
|
||||
where each level has now a move limit instead of a time
|
||||
limit (now you'll have time to think)
|
||||
-fixed some warnings
|
||||
-profile path is no longer hard-coded
|
||||
-profile directory is created if not existing
|
||||
-not 100% cputime consumed
|
||||
-ASCII option ( big-endian ) works again
|
||||
-man page properly installed
|
||||
|
||||
010307:
|
||||
-minor bug fixes
|
||||
-added an 'experimental' levelset with a move limit instead of a time limit
|
||||
(tell me what you think of this!)
|
||||
-on a graphic a marble blinks
|
||||
-added manual page (thanks to Uwe Hermann)
|
||||
-fixed all '-Wall' warnings (thanks again)
|
||||
-script 'missing' is now executable (and again :)
|
||||
|
||||
001211:
|
||||
-various difficulty levels (e.g. 'Training' with no time limit)
|
||||
-marbles move faster; in 'training mode' they can even be 'warped'
|
||||
-you can use your keyboard to move a marble
|
||||
-'save as ascii' configure option (for big-endian)
|
||||
-works with any bit depth (16 bits no longer hard-coded)
|
||||
|
||||
001126:
|
||||
-various bug fixes (most important: chapters are opened properly, profile file
|
||||
included)
|
||||
|
||||
001124:
|
||||
-initial public release
|
||||
167
project/jni/application/lmarbles-1.0.8/INSTALL
Normal file
@@ -0,0 +1,167 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, a file
|
||||
`config.cache' that saves the results of its tests to speed up
|
||||
reconfiguring, and a file `config.log' containing compiler output
|
||||
(useful mainly for debugging `configure').
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If at some point `config.cache'
|
||||
contains results you don't want to keep, you may remove or edit it.
|
||||
|
||||
The file `configure.in' is used to create `configure' by a program
|
||||
called `autoconf'. You only need `configure.in' if you want to change
|
||||
it or regenerate `configure' using a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes a while. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
4. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. You can give `configure'
|
||||
initial values for variables by setting them in the environment. Using
|
||||
a Bourne-compatible shell, you can do that on the command line like
|
||||
this:
|
||||
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||
|
||||
Or on systems that have the `env' program, you can do it like this:
|
||||
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' can not figure out
|
||||
automatically, but needs to determine by the type of host the package
|
||||
will run on. Usually `configure' can figure that out, but if it prints
|
||||
a message saying it can not guess the host type, give it the
|
||||
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name with three fields:
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the host type.
|
||||
|
||||
If you are building compiler tools for cross-compiling, you can also
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for and the `--build=TYPE' option to select the type of
|
||||
system on which you are compiling the package.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Operation Controls
|
||||
==================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Use and save the results of the tests in FILE instead of
|
||||
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||
debugging `configure'.
|
||||
|
||||
`--help'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made.
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--version'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options.
|
||||
|
||||
114
project/jni/application/lmarbles-1.0.8/LMarbles.prj
Normal file
@@ -0,0 +1,114 @@
|
||||
# Anjuta Version 0.1.8
|
||||
Compatibility Level: 1
|
||||
|
||||
<PROJECT_DESCRIPTION_START>
|
||||
An Atomix-like puzzle game.<PROJECT_DESCRIPTION_END>
|
||||
<CONFIG_PROGS_START>
|
||||
<CONFIG_PROGS_END>
|
||||
<CONFIG_LIBS_START>
|
||||
<CONFIG_LIBS_END>
|
||||
<CONFIG_HEADERS_START>
|
||||
<CONFIG_HEADERS_END>
|
||||
<CONFIG_CHARACTERISTICS_START>
|
||||
<CONFIG_CHARACTERISTICS_END>
|
||||
<CONFIG_LIB_FUNCS_START>
|
||||
<CONFIG_LIB_FUNCS_END>
|
||||
<CONFIG_ADDITIONAL_START>
|
||||
<CONFIG_ADDITIONAL_END>
|
||||
<CONFIG_FILES_START>
|
||||
<CONFIG_FILES_END>
|
||||
<MAKEFILE_AM_START>
|
||||
<MAKEFILE_AM_END>
|
||||
|
||||
props.file.type=project
|
||||
|
||||
anjuta.version=0.1.8
|
||||
anjuta.compatibility.level=1
|
||||
|
||||
project.name=LMarbles
|
||||
project.type=GENERIC
|
||||
project.target.type=EXECUTABLE
|
||||
project.version=1.0
|
||||
project.author=Michael Speck
|
||||
project.source.target=lmarbles
|
||||
|
||||
project.has.gettext=0
|
||||
|
||||
project.programming.language=C
|
||||
|
||||
project.menu.entry=Marbles Version 0.1
|
||||
project.menu.group=Applications
|
||||
project.menu.comment=Marbles Version 0.1
|
||||
project.menu.icon=marbles_icon.(null)
|
||||
project.menu.need.terminal=0
|
||||
|
||||
project.configure.options=
|
||||
|
||||
anjuta.program.arguments=
|
||||
|
||||
project.config.disable.overwriting=0 0 0 0 0 0 0 0 0
|
||||
project.config.extra.modules.before=
|
||||
project.config.extra.modules.after=
|
||||
|
||||
module.incude.name=include
|
||||
module.incude.type=
|
||||
module.incude.expanded=0
|
||||
module.incude.files=
|
||||
|
||||
module.source.name=src
|
||||
module.source.type=
|
||||
module.source.expanded=0
|
||||
module.source.files=\
|
||||
dynlist.c dynlist.h sndsrv.c sndsrv.h menu.h menu.c sdl.c \
|
||||
sdl.h cfg.h cfg.c levels.h levels.c game.h game.c timer.h timer.c \
|
||||
profile.h profile.c file.h file.c \
|
||||
main.c
|
||||
|
||||
module.pixmap.name=pixmaps
|
||||
module.pixmap.type=
|
||||
module.pixmap.expanded=0
|
||||
module.pixmap.files=
|
||||
|
||||
module.data.name=data
|
||||
module.data.type=
|
||||
module.data.expanded=0
|
||||
module.data.files=
|
||||
|
||||
module.help.name=help
|
||||
module.help.type=
|
||||
module.help.expanded=0
|
||||
module.help.files=
|
||||
|
||||
module.doc.name=doc
|
||||
module.doc.type=
|
||||
module.doc.expanded=0
|
||||
module.doc.files=
|
||||
|
||||
module.po.expanded=0
|
||||
module.po.files=
|
||||
|
||||
compiler.options.supports=
|
||||
|
||||
compiler.options.include.paths=
|
||||
|
||||
compiler.options.library.paths=
|
||||
|
||||
compiler.options.libraries=
|
||||
compiler.options.libraries.selected=
|
||||
|
||||
compiler.options.defines=
|
||||
|
||||
compiler.options.warning.buttons=0 0 1 1 1 1 1 1 1 1 1 0 1 1 0 1
|
||||
|
||||
compiler.options.optimize.buttons=0 1 0 0
|
||||
|
||||
compiler.options.other.buttons=1 0
|
||||
|
||||
compiler.options.other.c.flags=
|
||||
|
||||
compiler.options.other.l.flags=
|
||||
|
||||
compiler.options.other.l.libs=
|
||||
|
||||
project.source.paths=
|
||||
|
||||
75
project/jni/application/lmarbles-1.0.8/Makefile.am
Normal file
@@ -0,0 +1,75 @@
|
||||
SUBDIRS = src
|
||||
|
||||
EXTRA_DIST = lmarbles.spec AUTHORS COPYING ChangeLog INSTALL README \
|
||||
README-SDL.txt TODO LMarbles.prj lmarbles32.gif lmarbles48.gif \
|
||||
lmarbles.desktop.in
|
||||
|
||||
desktopdir = $(datadir)/applications
|
||||
desktop_DATA = lmarbles.desktop
|
||||
icondir = $(datadir)/icons
|
||||
icon_DATA = lmarbles48.gif
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
WIN32_TEXT = AUTHORS COPYING ChangeLog INSTALL README README-SDL.txt TODO marbles.spec
|
||||
WIN32_LOCAL_DLL = SDL.dll SDL_mixer.dll
|
||||
WIN32_SYS_DLL = msvcrt.dll
|
||||
|
||||
lmarbles.desktop:
|
||||
@sed -e "s+Icon=+Icon=$(datadir)/icons/lmarbles48.gif+" \
|
||||
< lmarbles.desktop.in > lmarbles.desktop
|
||||
|
||||
win32text: $(WIN32_TEXT)
|
||||
@echo Converting text files for win32 installer
|
||||
@-rm -rf ./win32text
|
||||
@mkdir ./win32text
|
||||
@for textfile in $(WIN32_TEXT); do \
|
||||
$(AWK) '{printf "%s\r\n",$$0}' $$textfile > ./win32text/$$textfile ; \
|
||||
done
|
||||
|
||||
win32-installer-script: @win32_inst_script@
|
||||
|
||||
@win32_inst_script@: win32text
|
||||
@echo Generating win32 installer script
|
||||
@echo "[Setup]" > $@
|
||||
@echo "AppName=@appname@" >> $@
|
||||
@echo "AppVerName=@appname@ $(VERSION)" >> $@
|
||||
@echo "AppPublisher=Michael Speck" >> $@
|
||||
@echo "AppPublisherURL=http://lgames.sourceforge.net/index.php?project=@appname@" >> $@
|
||||
@echo "AppSupportURL=http://lgames.sourceforge.net/index.php?project=@appname@" >> $@
|
||||
@echo "AppUpdatesURL=http://lgames.sourceforge.net/index.php?project=@appname@" >> $@
|
||||
@echo "DefaultDirName={pf}\\$(PACKAGE)" >> $@
|
||||
@echo "DefaultGroupName=@appname@" >> $@
|
||||
@echo "OutputDir=." >> $@
|
||||
@echo "Uninstallable=yes" >> $@
|
||||
@echo "AlwaysCreateUninstallIcon=yes" >> $@
|
||||
@echo "AdminPrivilegesRequired=1" >> $@
|
||||
@echo "[Tasks]" >> $@
|
||||
@echo "Name: \"desktopicon\"; Description: \"Create a &desktop icon\"; GroupDescription: \"Additional icons:\"" >> $@
|
||||
@echo "[Files]" >> $@
|
||||
@(cd win32dlls; for file in $(WIN32_LOCAL_DLL); do \
|
||||
echo "Source: \"`pwd -W`\\$$file\"; DestDir: \"{app}\"; CopyMode: alwaysoverwrite" >> $@; \
|
||||
done)
|
||||
@(cd win32dlls; for file in $(WIN32_SYS_DLL); do \
|
||||
echo "Source: \"`pwd -W`\\$$file\"; DestDir: \"{sys}\"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall" >> $@; \
|
||||
done)
|
||||
@echo "Source: \"win32text\\*.*\"; DestDir: \"{app}\"; CopyMode: alwaysoverwrite" >> $@;
|
||||
@list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
(cd $$subdir \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) win32-install-script); \
|
||||
done
|
||||
@echo "[Icons]" >> $@
|
||||
@echo "Name: \"{group}\\@appname@\"; Filename: \"{app}\\$(PACKAGE)$(EXEEXT)\"; WorkingDir: \"{app}\"" >> $@
|
||||
@echo "Name: \"{group}\\@appname@ Manual\"; Filename: \"{app}\\manual\\manual.html\"" >> $@
|
||||
@echo "Name: \"{userdesktop}\\@appname@\"; Filename: \"{app}\\$(PACKAGE)$(EXEEXT)\"; WorkingDir: \"{app}\"; Tasks: \"desktopicon\"" >> $@
|
||||
@echo "[Run]" >> $@
|
||||
@echo "Filename: \"{app}\\$(PACKAGE)$(EXEEXT)\"; Description: \"Launch @appname@\"; Flags: nowait postinstall skipifsilent" >> $@
|
||||
|
||||
@$(AWK) '{printf "%s\r\n",$$0}' $@ > marbles.iss.w32
|
||||
@mv marbles.iss.w32 $@
|
||||
|
||||
win32-installer: win32-installer-script
|
||||
$(ISCC) installer.iss
|
||||
@-rm -rf win32text
|
||||
@mv setup.exe $(PACKAGE)-$(VERSION)-win32.exe
|
||||
@echo Self installer created: $(PACKAGE)-$(VERSION)-win32.exe
|
||||
730
project/jni/application/lmarbles-1.0.8/Makefile.in
Normal file
@@ -0,0 +1,730 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
|
||||
TODO acconfig.h config.guess config.sub depcomp install-sh \
|
||||
missing mkinstalldirs
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno configure.status.lineno
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icondir)"
|
||||
desktopDATA_INSTALL = $(INSTALL_DATA)
|
||||
iconDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(desktop_DATA) $(icon_DATA)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
RANLIB = @RANLIB@
|
||||
SDL_CFLAGS = @SDL_CFLAGS@
|
||||
SDL_CONFIG = @SDL_CONFIG@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appname = @appname@
|
||||
arch_flag = @arch_flag@
|
||||
ascii_flag = @ascii_flag@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inst_dir = @inst_dir@
|
||||
inst_flag = @inst_flag@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mixer_flag = @mixer_flag@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
prf_dir = @prf_dir@
|
||||
prf_flag = @prf_flag@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sound_flag = @sound_flag@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
win32_deps = @win32_deps@
|
||||
win32_inst_script = @win32_inst_script@
|
||||
SUBDIRS = src
|
||||
EXTRA_DIST = lmarbles.spec AUTHORS COPYING ChangeLog INSTALL README \
|
||||
README-SDL.txt TODO LMarbles.prj lmarbles32.gif lmarbles48.gif \
|
||||
lmarbles.desktop.in
|
||||
|
||||
desktopdir = $(datadir)/applications
|
||||
desktop_DATA = lmarbles.desktop
|
||||
icondir = $(datadir)/icons
|
||||
icon_DATA = lmarbles48.gif
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
WIN32_TEXT = AUTHORS COPYING ChangeLog INSTALL README README-SDL.txt TODO marbles.spec
|
||||
WIN32_LOCAL_DLL = SDL.dll SDL_mixer.dll
|
||||
WIN32_SYS_DLL = msvcrt.dll
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
|
||||
config.h: stamp-h1
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h1; \
|
||||
$(MAKE) stamp-h1; \
|
||||
else :; fi
|
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||
$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h stamp-h1
|
||||
uninstall-info-am:
|
||||
install-desktopDATA: $(desktop_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(desktopdir)" || $(mkdir_p) "$(DESTDIR)$(desktopdir)"
|
||||
@list='$(desktop_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \
|
||||
$(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-desktopDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(desktop_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(desktopdir)/$$f"; \
|
||||
done
|
||||
install-iconDATA: $(icon_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)"
|
||||
@list='$(icon_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
|
||||
$(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-iconDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(icon_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(icondir)/$$f"; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& cd $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||
distuninstallcheck:
|
||||
@cd $(distuninstallcheck_dir) \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(DATA) config.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icondir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-desktopDATA install-iconDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-desktopDATA uninstall-iconDATA \
|
||||
uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
|
||||
check-am clean clean-generic clean-recursive ctags \
|
||||
ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
|
||||
dist-tarZ dist-zip distcheck distclean distclean-generic \
|
||||
distclean-hdr distclean-recursive distclean-tags \
|
||||
distcleancheck distdir distuninstallcheck dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-desktopDATA install-exec \
|
||||
install-exec-am install-iconDATA install-info install-info-am \
|
||||
install-man install-strip installcheck installcheck-am \
|
||||
installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic maintainer-clean-recursive \
|
||||
mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
|
||||
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-desktopDATA uninstall-iconDATA uninstall-info-am
|
||||
|
||||
|
||||
lmarbles.desktop:
|
||||
@sed -e "s+Icon=+Icon=$(datadir)/icons/lmarbles48.gif+" \
|
||||
< lmarbles.desktop.in > lmarbles.desktop
|
||||
|
||||
win32text: $(WIN32_TEXT)
|
||||
@echo Converting text files for win32 installer
|
||||
@-rm -rf ./win32text
|
||||
@mkdir ./win32text
|
||||
@for textfile in $(WIN32_TEXT); do \
|
||||
$(AWK) '{printf "%s\r\n",$$0}' $$textfile > ./win32text/$$textfile ; \
|
||||
done
|
||||
|
||||
win32-installer-script: @win32_inst_script@
|
||||
|
||||
@win32_inst_script@: win32text
|
||||
@echo Generating win32 installer script
|
||||
@echo "[Setup]" > $@
|
||||
@echo "AppName=@appname@" >> $@
|
||||
@echo "AppVerName=@appname@ $(VERSION)" >> $@
|
||||
@echo "AppPublisher=Michael Speck" >> $@
|
||||
@echo "AppPublisherURL=http://lgames.sourceforge.net/index.php?project=@appname@" >> $@
|
||||
@echo "AppSupportURL=http://lgames.sourceforge.net/index.php?project=@appname@" >> $@
|
||||
@echo "AppUpdatesURL=http://lgames.sourceforge.net/index.php?project=@appname@" >> $@
|
||||
@echo "DefaultDirName={pf}\\$(PACKAGE)" >> $@
|
||||
@echo "DefaultGroupName=@appname@" >> $@
|
||||
@echo "OutputDir=." >> $@
|
||||
@echo "Uninstallable=yes" >> $@
|
||||
@echo "AlwaysCreateUninstallIcon=yes" >> $@
|
||||
@echo "AdminPrivilegesRequired=1" >> $@
|
||||
@echo "[Tasks]" >> $@
|
||||
@echo "Name: \"desktopicon\"; Description: \"Create a &desktop icon\"; GroupDescription: \"Additional icons:\"" >> $@
|
||||
@echo "[Files]" >> $@
|
||||
@(cd win32dlls; for file in $(WIN32_LOCAL_DLL); do \
|
||||
echo "Source: \"`pwd -W`\\$$file\"; DestDir: \"{app}\"; CopyMode: alwaysoverwrite" >> $@; \
|
||||
done)
|
||||
@(cd win32dlls; for file in $(WIN32_SYS_DLL); do \
|
||||
echo "Source: \"`pwd -W`\\$$file\"; DestDir: \"{sys}\"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall" >> $@; \
|
||||
done)
|
||||
@echo "Source: \"win32text\\*.*\"; DestDir: \"{app}\"; CopyMode: alwaysoverwrite" >> $@;
|
||||
@list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
(cd $$subdir \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) win32-install-script); \
|
||||
done
|
||||
@echo "[Icons]" >> $@
|
||||
@echo "Name: \"{group}\\@appname@\"; Filename: \"{app}\\$(PACKAGE)$(EXEEXT)\"; WorkingDir: \"{app}\"" >> $@
|
||||
@echo "Name: \"{group}\\@appname@ Manual\"; Filename: \"{app}\\manual\\manual.html\"" >> $@
|
||||
@echo "Name: \"{userdesktop}\\@appname@\"; Filename: \"{app}\\$(PACKAGE)$(EXEEXT)\"; WorkingDir: \"{app}\"; Tasks: \"desktopicon\"" >> $@
|
||||
@echo "[Run]" >> $@
|
||||
@echo "Filename: \"{app}\\$(PACKAGE)$(EXEEXT)\"; Description: \"Launch @appname@\"; Flags: nowait postinstall skipifsilent" >> $@
|
||||
|
||||
@$(AWK) '{printf "%s\r\n",$$0}' $@ > marbles.iss.w32
|
||||
@mv marbles.iss.w32 $@
|
||||
|
||||
win32-installer: win32-installer-script
|
||||
$(ISCC) installer.iss
|
||||
@-rm -rf win32text
|
||||
@mv setup.exe $(PACKAGE)-$(VERSION)-win32.exe
|
||||
@echo Self installer created: $(PACKAGE)-$(VERSION)-win32.exe
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
0
project/jni/application/lmarbles-1.0.8/NEWS
Normal file
82
project/jni/application/lmarbles-1.0.8/README
Normal file
@@ -0,0 +1,82 @@
|
||||
|
||||
LMarbles
|
||||
|
||||
an Atomix-like game
|
||||
by Michael Speck
|
||||
|
||||
********************
|
||||
I. Requirements
|
||||
II. Installation
|
||||
III. Manual
|
||||
IV. Feedback
|
||||
********************
|
||||
|
||||
********************
|
||||
I. Requirements
|
||||
********************
|
||||
LMarbles runs in X and requires SDL and SDL_mixer. (both any version)
|
||||
|
||||
********************
|
||||
II. Installation
|
||||
********************
|
||||
Enter your favorite shell and type in the following stuff (in the
|
||||
directory you extracted the LBreakout source)
|
||||
> ./configure [--disable-sound] [--disable-install] [--enable-ascii]
|
||||
[--localstatedir=HIDIR]
|
||||
--disable-sound: no sound
|
||||
--disable-install: no installation; play from source directory
|
||||
--enable-asci: for big-endian machines
|
||||
--localstatedir: install global highscores to this directory
|
||||
REPLACES --with-profile-path TO COMPLY
|
||||
WITH AUTOCONF; THE DEFAULT LOCATION NOW
|
||||
DEPENDS ON YOUR DISTRIBUTION: PREVIOUSLY
|
||||
IT WAS /var/lib/games. USE
|
||||
--localstatedir=/var/lib/games
|
||||
FOR EXISTING HIGHSCORES.
|
||||
> make
|
||||
> su (become root)
|
||||
> make install (if install wasn't disabled)
|
||||
> exit (become user again)
|
||||
> lmarbles
|
||||
|
||||
Building on Win32:
|
||||
1) Install the following win32 tools:
|
||||
MinGW
|
||||
MSYS
|
||||
Inno Setup 2
|
||||
2) Install the following win32 libaries:
|
||||
SDL (you might need to edit sdl-config)
|
||||
SDL_mixer
|
||||
3) From the build root, create win32dll directory and copy the following
|
||||
win32 dlls to it:
|
||||
SDL.dll
|
||||
SDL_mixer.dll
|
||||
msvcrt.dll (freely available from Microsoft)
|
||||
4) configure will need to find SDL.dll. You can either register SDL.dll
|
||||
or simply copy it to the root build directory.
|
||||
5) Setup environment. To get things to compile, I setup the following
|
||||
environment variables:
|
||||
SDL_CONFIG - fully qualified path to sdl-config
|
||||
CFLAGS - tell build process where to find include files
|
||||
LDFLAGS - tell build process where to find libraries
|
||||
PATH - ensure that Inno Setup 2 iscc is in the PATH
|
||||
6) Do a full build by issueing the following commands:
|
||||
configure --disable-install
|
||||
make
|
||||
7) Create a win32 installer by issueing the following command:
|
||||
make win32_installer
|
||||
|
||||
You'll find lmarbles-<version>-win32.exe in the build directory. It
|
||||
is a standalone installer for marbles.
|
||||
|
||||
********************
|
||||
III. Manual
|
||||
********************
|
||||
For more information about the game see src/manual/manual.html.
|
||||
|
||||
********************
|
||||
IV. Feedback
|
||||
********************
|
||||
Please visit http://lgames.sf.net if you have any suggestions or
|
||||
problems.
|
||||
|
||||
13
project/jni/application/lmarbles-1.0.8/README-SDL.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
Please distribute this file with the SDL runtime environment:
|
||||
|
||||
The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library
|
||||
designed to make it easy to write multi-media software, such as games and
|
||||
emulators.
|
||||
|
||||
The Simple DirectMedia Layer library source code is available from:
|
||||
http://www.libsdl.org/
|
||||
|
||||
This library is distributed under the terms of the GNU LGPL license:
|
||||
http://www.gnu.org/copyleft/lesser.html
|
||||
|
||||
1
project/jni/application/lmarbles-1.0.8/TODO
Normal file
@@ -0,0 +1 @@
|
||||
mr.bones's suggestions
|
||||
13
project/jni/application/lmarbles-1.0.8/acconfig.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#undef ENABLE_NLS
|
||||
#undef HAVE_CATGETS
|
||||
#undef HAVE_GETTEXT
|
||||
#undef HAVE_LC_MESSAGES
|
||||
#undef HAVE_STPCPY
|
||||
#undef HAVE_LIBSM
|
||||
#undef PACKAGE_LOCALE_DIR
|
||||
#undef PACKAGE_DOC_DIR
|
||||
#undef PACKAGE_DATA_DIR
|
||||
#undef PACKAGE_PIXMAPS_DIR
|
||||
#undef PACKAGE_HELP_DIR
|
||||
#undef PACKAGE_MENU_DIR
|
||||
#undef PACKAGE_SOURCE_DIR
|
||||
175
project/jni/application/lmarbles-1.0.8/acinclude.m4
Normal file
@@ -0,0 +1,175 @@
|
||||
# Configure paths for SDL
|
||||
# Sam Lantinga 9/21/99
|
||||
# stolen from Manish Singh
|
||||
# stolen back from Frank Belew
|
||||
# stolen from Manish Singh
|
||||
# Shamelessly stolen from Owen Taylor
|
||||
|
||||
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
|
||||
dnl
|
||||
AC_DEFUN([AM_PATH_SDL],
|
||||
[dnl
|
||||
dnl Get the cflags and libraries from the sdl-config script
|
||||
dnl
|
||||
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
|
||||
sdl_prefix="$withval", sdl_prefix="")
|
||||
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
|
||||
sdl_exec_prefix="$withval", sdl_exec_prefix="")
|
||||
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
|
||||
, enable_sdltest=yes)
|
||||
|
||||
if test x$sdl_exec_prefix != x ; then
|
||||
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
|
||||
if test x${SDL_CONFIG+set} != xset ; then
|
||||
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
|
||||
fi
|
||||
fi
|
||||
if test x$sdl_prefix != x ; then
|
||||
sdl_args="$sdl_args --prefix=$sdl_prefix"
|
||||
if test x${SDL_CONFIG+set} != xset ; then
|
||||
SDL_CONFIG=$sdl_prefix/bin/sdl-config
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_REQUIRE([AC_CANONICAL_TARGET])
|
||||
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
|
||||
AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
|
||||
min_sdl_version=ifelse([$1], ,0.11.0,$1)
|
||||
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
||||
no_sdl=""
|
||||
if test "$SDL_CONFIG" = "no" ; then
|
||||
no_sdl=yes
|
||||
else
|
||||
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
||||
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
||||
|
||||
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||
if test "x$enable_sdltest" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed SDL is sufficiently new. (Also sanity
|
||||
dnl checks the results of sdl-config to some extent
|
||||
dnl
|
||||
rm -f conf.sdltest
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "SDL.h"
|
||||
|
||||
char*
|
||||
my_strdup (char *str)
|
||||
{
|
||||
char *new_str;
|
||||
|
||||
if (str)
|
||||
{
|
||||
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
|
||||
strcpy (new_str, str);
|
||||
}
|
||||
else
|
||||
new_str = NULL;
|
||||
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
int major, minor, micro;
|
||||
char *tmp_version;
|
||||
|
||||
/* This hangs on some systems (?)
|
||||
system ("touch conf.sdltest");
|
||||
*/
|
||||
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
|
||||
|
||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||
tmp_version = my_strdup("$min_sdl_version");
|
||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
||||
printf("%s, bad version string\n", "$min_sdl_version");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (($sdl_major_version > major) ||
|
||||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
|
||||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
|
||||
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
|
||||
printf("*** best to upgrade to the required version.\n");
|
||||
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
|
||||
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
|
||||
printf("*** config.cache before re-running configure\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
if test "x$no_sdl" = x ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
if test "$SDL_CONFIG" = "no" ; then
|
||||
echo "*** The sdl-config script installed by SDL could not be found"
|
||||
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the SDL_CONFIG environment variable to the"
|
||||
echo "*** full path to sdl-config."
|
||||
else
|
||||
if test -f conf.sdltest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run SDL test program, checking why..."
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include "SDL.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{ return 0; }
|
||||
#undef main
|
||||
#define main K_and_R_C_main
|
||||
], [ return 0; ],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding SDL or finding the wrong"
|
||||
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system"
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
|
||||
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
|
||||
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
SDL_CFLAGS=""
|
||||
SDL_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(SDL_CFLAGS)
|
||||
AC_SUBST(SDL_LIBS)
|
||||
rm -f conf.sdltest
|
||||
])
|
||||
863
project/jni/application/lmarbles-1.0.8/aclocal.m4
vendored
Normal file
@@ -0,0 +1,863 @@
|
||||
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005 Free Software Foundation, Inc.
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_AUTOMAKE_VERSION(VERSION)
|
||||
# ----------------------------
|
||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||
# generated from the m4 files accompanying Automake X.Y.
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
||||
|
||||
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||
# -------------------------------
|
||||
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.9.6])])
|
||||
|
||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||
#
|
||||
# Of course, Automake must honor this variable whenever it calls a
|
||||
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||
# depending on how configure is run. This is pretty annoying, since
|
||||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||
# source directory, any form will work fine, but in subdirectories a
|
||||
# relative path needs to be adjusted first.
|
||||
#
|
||||
# $ac_aux_dir/missing
|
||||
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||
# $top_srcdir/$ac_aux_dir/missing
|
||||
# fails if $ac_aux_dir is absolute,
|
||||
# fails when called from a subdirectory in a VPATH build with
|
||||
# a relative $ac_aux_dir
|
||||
#
|
||||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||
# harmless because $srcdir is `.', but things will broke when you
|
||||
# start a VPATH build or use an absolute $srcdir.
|
||||
#
|
||||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||
# and then we would define $MISSING as
|
||||
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# This will work as long as MISSING is not called from configure, because
|
||||
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||
# However there are other variables, like CC, which are often used in
|
||||
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||
#
|
||||
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||
# configured tree to be moved without reconfiguration.
|
||||
|
||||
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||
[dnl Rely on autoconf to set up CDPATH properly.
|
||||
AC_PREREQ([2.50])dnl
|
||||
# expand $ac_aux_dir to an absolute path
|
||||
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||
])
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 7
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ(2.52)dnl
|
||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])
|
||||
AC_SUBST([$1_FALSE])
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 8
|
||||
|
||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
# will think it sees a *use*, and therefore will trigger all it's
|
||||
# C support machinery. Also note that it means that autoscan, seeing
|
||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||
|
||||
|
||||
# _AM_DEPENDENCIES(NAME)
|
||||
# ----------------------
|
||||
# See how the compiler implements dependency checking.
|
||||
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||
# We try a few techniques and use that to set a single cache variable.
|
||||
#
|
||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||
# dependency, and given that the user is not expected to run this macro,
|
||||
# just rely on AC_PROG_CC.
|
||||
AC_DEFUN([_AM_DEPENDENCIES],
|
||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||
|
||||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||
[depcc="$$1" am_compiler_list=])
|
||||
|
||||
AC_CACHE_CHECK([dependency style of $depcc],
|
||||
[am_cv_$1_dependencies_compiler_type],
|
||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||
# We make a subdir and do the tests there. Otherwise we can end up
|
||||
# making bogus files that we don't know about and never remove. For
|
||||
# instance it was reported that on HP-UX the gcc test will end up
|
||||
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||
# in D'.
|
||||
mkdir conftest.dir
|
||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||
# using a relative directory.
|
||||
cp "$am_depcomp" conftest.dir
|
||||
cd conftest.dir
|
||||
# We will build objects and dependencies in a subdirectory because
|
||||
# it helps to detect inapplicable dependency modes. For instance
|
||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||
# side effect of compilation, but ICC will put the dependencies in
|
||||
# the current directory while Tru64 will put them in the object
|
||||
# directory.
|
||||
mkdir sub
|
||||
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
if test "$am_compiler_list" = ""; then
|
||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||
fi
|
||||
for depmode in $am_compiler_list; do
|
||||
# Setup a source with many dependencies, because some compilers
|
||||
# like to wrap large dependency lists on column 80 (with \), and
|
||||
# we should not choose a depcomp mode which is confused by this.
|
||||
#
|
||||
# We need to recreate these files for each test, as the compiler may
|
||||
# overwrite some of them when testing with obscure command lines.
|
||||
# This happens at least with the AIX C compiler.
|
||||
: > sub/conftest.c
|
||||
for i in 1 2 3 4 5 6; do
|
||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||
# Solaris 8's {/usr,}/bin/sh.
|
||||
touch sub/conftst$i.h
|
||||
done
|
||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||
|
||||
case $depmode in
|
||||
nosideeffect)
|
||||
# after this tag, mechanisms are not by side-effect, so they'll
|
||||
# only be used when explicitly requested
|
||||
if test "x$enable_dependency_tracking" = xyes; then
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
;;
|
||||
none) break ;;
|
||||
esac
|
||||
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||
# handle `-M -o', and we need to detect this.
|
||||
if depmode=$depmode \
|
||||
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
||||
>/dev/null 2>conftest.err &&
|
||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||
# icc doesn't choke on unknown options, it will just issue warnings
|
||||
# or remarks (even with -Werror). So we grep stderr for any message
|
||||
# that says an option was ignored or not supported.
|
||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||
# The diagnosis changed in icc 8.0:
|
||||
# icc: Command line remark: option '-MP' not supported
|
||||
if (grep 'ignoring option' conftest.err ||
|
||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||
am_cv_$1_dependencies_compiler_type=$depmode
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rf conftest.dir
|
||||
else
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
fi
|
||||
])
|
||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||
AM_CONDITIONAL([am__fastdep$1], [
|
||||
test "x$enable_dependency_tracking" != xno \
|
||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||
])
|
||||
|
||||
|
||||
# AM_SET_DEPDIR
|
||||
# -------------
|
||||
# Choose a directory name for dependency files.
|
||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||
AC_DEFUN([AM_SET_DEPDIR],
|
||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||
])
|
||||
|
||||
|
||||
# AM_DEP_TRACK
|
||||
# ------------
|
||||
AC_DEFUN([AM_DEP_TRACK],
|
||||
[AC_ARG_ENABLE(dependency-tracking,
|
||||
[ --disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||
if test "x$enable_dependency_tracking" != xno; then
|
||||
am_depcomp="$ac_aux_dir/depcomp"
|
||||
AMDEPBACKSLASH='\'
|
||||
fi
|
||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||
AC_SUBST([AMDEPBACKSLASH])
|
||||
])
|
||||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
#serial 3
|
||||
|
||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[for mf in $CONFIG_FILES; do
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
# Check whether this is an Automake generated Makefile or not.
|
||||
# We used to match only the files named `Makefile.in', but
|
||||
# some people rename them; so instead we look at the file content.
|
||||
# Grep'ing the first line is not enough: some people post-process
|
||||
# each Makefile.in and add a new line on top of each file to say so.
|
||||
# So let's grep whole file.
|
||||
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
continue
|
||||
fi
|
||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||
# from the Makefile without running `make'.
|
||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||
test -z "$DEPDIR" && continue
|
||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||
test -z "am__include" && continue
|
||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||
U=`sed -n 's/^U = //p' < "$mf"`
|
||||
# Find all dependency output files, they are included files with
|
||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||
# expansion.
|
||||
for file in `sed -n "
|
||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||
# Make sure the directory exists.
|
||||
test -f "$dirpart/$file" && continue
|
||||
fdir=`AS_DIRNAME(["$file"])`
|
||||
AS_MKDIR_P([$dirpart/$fdir])
|
||||
# echo "creating $dirpart/$file"
|
||||
echo '# dummy' > "$dirpart/$file"
|
||||
done
|
||||
done
|
||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
|
||||
|
||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# -----------------------------
|
||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||
#
|
||||
# This code is only required when automatic dependency tracking
|
||||
# is enabled. FIXME. This creates each `.P' file that we will
|
||||
# need in order to bootstrap the dependency handling code.
|
||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AC_CONFIG_COMMANDS([depfiles],
|
||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 8
|
||||
|
||||
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
||||
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
||||
|
||||
# Do all the work for Automake. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 12
|
||||
|
||||
# This macro actually does too much. Some checks are only needed if
|
||||
# your package does certain things. But this isn't really a big deal.
|
||||
|
||||
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||
# -----------------------------------------------
|
||||
# The call with PACKAGE and VERSION arguments is the old style
|
||||
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||
# and VERSION should now be passed to AC_INIT and removed from
|
||||
# the call to AM_INIT_AUTOMAKE.
|
||||
# We support both call styles for the transition. After
|
||||
# the next Automake release, Autoconf can make the AC_INIT
|
||||
# arguments mandatory, and then we can depend on a new Autoconf
|
||||
# release and drop the old call support.
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_PREREQ([2.58])dnl
|
||||
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||
dnl the ones we care about.
|
||||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||
# test to see if srcdir already configured
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||
test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
|
||||
# test whether we have cygpath
|
||||
if test -z "$CYGPATH_W"; then
|
||||
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||
CYGPATH_W='cygpath -w'
|
||||
else
|
||||
CYGPATH_W=echo
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([CYGPATH_W])
|
||||
|
||||
# Define the identity of the package.
|
||||
dnl Distinguish between old-style and new-style calls.
|
||||
m4_ifval([$2],
|
||||
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||
AC_SUBST([PACKAGE], [$1])dnl
|
||||
AC_SUBST([VERSION], [$2])],
|
||||
[_AM_SET_OPTIONS([$1])dnl
|
||||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||
|
||||
_AM_IF_OPTION([no-define],,
|
||||
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||
|
||||
# Some tools Automake needs.
|
||||
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||
AM_PROG_INSTALL_SH
|
||||
AM_PROG_INSTALL_STRIP
|
||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||
# We need awk for the "check" target. The system "awk" is bad on
|
||||
# some platforms.
|
||||
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
||||
[_AM_PROG_TAR([v7])])])
|
||||
_AM_IF_OPTION([no-dependencies],,
|
||||
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||
[_AM_DEPENDENCIES(CC)],
|
||||
[define([AC_PROG_CC],
|
||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||
[_AM_DEPENDENCIES(CXX)],
|
||||
[define([AC_PROG_CXX],
|
||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
# When config.status generates a header, we must update the stamp-h file.
|
||||
# This file resides in the same directory as the config header
|
||||
# that is generated. The stamp files are numbered to have different names.
|
||||
|
||||
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||
# loop where config.status creates the headers, so we can generate
|
||||
# our stamp files there.
|
||||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||
[# Compute $1's index in $config_headers.
|
||||
_am_stamp_count=1
|
||||
for _am_header in $config_headers :; do
|
||||
case $_am_header in
|
||||
$1 | $1:* )
|
||||
break ;;
|
||||
* )
|
||||
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||
esac
|
||||
done
|
||||
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_SH
|
||||
# ------------------
|
||||
# Define $install_sh.
|
||||
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||
AC_SUBST(install_sh)])
|
||||
|
||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# Check whether the underlying file-system supports filenames
|
||||
# with a leading dot. For instance MS-DOS doesn't.
|
||||
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||
[rm -rf .tst 2>/dev/null
|
||||
mkdir .tst 2>/dev/null
|
||||
if test -d .tst; then
|
||||
am__leading_dot=.
|
||||
else
|
||||
am__leading_dot=_
|
||||
fi
|
||||
rmdir .tst 2>/dev/null
|
||||
AC_SUBST([am__leading_dot])])
|
||||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 3
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
am__doit:
|
||||
@echo done
|
||||
.PHONY: am__doit
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
echo "include confinc" > confmf
|
||||
# We grep out `Entering directory' and `Leaving directory'
|
||||
# messages which can occur if `w' ends up in MAKEFLAGS.
|
||||
# In particular we don't look at `^make:' because GNU make might
|
||||
# be invoked under some other name (usually "gmake"), in which
|
||||
# case it prints its new name instead of `make'.
|
||||
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
||||
am__include=include
|
||||
am__quote=
|
||||
_am_result=GNU
|
||||
fi
|
||||
# Now try BSD make style include.
|
||||
if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||
am__include=.include
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([am__include])
|
||||
AC_SUBST([am__quote])
|
||||
AC_MSG_RESULT([$_am_result])
|
||||
rm -f confinc confmf
|
||||
])
|
||||
|
||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||
# ------------------------------
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||
$1=${$1-"${am_missing_run}$2"}
|
||||
AC_SUBST($1)])
|
||||
|
||||
|
||||
# AM_MISSING_HAS_RUN
|
||||
# ------------------
|
||||
# Define MISSING if not defined so far and test if it supports --run.
|
||||
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# Use eval to expand $SHELL
|
||||
if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
AC_MSG_WARN([`missing' script is too old or missing])
|
||||
fi
|
||||
])
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_MKDIR_P
|
||||
# ---------------
|
||||
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
||||
#
|
||||
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
||||
# created by `make install' are always world readable, even if the
|
||||
# installer happens to have an overly restrictive umask (e.g. 077).
|
||||
# This was a mistake. There are at least two reasons why we must not
|
||||
# use `-m 0755':
|
||||
# - it causes special bits like SGID to be ignored,
|
||||
# - it may be too restrictive (some setups expect 775 directories).
|
||||
#
|
||||
# Do not use -m 0755 and let people choose whatever they expect by
|
||||
# setting umask.
|
||||
#
|
||||
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
||||
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
||||
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
||||
# concurrently, both version can detect that a/ is missing, but only
|
||||
# one can create it and the other will error out. Consequently we
|
||||
# restrict ourselves to GNU make (using the --version option ensures
|
||||
# this.)
|
||||
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||
# We used to keeping the `.' as first argument, in order to
|
||||
# allow $(mkdir_p) to be used without argument. As in
|
||||
# $(mkdir_p) $(somedir)
|
||||
# where $(somedir) is conditionally defined. However this is wrong
|
||||
# for two reasons:
|
||||
# 1. if the package is installed by a user who cannot write `.'
|
||||
# make install will fail,
|
||||
# 2. the above comment should most certainly read
|
||||
# $(mkdir_p) $(DESTDIR)$(somedir)
|
||||
# so it does not work when $(somedir) is undefined and
|
||||
# $(DESTDIR) is not.
|
||||
# To support the latter case, we have to write
|
||||
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
||||
# so the `.' trick is pointless.
|
||||
mkdir_p='mkdir -p --'
|
||||
else
|
||||
# On NextStep and OpenStep, the `mkdir' command does not
|
||||
# recognize any option. It will interpret all options as
|
||||
# directories to create, and then abort because `.' already
|
||||
# exists.
|
||||
for d in ./-p ./--version;
|
||||
do
|
||||
test -d $d && rmdir $d
|
||||
done
|
||||
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||
mkdir_p='$(mkinstalldirs)'
|
||||
else
|
||||
mkdir_p='$(install_sh) -d'
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([mkdir_p])])
|
||||
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 3
|
||||
|
||||
# _AM_MANGLE_OPTION(NAME)
|
||||
# -----------------------
|
||||
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
# _AM_SET_OPTION(NAME)
|
||||
# ------------------------------
|
||||
# Set option NAME. Presently that only means defining a flag for this option.
|
||||
AC_DEFUN([_AM_SET_OPTION],
|
||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||
|
||||
# _AM_SET_OPTIONS(OPTIONS)
|
||||
# ----------------------------------
|
||||
# OPTIONS is a space-separated list of Automake options.
|
||||
AC_DEFUN([_AM_SET_OPTIONS],
|
||||
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||
|
||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||
# -------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
AC_DEFUN([_AM_IF_OPTION],
|
||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_SANITY_CHECK
|
||||
# ---------------
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftest.file
|
||||
# Do `set' in a subshell so we don't clobber the current shell's
|
||||
# arguments. Must try -L first in case configure is actually a
|
||||
# symlink; some systems play weird games with the mod time of symlinks
|
||||
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||
# directory).
|
||||
if (
|
||||
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
||||
if test "$[*]" = "X"; then
|
||||
# -L didn't work.
|
||||
set X `ls -t $srcdir/configure conftest.file`
|
||||
fi
|
||||
rm -f conftest.file
|
||||
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||
|
||||
# If neither matched, then we have a broken ls. This can happen
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment])
|
||||
fi
|
||||
|
||||
test "$[2]" = conftest.file
|
||||
)
|
||||
then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||
Check your system clock])
|
||||
fi
|
||||
AC_MSG_RESULT(yes)])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_STRIP
|
||||
# ---------------------
|
||||
# One issue with vendor `install' (even GNU) is that you can't
|
||||
# specify the program used to strip binaries. This is especially
|
||||
# annoying in cross-compiling environments, where the build's strip
|
||||
# is unlikely to handle the host's binaries.
|
||||
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||
# always use install-sh in `make install-strip', and initialize
|
||||
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||
# Installed binaries are usually stripped using `strip' when the user
|
||||
# run `make install-strip'. However `strip' might not be the right
|
||||
# tool to use in cross-compilation environments, therefore Automake
|
||||
# will honor the `STRIP' environment variable to overrule this program.
|
||||
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||
if test "$cross_compiling" != no; then
|
||||
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||
fi
|
||||
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||
|
||||
# Check how to create a tarball. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_PROG_TAR(FORMAT)
|
||||
# --------------------
|
||||
# Check how to create a tarball in format FORMAT.
|
||||
# FORMAT should be one of `v7', `ustar', or `pax'.
|
||||
#
|
||||
# Substitute a variable $(am__tar) that is a command
|
||||
# writing to stdout a FORMAT-tarball containing the directory
|
||||
# $tardir.
|
||||
# tardir=directory && $(am__tar) > result.tar
|
||||
#
|
||||
# Substitute a variable $(am__untar) that extract such
|
||||
# a tarball read from stdin.
|
||||
# $(am__untar) < result.tar
|
||||
AC_DEFUN([_AM_PROG_TAR],
|
||||
[# Always define AMTAR for backward compatibility.
|
||||
AM_MISSING_PROG([AMTAR], [tar])
|
||||
m4_if([$1], [v7],
|
||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
||||
[m4_case([$1], [ustar],, [pax],,
|
||||
[m4_fatal([Unknown tar format])])
|
||||
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||
# Loop over all known methods to create a tar archive until one works.
|
||||
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
||||
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
||||
# Do not fold the above two line into one, because Tru64 sh and
|
||||
# Solaris sh will not grok spaces in the rhs of `-'.
|
||||
for _am_tool in $_am_tools
|
||||
do
|
||||
case $_am_tool in
|
||||
gnutar)
|
||||
for _am_tar in tar gnutar gtar;
|
||||
do
|
||||
AM_RUN_LOG([$_am_tar --version]) && break
|
||||
done
|
||||
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
||||
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
||||
am__untar="$_am_tar -xf -"
|
||||
;;
|
||||
plaintar)
|
||||
# Must skip GNU tar: if it does not support --format= it doesn't create
|
||||
# ustar tarball either.
|
||||
(tar --version) >/dev/null 2>&1 && continue
|
||||
am__tar='tar chf - "$$tardir"'
|
||||
am__tar_='tar chf - "$tardir"'
|
||||
am__untar='tar xf -'
|
||||
;;
|
||||
pax)
|
||||
am__tar='pax -L -x $1 -w "$$tardir"'
|
||||
am__tar_='pax -L -x $1 -w "$tardir"'
|
||||
am__untar='pax -r'
|
||||
;;
|
||||
cpio)
|
||||
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
||||
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
||||
am__untar='cpio -i -H $1 -d'
|
||||
;;
|
||||
none)
|
||||
am__tar=false
|
||||
am__tar_=false
|
||||
am__untar=false
|
||||
;;
|
||||
esac
|
||||
|
||||
# If the value was cached, stop now. We just wanted to have am__tar
|
||||
# and am__untar set.
|
||||
test -n "${am_cv_prog_tar_$1}" && break
|
||||
|
||||
# tar/untar a dummy directory, and stop if the command works
|
||||
rm -rf conftest.dir
|
||||
mkdir conftest.dir
|
||||
echo GrepMe > conftest.dir/file
|
||||
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
||||
rm -rf conftest.dir
|
||||
if test -s conftest.tar; then
|
||||
AM_RUN_LOG([$am__untar <conftest.tar])
|
||||
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
||||
fi
|
||||
done
|
||||
rm -rf conftest.dir
|
||||
|
||||
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
||||
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
||||
AC_SUBST([am__tar])
|
||||
AC_SUBST([am__untar])
|
||||
]) # _AM_PROG_TAR
|
||||
|
||||
m4_include([acinclude.m4])
|
||||
1317
project/jni/application/lmarbles-1.0.8/config.guess
vendored
Executable file
101
project/jni/application/lmarbles-1.0.8/config.h.in
Normal file
@@ -0,0 +1,101 @@
|
||||
/* config.h.in. Generated from configure.in by autoheader. */
|
||||
#undef ENABLE_NLS
|
||||
#undef HAVE_CATGETS
|
||||
#undef HAVE_GETTEXT
|
||||
#undef HAVE_LC_MESSAGES
|
||||
#undef HAVE_STPCPY
|
||||
#undef HAVE_LIBSM
|
||||
#undef PACKAGE_LOCALE_DIR
|
||||
#undef PACKAGE_DOC_DIR
|
||||
#undef PACKAGE_DATA_DIR
|
||||
#undef PACKAGE_PIXMAPS_DIR
|
||||
#undef PACKAGE_HELP_DIR
|
||||
#undef PACKAGE_MENU_DIR
|
||||
#undef PACKAGE_SOURCE_DIR
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Enable extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
# undef _POSIX_PTHREAD_SEMANTICS
|
||||
#endif
|
||||
#ifndef _TANDEM_SOURCE
|
||||
# undef _TANDEM_SOURCE
|
||||
#endif
|
||||
1411
project/jni/application/lmarbles-1.0.8/config.sub
vendored
Executable file
7373
project/jni/application/lmarbles-1.0.8/configure
vendored
Executable file
89
project/jni/application/lmarbles-1.0.8/configure.in
Normal file
@@ -0,0 +1,89 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(Makefile.am)
|
||||
|
||||
AC_CANONICAL_TARGET
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(lmarbles,1.0.8)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_RANLIB
|
||||
AC_EXEEXT
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
dnl check for libraries
|
||||
AC_CHECK_LIB(m, main,, AC_MSG_ERROR(lib math is needed))
|
||||
|
||||
dnl check SDL version
|
||||
AM_PATH_SDL(1.0.0,, AC_MSG_ERROR(lib SDL is needed))
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
AM_PATH_SDL(1.1.5, CFLAGS="$CFLAGS -DSDL_1_1_5",)
|
||||
|
||||
dnl check sound
|
||||
sound_flag="-DSOUND"
|
||||
mixer_flag="-lSDL_mixer"
|
||||
AC_ARG_ENABLE( sound,
|
||||
[ --disable-sound Disables sound], sound_flag=""; mixer_flag="")
|
||||
|
||||
dnl check if SDL_mixer's installed
|
||||
dnl if not: clear sound_flag and mixer_flag
|
||||
AC_CHECK_LIB(SDL_mixer, main,
|
||||
AC_MSG_RESULT("SDL_Mixer found"),
|
||||
AC_MSG_RESULT("SDL_Mixer NOT found: Audio disabled"); sound_flag=""; mixer_flag="")
|
||||
|
||||
AC_SUBST(sound_flag)
|
||||
AC_SUBST(mixer_flag)
|
||||
|
||||
dnl check ascii-flag
|
||||
ascii_flag=""
|
||||
AC_ARG_ENABLE( ascii,
|
||||
[ --enable-ascii Enables 'save as ascii' option (for big-endian)], ascii_flag="-DASCII")
|
||||
AC_SUBST(ascii_flag)
|
||||
|
||||
dnl installation & prefix path
|
||||
inst_dir="$datadir/lmarbles"
|
||||
prf_dir=$localstatedir
|
||||
|
||||
dnl check if installation was disabled
|
||||
AC_ARG_ENABLE( install,
|
||||
[ --disable-install No installation. Played from the source directory.],
|
||||
inst_dir="." prf_dir=".")
|
||||
|
||||
inst_flag="-DSRC_DIR=\\\"$inst_dir\\\""
|
||||
prf_flag="-DPRF_DIR=\\\"$prf_dir\\\""
|
||||
|
||||
AC_SUBST(inst_flag)
|
||||
AC_SUBST(prf_flag)
|
||||
AC_SUBST(inst_dir)
|
||||
AC_SUBST(prf_dir)
|
||||
|
||||
case "$host" in
|
||||
*-mingw32)
|
||||
win32="yes"
|
||||
win32_inst_script="`pwd -W`/installer.iss"
|
||||
arch_flag="-march=i586"
|
||||
win32_deps="lmarblesres.o" ;;
|
||||
*)
|
||||
win32="no"
|
||||
win32_inst_script=""
|
||||
arch_flag=""
|
||||
win32_deps="" ;;
|
||||
esac
|
||||
|
||||
AC_SUBST(win32_deps)
|
||||
AC_SUBST(arch_flag)
|
||||
|
||||
if test "x$win32" = xyes; then
|
||||
AC_PROG_AWK
|
||||
dnl AC_PROG_STRIP
|
||||
dnl AC_PROG_ISCC
|
||||
AC_SUBST(win32_inst_script)
|
||||
fi
|
||||
|
||||
appname="LMarbles"
|
||||
AC_SUBST(appname)
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile)
|
||||
522
project/jni/application/lmarbles-1.0.8/depcomp
Executable file
@@ -0,0 +1,522 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2004-05-31.23
|
||||
|
||||
# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by `PROGRAMS ARGS'.
|
||||
object Object file output by `PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputing dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit 0
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say).
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
## The second -e expression handles DOS-style file names with drive letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the `deleted header file' problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" |
|
||||
## Some versions of gcc put a space before the `:'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||
tr '
|
||||
' ' ' >> $depfile
|
||||
echo >> $depfile
|
||||
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> $depfile
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||
tmpdepfile="$stripped.u"
|
||||
if test "$libtool" = yes; then
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
|
||||
if test -f "$tmpdepfile"; then :
|
||||
else
|
||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||
tmpdepfile="$stripped.u"
|
||||
fi
|
||||
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
if test -f "$tmpdepfile"; then
|
||||
outname="$stripped.o"
|
||||
# Each line is of the form `foo.o: dependent.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
icc)
|
||||
# Intel's C compiler understands `-MD -MF file'. However on
|
||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||
# ICC 7.0 will fill foo.d with something like
|
||||
# foo.o: sub/foo.c
|
||||
# foo.o: sub/foo.h
|
||||
# which is wrong. We want:
|
||||
# sub/foo.o: sub/foo.c
|
||||
# sub/foo.o: sub/foo.h
|
||||
# sub/foo.c:
|
||||
# sub/foo.h:
|
||||
# ICC 7.1 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using \ :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||
sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in `foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# Dependencies are output in .lo.d with libtool 1.4.
|
||||
# With libtool 1.5 they are output both in $dir.libs/$base.o.d
|
||||
# and in $dir.libs/$base.o.d and $dir$base.o.d. We process the
|
||||
# latter, because the former will be cleaned when $dir.libs is
|
||||
# erased.
|
||||
tmpdepfile1="$dir.libs/$base.lo.d"
|
||||
tmpdepfile2="$dir$base.o.d"
|
||||
tmpdepfile3="$dir.libs/$base.d"
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1="$dir$base.o.d"
|
||||
tmpdepfile2="$dir$base.d"
|
||||
tmpdepfile3="$dir$base.d"
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
if test -f "$tmpdepfile1"; then
|
||||
tmpdepfile="$tmpdepfile1"
|
||||
elif test -f "$tmpdepfile2"; then
|
||||
tmpdepfile="$tmpdepfile2"
|
||||
else
|
||||
tmpdepfile="$tmpdepfile3"
|
||||
fi
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
# That's a tab and a space in the [].
|
||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for `:'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no
|
||||
for arg in "$@"; do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||
' | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E |
|
||||
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||
sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o,
|
||||
# because we must use -o when running libtool.
|
||||
"$@" || exit $?
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||
echo " " >> "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
||||
250
project/jni/application/lmarbles-1.0.8/install-sh
Executable file
@@ -0,0 +1,250 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# install - install a program, script, or datafile
|
||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
||||
#
|
||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
||||
#
|
||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||
# documentation for any purpose is hereby granted without fee, provided that
|
||||
# the above copyright notice appear in all copies and that both that
|
||||
# copyright notice and this permission notice appear in supporting
|
||||
# documentation, and that the name of M.I.T. not be used in advertising or
|
||||
# publicity pertaining to distribution of the software without specific,
|
||||
# written prior permission. M.I.T. makes no representations about the
|
||||
# suitability of this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch. It can only install one file at a time, a restriction
|
||||
# shared with many OS's install programs.
|
||||
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
transformbasename=""
|
||||
transform_arg=""
|
||||
instcmd="$mvprog"
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=""
|
||||
chgrpcmd=""
|
||||
stripcmd=""
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=""
|
||||
dst=""
|
||||
dir_arg=""
|
||||
|
||||
while [ x"$1" != x ]; do
|
||||
case $1 in
|
||||
-c) instcmd="$cpprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd="$stripprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
*) if [ x"$src" = x ]
|
||||
then
|
||||
src=$1
|
||||
else
|
||||
# this colon is to work around a 386BSD /bin/sh bug
|
||||
:
|
||||
dst=$1
|
||||
fi
|
||||
shift
|
||||
continue;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ x"$src" = x ]
|
||||
then
|
||||
echo "install: no input file specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]; then
|
||||
dst=$src
|
||||
src=""
|
||||
|
||||
if [ -d $dst ]; then
|
||||
instcmd=:
|
||||
else
|
||||
instcmd=mkdir
|
||||
fi
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
|
||||
if [ -f $src -o -d $src ]
|
||||
then
|
||||
true
|
||||
else
|
||||
echo "install: $src does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ x"$dst" = x ]
|
||||
then
|
||||
echo "install: no destination specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# If destination is a directory, append the input filename; if your system
|
||||
# does not like double slashes in filenames, you may need to add some logic
|
||||
|
||||
if [ -d $dst ]
|
||||
then
|
||||
dst="$dst"/`basename $src`
|
||||
else
|
||||
true
|
||||
fi
|
||||
fi
|
||||
|
||||
## this sed command emulates the dirname command
|
||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if [ ! -d "$dstdir" ]; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-${defaultIFS}}"
|
||||
|
||||
oIFS="${IFS}"
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
IFS="${oIFS}"
|
||||
|
||||
pathcomp=''
|
||||
|
||||
while [ $# -ne 0 ] ; do
|
||||
pathcomp="${pathcomp}${1}"
|
||||
shift
|
||||
|
||||
if [ ! -d "${pathcomp}" ] ;
|
||||
then
|
||||
$mkdirprog "${pathcomp}"
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
pathcomp="${pathcomp}/"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]
|
||||
then
|
||||
$doit $instcmd $dst &&
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||
else
|
||||
|
||||
# If we're going to rename the final executable, determine the name now.
|
||||
|
||||
if [ x"$transformarg" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
dstfile=`basename $dst $transformbasename |
|
||||
sed $transformarg`$transformbasename
|
||||
fi
|
||||
|
||||
# don't allow the sed command to completely eliminate the filename
|
||||
|
||||
if [ x"$dstfile" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# Make a temp file name in the proper directory.
|
||||
|
||||
dsttmp=$dstdir/#inst.$$#
|
||||
|
||||
# Move or copy the file name to the temp name
|
||||
|
||||
$doit $instcmd $src $dsttmp &&
|
||||
|
||||
trap "rm -f ${dsttmp}" 0 &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits
|
||||
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
|
||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||
|
||||
fi &&
|
||||
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=LMarbles
|
||||
Comment=Atomix-like enhanced puzzle game.
|
||||
Exec=lmarbles
|
||||
Icon=
|
||||
Type=Application
|
||||
Categories=Game;
|
||||
72
project/jni/application/lmarbles-1.0.8/lmarbles.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
Name: lmarbles
|
||||
Version: 1.0.6
|
||||
Release: 1cl
|
||||
Summary: Atomix-like game of moving marbles in puzzles
|
||||
Summary(pt_BR): Jogo tipo Atomix, de mover bolas de gude em labirintos
|
||||
Summary(es): Atomix-like game of moving marbles in puzzles
|
||||
Group: Games
|
||||
Group(pt_BR): Jogos
|
||||
Group(es): Juegos
|
||||
License: GPL
|
||||
URL: http://lgames.sourceforge.net/%{name}/%{name}.html
|
||||
Source: http://ftp1.sourceforge.net/lgames/%{name}-%{version}.tar.gz
|
||||
Patch: %{name}-prefsdir.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
Marbles is very similiar to Atomix and was heavily inspired by it.
|
||||
Goal is to create a more or less complex figure out of single marbles
|
||||
within a time limit to reach the next level.
|
||||
|
||||
Sounds easy? Well, there is a problem: If a marble starts to move it
|
||||
will not stop until it hits a wall or marble. And to make it even more
|
||||
interesting there are obstacles like arrows, crumbling walls and
|
||||
teleports!
|
||||
|
||||
%description -l pt_BR
|
||||
O Marbles é muito parecido com o jogo Atomix, pois foi inspirado nele.
|
||||
O objetivo é criar uma figura de bolas de gude mais ou menos complexa
|
||||
dentro de um limite de tempo.
|
||||
|
||||
Parece fácil? Bem, há um problema: quando uma bolinha de gude começa a
|
||||
se mover, só pára quando bate em uma parede ou outra bolinha. E para
|
||||
ficar mais interessante, há alguns obstáculos como caminhos de mão
|
||||
única, paredes que desmoronam e teletransporte!
|
||||
|
||||
%description -l es
|
||||
Marbles is very similiar to Atomix and was heavily inspired by it.
|
||||
Goal is to create a more or less complex figure out of single marbles
|
||||
within a time limit to reach the next level.
|
||||
|
||||
Sounds easy? Well, there is a problem: If a marble starts to move it
|
||||
will not stop until it hits a wall or marble. And to make it even more
|
||||
interesting there are obstacles like arrows, crumbling walls and
|
||||
teleports!
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
%build
|
||||
%configure --datadir=%{_datadir}
|
||||
make
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/%{_localstatedir}/games
|
||||
%makeinstall DESTDIR=%{buildroot} bindir=%{_prefix}/games
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc AUTHORS COPYING README ChangeLog %{name}/manual
|
||||
%attr(2755,root,games) %{_prefix}/games/%{name}
|
||||
%{_datadir}/games/%{name}
|
||||
%attr(0664,root,games) %config %{_localstatedir}/games/%{name}.prfs
|
||||
|
||||
%changelog
|
||||
* Thu Nov 30 2000 aurélio marinho jargas <aurelio@conectiva.com>
|
||||
+ marbles-001126-1cl
|
||||
- changed prefs dir
|
||||
- adopted
|
||||
BIN
project/jni/application/lmarbles-1.0.8/lmarbles32.gif
Normal file
|
After Width: | Height: | Size: 770 B |
BIN
project/jni/application/lmarbles-1.0.8/lmarbles48.gif
Normal file
|
After Width: | Height: | Size: 746 B |
188
project/jni/application/lmarbles-1.0.8/missing
Executable file
@@ -0,0 +1,188 @@
|
||||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing - GNU libit 0.0"
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aclocal)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`acinclude.m4' or \`configure.in'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`configure.in'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`acconfig.h' or \`configure.in'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
|
||||
if test -z "$files"; then
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
|
||||
test -z "$files" || files="$files.in"
|
||||
else
|
||||
files=`echo "$files" | sed -e 's/:/ /g'`
|
||||
fi
|
||||
test -z "$files" && files="config.h.in"
|
||||
touch $files
|
||||
;;
|
||||
|
||||
automake)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print \
|
||||
| sed 's/^\(.*\).am$/touch \1.in/' \
|
||||
| sh
|
||||
;;
|
||||
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f y.tab.h ]; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if [ ! -f y.tab.c ]; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex|flex)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f lex.yy.c ]; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||
fi
|
||||
touch $file
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||
system. You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequirements for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
40
project/jni/application/lmarbles-1.0.8/mkinstalldirs
Executable file
@@ -0,0 +1,40 @@
|
||||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Public domain
|
||||
|
||||
# $Id: mkinstalldirs,v 1.1.1.1 2000/08/05 10:36:33 michael Exp $
|
||||
|
||||
errstatus=0
|
||||
|
||||
for file
|
||||
do
|
||||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
shift
|
||||
|
||||
pathcomp=
|
||||
for d
|
||||
do
|
||||
pathcomp="$pathcomp$d"
|
||||
case "$pathcomp" in
|
||||
-* ) pathcomp=./$pathcomp ;;
|
||||
esac
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
echo "mkdir $pathcomp" 1>&2
|
||||
|
||||
mkdir "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
fi
|
||||
|
||||
pathcomp="$pathcomp/"
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# mkinstalldirs ends here
|
||||
113
project/jni/application/lmarbles-1.0.8/src/Makefile.am
Normal file
@@ -0,0 +1,113 @@
|
||||
DEFS = @DEFS@ @arch_flag@ @inst_flag@ @prf_flag@ @sound_flag@ @ascii_flag@
|
||||
|
||||
marblesres.o: win32.ico
|
||||
@echo "1 VERSIONINFO" > $(PACKAGE).rc
|
||||
@echo "FILEVERSION `echo $(VERSION) | $(AWK) '{ gsub(/\./,","); print }'`,0" >> $(PACKAGE).rc
|
||||
@echo "PRODUCTVERSION `echo $(VERSION) | $(AWK) '{ gsub(/\./,","); print }'`,0" >> $(PACKAGE).rc
|
||||
@echo "FILEFLAGSMASK 0" >> $(PACKAGE).rc
|
||||
@echo "FILEOS 0x40000" >> $(PACKAGE).rc
|
||||
@echo "FILETYPE 1" >> $(PACKAGE).rc
|
||||
@echo "{" >> $(PACKAGE).rc
|
||||
@echo " BLOCK \"StringFileInfo\"" >> $(PACKAGE).rc
|
||||
@echo " {" >> $(PACKAGE).rc
|
||||
@echo " BLOCK \"040904E4\"" >> $(PACKAGE).rc
|
||||
@echo " {" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"CompanyName\", \"LGames - Michael Speck\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"FileDescription\", \"@appname@\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"FileVersion\", \"$(VERSION)\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"InternalName\", \"$(PACKAGE)\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"LegalCopyright\", \"GNU Public License\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"OriginalFilename\", \"$(PACKAGE)$(EXEEXT)\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"ProductName\", \"@appname@\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"ProductVersion\", \"$(VERSION)\"" >> $(PACKAGE).rc
|
||||
@echo " }" >> $(PACKAGE).rc
|
||||
@echo " }" >> $(PACKAGE).rc
|
||||
@echo "}" >> $(PACKAGE).rc
|
||||
@echo "0 ICON win32.ico" >> $(PACKAGE).rc
|
||||
@windres -o $@ -i $(PACKAGE).rc
|
||||
|
||||
bin_PROGRAMS = lmarbles
|
||||
|
||||
lmarbles_SOURCES = audio.c cfg.c dynlist.c file.c game.c levels.c main.c menu.c \
|
||||
profile.c sdl.c timer.c audio.h cfg.h dynlist.h file.h game.h levels.h \
|
||||
menu.h profile.h sdl.h timer.h win32.ico lmarbles.6
|
||||
|
||||
lmarbles_DEPENDENCIES = @win32_deps@
|
||||
lmarbles_LDADD = @win32_deps@ @mixer_flag@
|
||||
man_MANS = lmarbles.6
|
||||
|
||||
DATA_FILES = \
|
||||
gfx/board.bmp gfx/f_red.bmp gfx/f_small.bmp gfx/f_white.bmp \
|
||||
gfx/f_yellow.bmp gfx/figure.bmp gfx/lights.bmp gfx/logo.bmp \
|
||||
gfx/m_frame.bmp gfx/m_sframe.bmp gfx/marbles.bmp gfx/tiny.sdlfnt \
|
||||
gfx/title.bmp gfx/win_icon.bmp \
|
||||
\
|
||||
sounds/alarm.wav sounds/arrow.wav sounds/click.wav sounds/explode.wav \
|
||||
sounds/select.wav sounds/stop.wav sounds/teleport.wav sounds/score.wav \
|
||||
\
|
||||
levels/Original \
|
||||
\
|
||||
gfx/stone/arrow_d.bmp gfx/stone/arrow_l.bmp gfx/stone/arrow_r.bmp \
|
||||
gfx/stone/arrow_u.bmp gfx/stone/background.bmp gfx/stone/barrier_lr.bmp \
|
||||
gfx/stone/barrier_ud.bmp gfx/stone/floor.bmp gfx/stone/teleport0.bmp \
|
||||
gfx/stone/teleport1.bmp gfx/stone/teleport2.bmp \
|
||||
gfx/stone/teleport3.bmp gfx/stone/wall.bmp \
|
||||
gfx/stone/wall_crumble.bmp \
|
||||
\
|
||||
gfx/metal/arrow_d.bmp gfx/metal/arrow_l.bmp gfx/metal/arrow_r.bmp \
|
||||
gfx/metal/arrow_u.bmp gfx/metal/background.bmp gfx/metal/barrier_lr.bmp \
|
||||
gfx/metal/barrier_ud.bmp gfx/metal/floor.bmp gfx/metal/teleport0.bmp \
|
||||
gfx/metal/teleport1.bmp gfx/metal/teleport2.bmp \
|
||||
gfx/metal/teleport3.bmp gfx/metal/wall.bmp \
|
||||
gfx/metal/wall_crumble.bmp \
|
||||
\
|
||||
gfx/wood/arrow_d.bmp gfx/wood/arrow_l.bmp gfx/wood/arrow_r.bmp \
|
||||
gfx/wood/arrow_u.bmp gfx/wood/background.bmp gfx/wood/barrier_lr.bmp \
|
||||
gfx/wood/barrier_ud.bmp gfx/wood/floor.bmp gfx/wood/teleport0.bmp \
|
||||
gfx/wood/teleport1.bmp gfx/wood/teleport2.bmp \
|
||||
gfx/wood/teleport3.bmp gfx/wood/wall.bmp \
|
||||
gfx/wood/wall_crumble.bmp
|
||||
|
||||
DOC_FILES = manual/manual.html manual/arrow.jpg manual/arrow2.jpg \
|
||||
manual/crumble.jpg manual/teleport.jpg manual/marbles.jpg
|
||||
|
||||
EXTRA_DIST= empty.prfs $(DATA_FILES) $(DOC_FILES)
|
||||
|
||||
install-data-local:
|
||||
#directories
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx/stone
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx/metal
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx/wood
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/sounds
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/levels
|
||||
#data files
|
||||
for file in $(DATA_FILES); do\
|
||||
$(INSTALL_DATA) $$file $(DESTDIR)$(inst_dir)/$$file;\
|
||||
done
|
||||
#profiles
|
||||
$(mkinstalldirs) $(DESTDIR)$(prf_dir)
|
||||
if ! test -f $(DESTDIR)$(prf_dir)/lmarbles.prfs; then \
|
||||
$(INSTALL_DATA) -m 666 empty.prfs $(DESTDIR)$(prf_dir)/lmarbles.prfs; \
|
||||
fi;
|
||||
|
||||
uninstall-local:
|
||||
rm -rf $(DESTDIR)$(inst_dir)
|
||||
rm -f $(DESTDIR)$(prf_dir)/lmarbles.prfs
|
||||
|
||||
win32rootdir=`pwd -W | awk '{ gsub("/","\\\\"); print}'`
|
||||
|
||||
win32-install-script:
|
||||
@$(STRIP) $(PACKAGE)$(EXEEXT)
|
||||
@echo "Source: \"$(win32rootdir)\\$(PACKAGE)$(EXEEXT)\"; DestDir: \"{app}\"; CopyMode: alwaysoverwrite" >> @win32_inst_script@
|
||||
@for file in $(DATA_FILES) $(DOC_FILES); do \
|
||||
win32src=$(win32rootdir)\\`echo $$file | awk '{ gsub("/","\\\\"); print }'`; \
|
||||
win32dest=`dirname $$file | awk '{ gsub("/","\\\\"); print }'`; \
|
||||
echo "Source: \"$$win32src\"; DestDir: \"{app}\\$$win32dest\"; CopyMode: alwaysoverwrite" >> @win32_inst_script@; \
|
||||
done
|
||||
|
||||
@list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
(cd $$subdir \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) win32-install-script); \
|
||||
done
|
||||
596
project/jni/application/lmarbles-1.0.8/src/Makefile.in
Normal file
@@ -0,0 +1,596 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
bin_PROGRAMS = lmarbles$(EXEEXT)
|
||||
subdir = src
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man6dir)"
|
||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
am_lmarbles_OBJECTS = audio.$(OBJEXT) cfg.$(OBJEXT) dynlist.$(OBJEXT) \
|
||||
file.$(OBJEXT) game.$(OBJEXT) levels.$(OBJEXT) main.$(OBJEXT) \
|
||||
menu.$(OBJEXT) profile.$(OBJEXT) sdl.$(OBJEXT) timer.$(OBJEXT)
|
||||
lmarbles_OBJECTS = $(am_lmarbles_OBJECTS)
|
||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(lmarbles_SOURCES)
|
||||
DIST_SOURCES = $(lmarbles_SOURCES)
|
||||
man6dir = $(mandir)/man6
|
||||
NROFF = nroff
|
||||
MANS = $(man_MANS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@ @arch_flag@ @inst_flag@ @prf_flag@ @sound_flag@ @ascii_flag@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
GREP = @GREP@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
RANLIB = @RANLIB@
|
||||
SDL_CFLAGS = @SDL_CFLAGS@
|
||||
SDL_CONFIG = @SDL_CONFIG@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appname = @appname@
|
||||
arch_flag = @arch_flag@
|
||||
ascii_flag = @ascii_flag@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inst_dir = @inst_dir@
|
||||
inst_flag = @inst_flag@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mixer_flag = @mixer_flag@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
prf_dir = @prf_dir@
|
||||
prf_flag = @prf_flag@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sound_flag = @sound_flag@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
win32_deps = @win32_deps@
|
||||
win32_inst_script = @win32_inst_script@
|
||||
lmarbles_SOURCES = audio.c cfg.c dynlist.c file.c game.c levels.c main.c menu.c \
|
||||
profile.c sdl.c timer.c audio.h cfg.h dynlist.h file.h game.h levels.h \
|
||||
menu.h profile.h sdl.h timer.h win32.ico lmarbles.6
|
||||
|
||||
lmarbles_DEPENDENCIES = @win32_deps@
|
||||
lmarbles_LDADD = @win32_deps@ @mixer_flag@
|
||||
man_MANS = lmarbles.6
|
||||
DATA_FILES = \
|
||||
gfx/board.bmp gfx/f_red.bmp gfx/f_small.bmp gfx/f_white.bmp \
|
||||
gfx/f_yellow.bmp gfx/figure.bmp gfx/lights.bmp gfx/logo.bmp \
|
||||
gfx/m_frame.bmp gfx/m_sframe.bmp gfx/marbles.bmp gfx/tiny.sdlfnt \
|
||||
gfx/title.bmp gfx/win_icon.bmp \
|
||||
\
|
||||
sounds/alarm.wav sounds/arrow.wav sounds/click.wav sounds/explode.wav \
|
||||
sounds/select.wav sounds/stop.wav sounds/teleport.wav sounds/score.wav \
|
||||
\
|
||||
levels/Original \
|
||||
\
|
||||
gfx/stone/arrow_d.bmp gfx/stone/arrow_l.bmp gfx/stone/arrow_r.bmp \
|
||||
gfx/stone/arrow_u.bmp gfx/stone/background.bmp gfx/stone/barrier_lr.bmp \
|
||||
gfx/stone/barrier_ud.bmp gfx/stone/floor.bmp gfx/stone/teleport0.bmp \
|
||||
gfx/stone/teleport1.bmp gfx/stone/teleport2.bmp \
|
||||
gfx/stone/teleport3.bmp gfx/stone/wall.bmp \
|
||||
gfx/stone/wall_crumble.bmp \
|
||||
\
|
||||
gfx/metal/arrow_d.bmp gfx/metal/arrow_l.bmp gfx/metal/arrow_r.bmp \
|
||||
gfx/metal/arrow_u.bmp gfx/metal/background.bmp gfx/metal/barrier_lr.bmp \
|
||||
gfx/metal/barrier_ud.bmp gfx/metal/floor.bmp gfx/metal/teleport0.bmp \
|
||||
gfx/metal/teleport1.bmp gfx/metal/teleport2.bmp \
|
||||
gfx/metal/teleport3.bmp gfx/metal/wall.bmp \
|
||||
gfx/metal/wall_crumble.bmp \
|
||||
\
|
||||
gfx/wood/arrow_d.bmp gfx/wood/arrow_l.bmp gfx/wood/arrow_r.bmp \
|
||||
gfx/wood/arrow_u.bmp gfx/wood/background.bmp gfx/wood/barrier_lr.bmp \
|
||||
gfx/wood/barrier_ud.bmp gfx/wood/floor.bmp gfx/wood/teleport0.bmp \
|
||||
gfx/wood/teleport1.bmp gfx/wood/teleport2.bmp \
|
||||
gfx/wood/teleport3.bmp gfx/wood/wall.bmp \
|
||||
gfx/wood/wall_crumble.bmp
|
||||
|
||||
DOC_FILES = manual/manual.html manual/arrow.jpg manual/arrow2.jpg \
|
||||
manual/crumble.jpg manual/teleport.jpg manual/marbles.jpg
|
||||
|
||||
EXTRA_DIST = empty.prfs $(DATA_FILES) $(DOC_FILES)
|
||||
win32rootdir = `pwd -W | awk '{ gsub("/","\\\\"); print}'`
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||
if test -f $$p \
|
||||
; then \
|
||||
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-binPROGRAMS:
|
||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||
lmarbles$(EXEEXT): $(lmarbles_OBJECTS) $(lmarbles_DEPENDENCIES)
|
||||
@rm -f lmarbles$(EXEEXT)
|
||||
$(LINK) $(lmarbles_LDFLAGS) $(lmarbles_OBJECTS) $(lmarbles_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audio.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cfg.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynlist.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/game.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/levels.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/menu.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profile.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sdl.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
uninstall-info-am:
|
||||
install-man6: $(man6_MANS) $(man_MANS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(man6dir)" || $(mkdir_p) "$(DESTDIR)$(man6dir)"
|
||||
@list='$(man6_MANS) $(dist_man6_MANS) $(nodist_man6_MANS)'; \
|
||||
l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
|
||||
for i in $$l2; do \
|
||||
case "$$i" in \
|
||||
*.6*) list="$$list $$i" ;; \
|
||||
esac; \
|
||||
done; \
|
||||
for i in $$list; do \
|
||||
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
||||
else file=$$i; fi; \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
case "$$ext" in \
|
||||
6*) ;; \
|
||||
*) ext='6' ;; \
|
||||
esac; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man6dir)/$$inst'"; \
|
||||
$(INSTALL_DATA) "$$file" "$(DESTDIR)$(man6dir)/$$inst"; \
|
||||
done
|
||||
uninstall-man6:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(man6_MANS) $(dist_man6_MANS) $(nodist_man6_MANS)'; \
|
||||
l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
|
||||
for i in $$l2; do \
|
||||
case "$$i" in \
|
||||
*.6*) list="$$list $$i" ;; \
|
||||
esac; \
|
||||
done; \
|
||||
for i in $$list; do \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
case "$$ext" in \
|
||||
6*) ;; \
|
||||
*) ext='6' ;; \
|
||||
esac; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " rm -f '$(DESTDIR)$(man6dir)/$$inst'"; \
|
||||
rm -f "$(DESTDIR)$(man6dir)/$$inst"; \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(mkdir_p) $(distdir)/gfx $(distdir)/gfx/metal $(distdir)/gfx/stone $(distdir)/gfx/wood $(distdir)/levels $(distdir)/manual $(distdir)/sounds
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(PROGRAMS) $(MANS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man6dir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-data-local install-man
|
||||
|
||||
install-exec-am: install-binPROGRAMS
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man: install-man6
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-local \
|
||||
uninstall-man
|
||||
|
||||
uninstall-man: uninstall-man6
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
|
||||
clean-generic ctags distclean distclean-compile \
|
||||
distclean-generic distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-binPROGRAMS \
|
||||
install-data install-data-am install-data-local install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-man6 install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
|
||||
ps ps-am tags uninstall uninstall-am uninstall-binPROGRAMS \
|
||||
uninstall-info-am uninstall-local uninstall-man uninstall-man6
|
||||
|
||||
|
||||
marblesres.o: win32.ico
|
||||
@echo "1 VERSIONINFO" > $(PACKAGE).rc
|
||||
@echo "FILEVERSION `echo $(VERSION) | $(AWK) '{ gsub(/\./,","); print }'`,0" >> $(PACKAGE).rc
|
||||
@echo "PRODUCTVERSION `echo $(VERSION) | $(AWK) '{ gsub(/\./,","); print }'`,0" >> $(PACKAGE).rc
|
||||
@echo "FILEFLAGSMASK 0" >> $(PACKAGE).rc
|
||||
@echo "FILEOS 0x40000" >> $(PACKAGE).rc
|
||||
@echo "FILETYPE 1" >> $(PACKAGE).rc
|
||||
@echo "{" >> $(PACKAGE).rc
|
||||
@echo " BLOCK \"StringFileInfo\"" >> $(PACKAGE).rc
|
||||
@echo " {" >> $(PACKAGE).rc
|
||||
@echo " BLOCK \"040904E4\"" >> $(PACKAGE).rc
|
||||
@echo " {" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"CompanyName\", \"LGames - Michael Speck\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"FileDescription\", \"@appname@\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"FileVersion\", \"$(VERSION)\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"InternalName\", \"$(PACKAGE)\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"LegalCopyright\", \"GNU Public License\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"OriginalFilename\", \"$(PACKAGE)$(EXEEXT)\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"ProductName\", \"@appname@\"" >> $(PACKAGE).rc
|
||||
@echo " VALUE \"ProductVersion\", \"$(VERSION)\"" >> $(PACKAGE).rc
|
||||
@echo " }" >> $(PACKAGE).rc
|
||||
@echo " }" >> $(PACKAGE).rc
|
||||
@echo "}" >> $(PACKAGE).rc
|
||||
@echo "0 ICON win32.ico" >> $(PACKAGE).rc
|
||||
@windres -o $@ -i $(PACKAGE).rc
|
||||
|
||||
install-data-local:
|
||||
#directories
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx/stone
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx/metal
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/gfx/wood
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/sounds
|
||||
$(mkinstalldirs) $(DESTDIR)$(inst_dir)/levels
|
||||
#data files
|
||||
for file in $(DATA_FILES); do\
|
||||
$(INSTALL_DATA) $$file $(DESTDIR)$(inst_dir)/$$file;\
|
||||
done
|
||||
#profiles
|
||||
$(mkinstalldirs) $(DESTDIR)$(prf_dir)
|
||||
if ! test -f $(DESTDIR)$(prf_dir)/lmarbles.prfs; then \
|
||||
$(INSTALL_DATA) -m 666 empty.prfs $(DESTDIR)$(prf_dir)/lmarbles.prfs; \
|
||||
fi;
|
||||
|
||||
uninstall-local:
|
||||
rm -rf $(DESTDIR)$(inst_dir)
|
||||
rm -f $(DESTDIR)$(prf_dir)/lmarbles.prfs
|
||||
|
||||
win32-install-script:
|
||||
@$(STRIP) $(PACKAGE)$(EXEEXT)
|
||||
@echo "Source: \"$(win32rootdir)\\$(PACKAGE)$(EXEEXT)\"; DestDir: \"{app}\"; CopyMode: alwaysoverwrite" >> @win32_inst_script@
|
||||
@for file in $(DATA_FILES) $(DOC_FILES); do \
|
||||
win32src=$(win32rootdir)\\`echo $$file | awk '{ gsub("/","\\\\"); print }'`; \
|
||||
win32dest=`dirname $$file | awk '{ gsub("/","\\\\"); print }'`; \
|
||||
echo "Source: \"$$win32src\"; DestDir: \"{app}\\$$win32dest\"; CopyMode: alwaysoverwrite" >> @win32_inst_script@; \
|
||||
done
|
||||
|
||||
@list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
(cd $$subdir \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) win32-install-script); \
|
||||
done
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
151
project/jni/application/lmarbles-1.0.8/src/audio.c
Normal file
@@ -0,0 +1,151 @@
|
||||
/***************************************************************************
|
||||
sound.c - description
|
||||
-------------------
|
||||
begin : Sun Jul 29 2001
|
||||
copyright : (C) 2001 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifdef SOUND
|
||||
|
||||
#include <SDL_mixer.h>
|
||||
#include "audio.h"
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
If audio device was properly initiated this flag is set.
|
||||
If this flag is not set; no action will be taken for audio.
|
||||
====================================================================
|
||||
*/
|
||||
int audio_ok = 0;
|
||||
/*
|
||||
====================================================================
|
||||
If this flag is not set no sound is played.
|
||||
====================================================================
|
||||
*/
|
||||
int sound_enabled = 1;
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Initiate/close audio
|
||||
====================================================================
|
||||
*/
|
||||
int audio_open()
|
||||
{
|
||||
if ( Mix_OpenAudio( MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 256 ) < 0 ) {
|
||||
fprintf( stderr, "audio_open: can't open audio device: %s\n", SDL_GetError() );
|
||||
audio_ok = 0;
|
||||
return 0;
|
||||
}
|
||||
audio_ok = 1;
|
||||
return 1;
|
||||
}
|
||||
void audio_close()
|
||||
{
|
||||
if ( !audio_ok ) return;
|
||||
Mix_CloseAudio();
|
||||
}
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Sound chunk
|
||||
====================================================================
|
||||
*/
|
||||
Sound_Chunk* sound_chunk_load( char *file_name )
|
||||
{
|
||||
char path[512];
|
||||
Mix_Chunk *chunk = 0;
|
||||
|
||||
if ( !audio_ok ) {
|
||||
fprintf( stderr,
|
||||
"sound_chunk_load: cannot load WAV '%s' as audio device isn't initated properly\n",
|
||||
file_name );
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* use SRCDIR/sounds as source directory */
|
||||
sprintf( path, "%s/sounds/%s", SRC_DIR, file_name );
|
||||
|
||||
chunk = Mix_LoadWAV( path );
|
||||
if ( chunk == 0 )
|
||||
{
|
||||
fprintf( stderr, "chunk_load: couldn't load WAV '%s': %s\n", path, SDL_GetError() );
|
||||
}
|
||||
return (Sound_Chunk*)chunk;
|
||||
}
|
||||
void sound_chunk_free( Sound_Chunk **chunk )
|
||||
{
|
||||
if ( !audio_ok ) return;
|
||||
Mix_FreeChunk( (Mix_Chunk*)(*chunk) );
|
||||
*chunk = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Sound stuff
|
||||
====================================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Enable/disable sound
|
||||
====================================================================
|
||||
*/
|
||||
void sound_enable( int enable )
|
||||
{
|
||||
if ( !audio_ok ) return;
|
||||
sound_enabled = enable;
|
||||
if ( !enable )
|
||||
Mix_Pause( -1 ); /* stop all sound channels */
|
||||
}
|
||||
/*
|
||||
====================================================================
|
||||
Set general volume of sounds. 0 - 127
|
||||
====================================================================
|
||||
*/
|
||||
void sound_volume( int level )
|
||||
{
|
||||
if ( !audio_ok ) return;
|
||||
if ( level < 0 ) level = 0;
|
||||
if ( level > 127 ) level = 127;
|
||||
Mix_Volume( -1, level ); /* all sound channels */
|
||||
}
|
||||
/*
|
||||
====================================================================
|
||||
Play a chunk.
|
||||
====================================================================
|
||||
*/
|
||||
void sound_play( Sound_Chunk *chunk )
|
||||
{
|
||||
if ( !audio_ok ) return;
|
||||
if ( !sound_enabled ) return;
|
||||
/* use first free sound channel and play sound one time */
|
||||
Mix_PlayChannel( -1, (Mix_Chunk*)chunk, 0 );
|
||||
}
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Music stuff
|
||||
====================================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Set general volume of sounds. 0 - 127
|
||||
====================================================================
|
||||
*/
|
||||
void music_volume( int level )
|
||||
{
|
||||
/* not implemented */
|
||||
}
|
||||
|
||||
#endif
|
||||
64
project/jni/application/lmarbles-1.0.8/src/audio.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/***************************************************************************
|
||||
sound.h - description
|
||||
-------------------
|
||||
begin : Sun Jul 29 2001
|
||||
copyright : (C) 2001 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __AUDIO_H
|
||||
#define __AUDIO_H
|
||||
|
||||
#ifdef SOUND
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Wrapper for the SDL_mixer functions.
|
||||
====================================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Initiate/close audio
|
||||
====================================================================
|
||||
*/
|
||||
int audio_open();
|
||||
void audio_close();
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Sound chunk
|
||||
====================================================================
|
||||
*/
|
||||
typedef Mix_Chunk Sound_Chunk;
|
||||
Sound_Chunk* sound_chunk_load( char *file_name );
|
||||
void sound_chunk_free( Sound_Chunk **chunk );
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Sound stuff
|
||||
====================================================================
|
||||
*/
|
||||
void sound_enable( int enable );
|
||||
void sound_volume( int level /*0 - 127*/ );
|
||||
void sound_play( Sound_Chunk *chunk );
|
||||
|
||||
/*
|
||||
====================================================================
|
||||
Music stuff
|
||||
====================================================================
|
||||
*/
|
||||
void music_volume( int level );
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
190
project/jni/application/lmarbles-1.0.8/src/cfg.c
Normal file
@@ -0,0 +1,190 @@
|
||||
/***************************************************************************
|
||||
cfg.c - description
|
||||
-------------------
|
||||
begin : Sat Aug 5 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "cfg.h"
|
||||
#include "sdl.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "file.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define MKDIR(d, p) mkdir(d)
|
||||
#else
|
||||
#define MKDIR mkdir
|
||||
#endif
|
||||
|
||||
char c_pth[512];
|
||||
Cfg cfg;
|
||||
|
||||
/*
|
||||
get the full path of the cfg file
|
||||
*/
|
||||
void C_StPth()
|
||||
{
|
||||
DIR *dir;
|
||||
#ifdef _WIN32
|
||||
snprintf( c_pth, sizeof(c_pth)-1, "%s/lgames", (getenv( "HOME" )?getenv( "HOME" ):".") );
|
||||
#else
|
||||
snprintf( c_pth, sizeof(c_pth)-1, "%s/.lgames", getenv( "HOME" ) );
|
||||
#endif
|
||||
/* create .lgames directory if not found */
|
||||
if ( (dir = opendir( c_pth )) == 0 ) {
|
||||
fprintf( stderr, "Config directory ~/.lgames not found. Creating it.\n" );
|
||||
MKDIR( c_pth, S_IRWXU );
|
||||
}
|
||||
else
|
||||
{
|
||||
closedir(dir);
|
||||
}
|
||||
/* get full path of config file */
|
||||
strcat( c_pth, "/lmarbles.conf" );
|
||||
}
|
||||
|
||||
/*
|
||||
load it
|
||||
*/
|
||||
void C_Ld()
|
||||
{
|
||||
char str[256];
|
||||
FILE *f;
|
||||
struct stat dir_stat;
|
||||
|
||||
printf("loading configuration...\n");
|
||||
|
||||
// load init //
|
||||
if ((f = fopen(c_pth, "r")) == 0) {
|
||||
printf("cfg file '%s' not found; using defaults\n", c_pth);
|
||||
C_Def();
|
||||
}
|
||||
else {
|
||||
stat( c_pth, &dir_stat );
|
||||
if ( dir_stat.st_size != sizeof( Cfg ) ) {
|
||||
fprintf( stderr, "config file '%s' corrupted... using defaults\n", c_pth );
|
||||
C_Def();
|
||||
}
|
||||
else
|
||||
|
||||
{
|
||||
#ifdef ASCII
|
||||
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (strncmp(str,"ascii",5)) {
|
||||
|
||||
printf("cfg file '%s' not in ascii; using defaults\n", c_pth);
|
||||
C_Def();
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
F_GetE(f, cfg.prf_nm, F_VAL); cfg.prf_nm[strlen(cfg.prf_nm) - 1] = 0;
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.prf);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.s_vol);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.s_on);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.ani);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.trp);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.fscr);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.dim);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.diff);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.k_up);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.k_down);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.k_left);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.k_right);
|
||||
F_GetE(f, str, F_VAL); F_ValToInt(str, &cfg.k_undo);
|
||||
|
||||
}
|
||||
#else
|
||||
|
||||
fread(str, 5, 1, f);
|
||||
if (!strncmp(str,"ascii",5)) {
|
||||
|
||||
printf("cfg file '%s' in ascii but raw binary data expected; using defaults\n", c_pth);
|
||||
C_Def();
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
fseek(f,SEEK_SET,0);
|
||||
fread(&cfg, sizeof(Cfg), 1, f);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
save it
|
||||
*/
|
||||
void C_Sv()
|
||||
{
|
||||
//save init //
|
||||
FILE *f = fopen(c_pth, "w");
|
||||
#ifdef ASCII
|
||||
char str[256];
|
||||
|
||||
F_WrtE(f, "ascii");
|
||||
F_WrtE(f, cfg.prf_nm);
|
||||
F_IntToStr(str, cfg.prf); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.s_vol); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.s_on); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.ani); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.trp); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.fscr); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.dim); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.diff); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.k_up); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.k_down); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.k_left); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.k_right); F_WrtE(f, str);
|
||||
F_IntToStr(str, cfg.k_undo); F_WrtE(f, str);
|
||||
#else
|
||||
fwrite(&cfg, sizeof(Cfg), 1, f);
|
||||
#endif
|
||||
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
/*
|
||||
default values
|
||||
*/
|
||||
void C_Def()
|
||||
{
|
||||
strcpy(cfg.prf_nm, "Michael");
|
||||
cfg.prf = 0;
|
||||
// sound //
|
||||
cfg.s_vol = 6;
|
||||
cfg.s_on = 1;
|
||||
// gfx //
|
||||
cfg.ani = 1;
|
||||
cfg.trp = 1;
|
||||
cfg.fscr = 0;
|
||||
cfg.dim = 1;
|
||||
cfg.diff = DIFF_NORMAL;
|
||||
// controls
|
||||
cfg.k_up = SDLK_UP;
|
||||
cfg.k_down = SDLK_DOWN;
|
||||
cfg.k_left = SDLK_LEFT;
|
||||
cfg.k_right = SDLK_RIGHT;
|
||||
cfg.k_undo = SDLK_SPACE;
|
||||
}
|
||||
56
project/jni/application/lmarbles-1.0.8/src/cfg.h
Normal file
@@ -0,0 +1,56 @@
|
||||
/***************************************************************************
|
||||
cfg.h - description
|
||||
-------------------
|
||||
begin : Sat Aug 5 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef CFG_H
|
||||
#define CFG_H
|
||||
|
||||
enum {
|
||||
DIFF_EASY = 0,
|
||||
DIFF_NORMAL,
|
||||
DIFF_HARD,
|
||||
DIFF_BRAINSTORM
|
||||
};
|
||||
|
||||
// config file //
|
||||
typedef struct {
|
||||
// profile
|
||||
char prf_nm[12];
|
||||
int prf;
|
||||
// level set //
|
||||
int ls;
|
||||
// sound
|
||||
int s_on;
|
||||
int s_vol;
|
||||
// gfx //
|
||||
int ani;
|
||||
int trp;
|
||||
int fscr; // fullscreen
|
||||
int dim; // dim effect on?
|
||||
int diff; // difficulty
|
||||
int k_up; // controls
|
||||
int k_down;
|
||||
int k_left;
|
||||
int k_right;
|
||||
int k_undo;
|
||||
} Cfg;
|
||||
|
||||
void C_StPth();
|
||||
void C_Ld();
|
||||
void C_Sv();
|
||||
void C_Def();
|
||||
|
||||
#endif
|
||||
271
project/jni/application/lmarbles-1.0.8/src/dynlist.c
Normal file
@@ -0,0 +1,271 @@
|
||||
/***************************************************************************
|
||||
dynlist.c - description
|
||||
-------------------
|
||||
begin : Sat Apr 8 2000
|
||||
copyright : (C) 2000 by
|
||||
email :
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "dynlist.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
initialize list
|
||||
*/
|
||||
void DL_Ini(DLst *dlst)
|
||||
{
|
||||
dlst->cntr = 0;
|
||||
dlst->hd.p = dlst->tl.n = 0;
|
||||
dlst->hd.n = &dlst->tl;
|
||||
dlst->tl.p = &dlst->hd;
|
||||
dlst->hd.d = dlst->tl.d = 0;
|
||||
dlst->flgs = DL_NONE;
|
||||
dlst->cb = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
insert an item at index
|
||||
*/
|
||||
int DL_Ins(DLst *dlst, unsigned int index, void *item)
|
||||
{
|
||||
int i;
|
||||
DL_E *cur = &dlst->hd;
|
||||
DL_E *new_entry;
|
||||
|
||||
if (index > dlst->cntr) {
|
||||
fprintf(stderr, "ERR: dl_insert: index %i out of range...\n", index);
|
||||
return 1;
|
||||
}
|
||||
if (item == 0) {
|
||||
fprintf(stderr, "ERR: dl_insert: item is NULL...\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (i = 0; i < index; i++)
|
||||
cur = cur->n;
|
||||
new_entry = (DL_E*)malloc(sizeof(DL_E));
|
||||
new_entry->d = item;
|
||||
new_entry->n = cur->n;
|
||||
new_entry->p = cur;
|
||||
cur->n->p = new_entry;
|
||||
cur->n = new_entry;
|
||||
dlst->cntr++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
insert at the end of the list
|
||||
*/
|
||||
int DL_Add(DLst *dlst, void *item)
|
||||
{
|
||||
return DL_Ins(dlst, dlst->cntr, item);
|
||||
}
|
||||
|
||||
/*
|
||||
delete an entry
|
||||
*/
|
||||
int DL_DelE(DLst *dlst, DL_E *e)
|
||||
{
|
||||
if (e == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: entry is NULL...\n");
|
||||
return 1;
|
||||
}
|
||||
if (dlst->cntr == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: list is empty...\n");
|
||||
return 1;
|
||||
}
|
||||
if (e == &dlst->hd || e == &dlst->tl) {
|
||||
fprintf(stderr, "ERR: dl_delete: trying to delete hd or tl..\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
e->p->n = e->n;
|
||||
e->n->p = e->p;
|
||||
dlst->cntr--;
|
||||
|
||||
if (dlst->flgs & DL_AUTODEL) {
|
||||
if (dlst->flgs & DL_NOCB)
|
||||
free(e->d);
|
||||
else {
|
||||
if (dlst->cb == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: no destroy callback installed...\n");
|
||||
free(e);
|
||||
return 1;
|
||||
}
|
||||
(dlst->cb)(e->d);
|
||||
}
|
||||
}
|
||||
free(e);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
delete entry containing this item
|
||||
*/
|
||||
int DL_DelP(DLst *dlst, void *item)
|
||||
{
|
||||
int i;
|
||||
DL_E *cur = &dlst->hd;
|
||||
|
||||
if (item == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: item is NULL...\n");
|
||||
return 1;
|
||||
}
|
||||
if (dlst->cntr == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: list is empty...\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (i = 0; i <= dlst->cntr; i++)
|
||||
if (cur->n != &dlst->tl) {
|
||||
cur = cur->n;
|
||||
if (cur->d == item)
|
||||
break;
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "ERR: dl_delete: list does not contain item 0x%x...\n", (int)item);
|
||||
return 1;
|
||||
}
|
||||
|
||||
cur->n->p = cur->p;
|
||||
cur->p->n = cur->n;
|
||||
dlst->cntr--;
|
||||
cur->n = cur->p = 0;
|
||||
|
||||
if (dlst->flgs & DL_AUTODEL) {
|
||||
if (dlst->flgs & DL_NOCB)
|
||||
free(cur->d);
|
||||
else {
|
||||
if (dlst->cb == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: no destroy callback installed...\n");
|
||||
free(cur);
|
||||
return 1;
|
||||
}
|
||||
(dlst->cb)(cur->d);
|
||||
}
|
||||
}
|
||||
free(cur);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
delete item at index
|
||||
*/
|
||||
int DL_Del(DLst *dlst, unsigned int index)
|
||||
{
|
||||
int i;
|
||||
DL_E *cur = &dlst->hd;
|
||||
|
||||
if (index >= dlst->cntr) {
|
||||
fprintf(stderr, "ERR: dl_delete: index %i out of range...\n", index);
|
||||
return 1;
|
||||
}
|
||||
if (dlst->cntr == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: list is empty...\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (i = 0; i <= index; i++)
|
||||
cur = cur->n;
|
||||
|
||||
cur->n->p = cur->p;
|
||||
cur->p->n = cur->n;
|
||||
dlst->cntr--;
|
||||
cur->n = cur->p = 0;
|
||||
|
||||
if (dlst->flgs & DL_AUTODEL) {
|
||||
if (dlst->flgs & DL_NOCB)
|
||||
free(cur->d);
|
||||
else {
|
||||
if (dlst->cb == 0) {
|
||||
fprintf(stderr, "ERR: dl_delete: no destroy callback installed...\n");
|
||||
free(cur);
|
||||
return 1;
|
||||
}
|
||||
(dlst->cb)(cur->d);
|
||||
}
|
||||
}
|
||||
free(cur);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
get the item with index 'index'
|
||||
*/
|
||||
void* DL_Get(DLst *dlst, int index)
|
||||
{
|
||||
unsigned int i;
|
||||
DL_E *cur = &dlst->hd;
|
||||
|
||||
if (index >= dlst->cntr) {
|
||||
fprintf(stderr, "ERR: dl_get: index %i out of range...\n", index);
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; i <= (unsigned)index; i++)
|
||||
cur = cur->n;
|
||||
|
||||
return cur->d;
|
||||
}
|
||||
|
||||
/*
|
||||
get the current entry from a pointer
|
||||
*/
|
||||
DL_E *DL_GetE(DLst *dlst, void *item)
|
||||
{
|
||||
int i;
|
||||
DL_E *cur = &dlst->hd;
|
||||
|
||||
if (item == 0) {
|
||||
fprintf(stderr, "ERR: DL_GetE: item is NULL...\n");
|
||||
return 0;
|
||||
}
|
||||
if (dlst->cntr == 0) {
|
||||
fprintf(stderr, "ERR: DL_GetE: list is empty...\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; i <= dlst->cntr; i++)
|
||||
if (cur->n != &dlst->tl) {
|
||||
cur = cur->n;
|
||||
if (cur->d == item)
|
||||
break;
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "ERR: DL_GetE: list does not contain item 0x%x...\n", (int)item);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return cur;
|
||||
}
|
||||
|
||||
/*
|
||||
clear all entries of list
|
||||
*/
|
||||
void DL_Clr(DLst *dlst)
|
||||
{
|
||||
DL_E *cur = dlst->hd.n;
|
||||
DL_E *n;
|
||||
|
||||
while (cur != &dlst->tl) {
|
||||
n = cur->n;
|
||||
DL_DelE(dlst, cur);
|
||||
cur = n;
|
||||
}
|
||||
|
||||
}
|
||||
58
project/jni/application/lmarbles-1.0.8/src/dynlist.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/***************************************************************************
|
||||
dynlist.h - description
|
||||
-------------------
|
||||
begin : Sat Apr 8 2000
|
||||
copyright : (C) 2000 by
|
||||
email :
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef DYNLIST_H
|
||||
#define DYNLIST_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//dl flags
|
||||
#define DL_NONE (0)
|
||||
#define DL_AUTODEL (1L<<0)
|
||||
#define DL_NOCB (1L<<1)
|
||||
|
||||
typedef struct _DL_E {
|
||||
struct _DL_E *n;
|
||||
struct _DL_E *p;
|
||||
void *d;
|
||||
} DL_E;
|
||||
|
||||
typedef struct {
|
||||
unsigned int flgs;
|
||||
unsigned int cntr; //don't edit
|
||||
DL_E hd; //don't edit
|
||||
DL_E tl; //don't edit
|
||||
void (*cb)(void*);
|
||||
} DLst;
|
||||
|
||||
void DL_Ini(DLst *dlst);
|
||||
int DL_Ins(DLst *dlst, unsigned int i, void *item); //insert item
|
||||
int DL_Add(DLst *dlst, void *item); //insert at the end
|
||||
int DL_DelE(DLst *dlst, DL_E *e);
|
||||
int DL_DelP(DLst *dlst, void *item);
|
||||
int DL_Del(DLst *dlst, unsigned int i);
|
||||
void* DL_Get(DLst *dlst, int i);
|
||||
DL_E *DL_GetE(DLst *dlst, void *item);
|
||||
void DL_Clr(DLst *dlst); //clear full list
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
BIN
project/jni/application/lmarbles-1.0.8/src/empty.prfs
Normal file
168
project/jni/application/lmarbles-1.0.8/src/file.c
Normal file
@@ -0,0 +1,168 @@
|
||||
/***************************************************************************
|
||||
file.c - description
|
||||
-------------------
|
||||
begin : Tue Sep 26 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "file.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int f_ln = 0;
|
||||
|
||||
/*
|
||||
read an entry and return if the correct flag is set else read next entry
|
||||
*/
|
||||
void F_GetE(FILE *f, char *str, int flgs)
|
||||
{
|
||||
int i = 0;
|
||||
char c;
|
||||
str[0] = 0;
|
||||
while (!feof(f)) {
|
||||
fread(&c, 1/*sizeof(char)*/, 1, f); /* MUST BE exactly on byte */
|
||||
if (c == 10) {
|
||||
f_ln++; // increase line counter //
|
||||
continue; // ignore returns //
|
||||
}
|
||||
str[i++] = c; str[i] = 0;
|
||||
if ( (c == ';' && flgs & F_VAL) || (c == '>' && flgs & F_SUB) || (c == ')' && flgs & F_COM) )
|
||||
break;
|
||||
if (c == ';' || c == '>' || c == ')')
|
||||
i = 0;
|
||||
}
|
||||
if (i == 1)
|
||||
str[0] = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
returns the first character bigger than 32
|
||||
*/
|
||||
char F_FstC(char *str, char **n)
|
||||
{
|
||||
int i = 0;
|
||||
while (str[i] <= 32) {
|
||||
i++;
|
||||
if (i >= strlen(str)) return 0;
|
||||
}
|
||||
*n = str + i;
|
||||
return str[i];
|
||||
}
|
||||
|
||||
/*
|
||||
returns the last character bigger than 32
|
||||
*/
|
||||
char F_LstC(char *str)
|
||||
{
|
||||
int i = strlen(str) - 1;
|
||||
while (str[i] <= 32) {
|
||||
i--;
|
||||
if (i <= 0) return 0;
|
||||
}
|
||||
return str[i];
|
||||
}
|
||||
|
||||
/*
|
||||
read value to v
|
||||
*/
|
||||
int F_GetV(char *str, char *v)
|
||||
{
|
||||
int i;
|
||||
char *n;
|
||||
for (i = 0; i < strlen(str); i++)
|
||||
if (str[i] == '=') {
|
||||
F_FstC(str + i + 1, &n);
|
||||
strcpy(v, n);
|
||||
v[strlen(v) - 1] = 0; // mask semicolon
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
check entry for type and target name and assign p the value
|
||||
*/
|
||||
int F_CkE(char *str, int t, char *nm, char *v)
|
||||
{
|
||||
char *n;
|
||||
|
||||
if (strlen(str) == 0) return 0;
|
||||
|
||||
if (t & F_VAL) {
|
||||
F_FstC(str, &n);
|
||||
if (strncmp(nm, n, strlen(nm)))
|
||||
return 0;
|
||||
if (v != 0 )
|
||||
return F_GetV(str, v);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
if (t & F_SUB) {
|
||||
F_FstC(str, &n);
|
||||
if (!strncmp(nm, n, strlen(nm)))
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
if (t & F_COM && F_FstC(str, 0) == '(' && F_LstC(str) == ')')
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
write an entry with a semicolon at its end
|
||||
*/
|
||||
void F_WrtE(FILE *f, char *str)
|
||||
{
|
||||
char f_str[strlen(str) + 2];
|
||||
|
||||
sprintf(f_str, "%s;", str);
|
||||
fwrite(f_str, strlen(f_str), 1, f);
|
||||
}
|
||||
|
||||
/*
|
||||
convert an integer to string
|
||||
*/
|
||||
void F_IntToStr(char *str, int i)
|
||||
{
|
||||
sprintf(str,"%i", i);
|
||||
}
|
||||
|
||||
/*
|
||||
convert an float to string
|
||||
*/
|
||||
void F_FloatToStr(char *str, float f)
|
||||
{
|
||||
sprintf(str,"%2.2f",f);
|
||||
}
|
||||
|
||||
/* convert a value only containing one integer */
|
||||
void F_ValToInt(char *str, int *i)
|
||||
{
|
||||
str[strlen(str) - 1] = 0;
|
||||
*i = atoi(str);
|
||||
}
|
||||
|
||||
/* convert a value only containing one float */
|
||||
void F_ValToFloat(char *str, float *f)
|
||||
{
|
||||
str[strlen(str) - 1] = 0;
|
||||
*f = (float)strtod(str, 0);
|
||||
}
|
||||
|
||||
/* convert a value only containing one character */
|
||||
void F_ValToChar(char *str, char *c)
|
||||
{
|
||||
str[strlen(str) - 1] = 0;
|
||||
*c = (char)atoi(str);
|
||||
}
|
||||
37
project/jni/application/lmarbles-1.0.8/src/file.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/***************************************************************************
|
||||
file.h - description
|
||||
-------------------
|
||||
begin : Tue Sep 26 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef FILE_H
|
||||
#define FILE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define F_SUB 0x0001
|
||||
#define F_COM 0x0002
|
||||
#define F_VAL 0x0004
|
||||
|
||||
void F_GetE(FILE *f, char *str, int flgs);
|
||||
int F_CkE(char *str, int t, char *nm, char *v);
|
||||
|
||||
void F_WrtE(FILE *f, char *str);
|
||||
void F_IntToStr(char *str, int i);
|
||||
void F_FloatToStr(char *str, float f);
|
||||
void F_ValToInt(char *str, int *i);
|
||||
void F_ValToFloat(char *str, float *f);
|
||||
void F_ValToChar(char *str, char *c);
|
||||
|
||||
#endif
|
||||
2839
project/jni/application/lmarbles-1.0.8/src/game.c
Normal file
279
project/jni/application/lmarbles-1.0.8/src/game.h
Normal file
@@ -0,0 +1,279 @@
|
||||
/***************************************************************************
|
||||
game.h - description
|
||||
-------------------
|
||||
begin : Mon Aug 14 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef GAME_H
|
||||
#define GAME_H
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include "levels.h"
|
||||
#include "dynlist.h"
|
||||
#include "profile.h"
|
||||
#include "sdl.h"
|
||||
#include "audio.h"
|
||||
|
||||
// gfx set //
|
||||
typedef struct {
|
||||
char nm[16]; // name
|
||||
int ok; // can be used
|
||||
SDL_Surface
|
||||
*s_bkgd, // background
|
||||
*s_wl, // walls
|
||||
*s_flr, // floor
|
||||
*s_r_arw, *s_l_arw, *s_u_arw, *s_d_arw, // arrows
|
||||
*s_ud_bar, *s_lr_bar, // barriers
|
||||
*s_tlp_0, *s_tlp_1, *s_tlp_2, *s_tlp_3, // teleporters
|
||||
*s_crmbl; // crumbling wall
|
||||
} GSet;
|
||||
|
||||
// animation information //
|
||||
typedef struct {
|
||||
int f; // frame limit //
|
||||
float c; // change per millisecond //
|
||||
float p; // current position //
|
||||
int w, h; // size of one sprite //
|
||||
} AInf;
|
||||
|
||||
// map animation //
|
||||
typedef struct {
|
||||
int x, y; // position in map
|
||||
int t; // type
|
||||
AInf *a; // animation info
|
||||
} MAni;
|
||||
|
||||
// position
|
||||
typedef struct {
|
||||
int x, y;
|
||||
} Pos;
|
||||
|
||||
// vector
|
||||
typedef struct {
|
||||
float x,y;
|
||||
} Vec;
|
||||
|
||||
// shrapnell
|
||||
typedef struct {
|
||||
SDL_Surface *s_shr; // picture;
|
||||
Vec d; //direction
|
||||
float x,y; //position
|
||||
int w, h; // size
|
||||
float a; // alpha
|
||||
} Shr;
|
||||
|
||||
// cursor states //
|
||||
#define C_NONE 0
|
||||
#define C_SEL 1
|
||||
#define C_U 2
|
||||
#define C_R 3
|
||||
#define C_D 4
|
||||
#define C_L 5
|
||||
|
||||
// valid marble directions //
|
||||
#define MD_L (1<<0)
|
||||
#define MD_R (1<<1)
|
||||
#define MD_U (1<<2)
|
||||
#define MD_D (1<<3)
|
||||
|
||||
#define L_GREEN 0
|
||||
#define L_ORANGE 1
|
||||
#define L_RED 2
|
||||
#define L_WHITE 3
|
||||
#define L_SIZE 12
|
||||
typedef struct {
|
||||
// gfx sets //
|
||||
DLst g_sts; // gfx sets //
|
||||
// mouse button state //
|
||||
int bttn[4];
|
||||
// graphics //
|
||||
SDL_Surface *s_lghts; // lamps displaying level progress //
|
||||
SDL_Surface *s_brd; // side board //
|
||||
SDL_Surface *s_mrb; // marbles //
|
||||
SDL_Surface *s_fig; // figure //
|
||||
SDL_Surface *s_bkgd; // background //
|
||||
SDL_Surface *s_mf; // marble frame //
|
||||
SDL_Surface *s_msf; // marble select frame //
|
||||
// fonts //
|
||||
SFnt *f_sml; // info //
|
||||
SFnt *f_wht; // time //
|
||||
SFnt *f_rd; // time2 - not much time left //
|
||||
// references //
|
||||
Prf *c_prf; // current profile //
|
||||
SInf *c_s_inf; // current profile level set info //
|
||||
LSet *c_l_st; // current level set //
|
||||
GSet *c_g_st; // current gfx set //
|
||||
Lvl *c_lvl; // current level //
|
||||
// player //
|
||||
int hi_scr; // last hiscore //
|
||||
int c_l_id; // current level //
|
||||
int c_ch; // current chapter //
|
||||
int o_ch; // old chapter //
|
||||
int l_done; // level finished //
|
||||
// marble //
|
||||
float m_v; // marble velocity per millisecond //
|
||||
int m_sel; // selected a marble ? //
|
||||
int m_mx, m_my; // position in map //
|
||||
int m_o_x, m_o_y; // old position //
|
||||
int m_o_move_count; // old move count //
|
||||
float m_x, m_y; // position in screen //
|
||||
int m_mv; // moving ? //
|
||||
int m_d; // direction of moving //
|
||||
int m_vd; // valid directions //
|
||||
int m_tx, m_ty; // target position in screen //
|
||||
int m_id; // current type of marble //
|
||||
AInf m_a; // animation information //
|
||||
int m_act; // action type //
|
||||
int m_warp; // warp marble to destination //
|
||||
// marble frame and marble select frame
|
||||
AInf mf_a; // animation info
|
||||
AInf msf_a; // animation info
|
||||
// layout //
|
||||
int l_x, l_y; // offset of level relative to 0,0 -- in L_Ini()
|
||||
int f_x, f_y; // figure offset relative to b_x, 0
|
||||
int b_x; // board x
|
||||
int i_x, i_y; // info position relative to b_x,0
|
||||
int t_x, t_y; // timer position relative to b_x,0
|
||||
int s_x, s_y; // set info position relative to b_x,0
|
||||
int c_x, c_y; // position of first chapter info relative to b_x,0 -- in L_Ini()
|
||||
// geometry //
|
||||
int t_w, t_h; // tile size //
|
||||
int f_w, f_h; // figure marble size //
|
||||
int f_fw, f_fh; // figure frame size //
|
||||
int scr_w, scr_h; // screen size //
|
||||
int brd_w; // board width
|
||||
int s_w, s_h; // size of set info
|
||||
int c_off; // offset between chapter infos //
|
||||
// cursors //
|
||||
int c_stat; // cursor state //
|
||||
SDL_Cursor *c_u, *c_d, *c_l, *c_r, *c_s, *c_n, *c_w; // cursors
|
||||
// old mouse pos //
|
||||
int o_mx, o_my;
|
||||
// level warp //
|
||||
char inf_str[64]; // warp info string
|
||||
int w_c, w_l; // warp level and chapter
|
||||
// map animations //
|
||||
MAni *m_ani; // animations
|
||||
int ma_num; // animation number
|
||||
AInf ma_ow_a; // oneway info
|
||||
AInf ma_tlp_a; // teleport info
|
||||
int tlp_a; // telporter alpha
|
||||
// sounds
|
||||
#ifdef SOUND
|
||||
Sound_Chunk *wv_tlp; // teleport
|
||||
Sound_Chunk *wv_sel; // select
|
||||
Sound_Chunk *wv_stp; // stop
|
||||
Sound_Chunk *wv_clk; // click
|
||||
Sound_Chunk *wv_exp; // explode
|
||||
Sound_Chunk *wv_alm; // alarm
|
||||
Sound_Chunk *wv_arw; // arrow
|
||||
Sound_Chunk *wv_scr; // score
|
||||
#endif
|
||||
DLst shr; // shrapnells
|
||||
float shr_a_c; // alpha change per second
|
||||
// credits
|
||||
float cr_a_c; // alpha change per msecond
|
||||
float cr_a; // current alpha
|
||||
int cr_tm; // shown how long ?
|
||||
int cr_c_tm; // current time
|
||||
char cr_str[256]; // what is shown...
|
||||
int cr_x, cr_y, cr_w, cr_h; // shown where ?
|
||||
int cr_st; // state: 0 undim, 1 shown, 2 dim
|
||||
// snapshot
|
||||
int snap;
|
||||
// blink time //
|
||||
int blink_time;
|
||||
} Game;
|
||||
|
||||
void G_Ini();
|
||||
void G_Trm();
|
||||
int G_Opn();
|
||||
void G_Cls();
|
||||
void G_Run();
|
||||
void G_LdGSts();
|
||||
void G_DelGSt(void *p);
|
||||
void G_Ps();
|
||||
void G_CkFgr();
|
||||
int G_CfmWrp();
|
||||
int G_CfmQut();
|
||||
int G_CfmRst();
|
||||
int G_CkLSt();
|
||||
|
||||
// marble //
|
||||
void Mr_Hd();
|
||||
void Mr_Shw();
|
||||
int Mr_Upd(int ms);
|
||||
void Mr_Sel(int x, int y);
|
||||
void Mr_Rel(int x, int y);
|
||||
void Mr_IniMv();
|
||||
void Mr_Stp();
|
||||
void Mr_Ins();
|
||||
void Mr_CkVDir(int mx, int my);
|
||||
void Mr_Act();
|
||||
void Mr_ResPos();
|
||||
|
||||
// timer //
|
||||
void Tm_Hd();
|
||||
void Tm_Shw();
|
||||
int Tm_Upd(int ms);
|
||||
|
||||
// level info //
|
||||
void Inf_Hd();
|
||||
int Inf_Upd();
|
||||
void Inf_Shw();
|
||||
|
||||
// cursor //
|
||||
void Cr_Ld(char *src, char *d, char*m);
|
||||
void Cr_Cng(int x, int y);
|
||||
|
||||
// frame //
|
||||
void MF_Hd();
|
||||
void MF_Upd(int ms);
|
||||
void MF_Shw();
|
||||
|
||||
// map animations //
|
||||
void MA_Ini();
|
||||
void MA_Upd(int ms);
|
||||
void MA_Shw();
|
||||
|
||||
// shrapnells //
|
||||
void Shr_Add(int x, int y, int w, int h, Vec d, SDL_Surface *s_shr);
|
||||
void Shr_Del(void *p);
|
||||
void Shr_Hd();
|
||||
void Shr_Upd(int ms);
|
||||
void Shr_Shw();
|
||||
|
||||
// wall //
|
||||
void Wl_Exp(int x, int y, int v);
|
||||
|
||||
// figure animation //
|
||||
void FA_Run();
|
||||
void FA_Add(int mx, int my, int m);
|
||||
|
||||
// credits //
|
||||
void Cr_Ini();
|
||||
void Cr_Hd();
|
||||
void Cr_Upd(int ms);
|
||||
void Cr_Shw();
|
||||
|
||||
// bonus summary //
|
||||
void BS_Run(float b_lvl, float b_tm);
|
||||
void BS_Hd(int x, int y, int w, int h);
|
||||
void BS_Shw(int x, int y, int v);
|
||||
|
||||
// shnapshot //
|
||||
void SnapShot();
|
||||
|
||||
#endif
|
||||
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/board.bmp
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/f_red.bmp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/f_small.bmp
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/f_white.bmp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/f_yellow.bmp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/figure.bmp
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/lights.bmp
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/logo.bmp
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/m_frame.bmp
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/m_sframe.bmp
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/marbles.bmp
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/metal/arrow_d.bmp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/metal/arrow_l.bmp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/metal/arrow_r.bmp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/metal/arrow_u.bmp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/metal/floor.bmp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/metal/wall.bmp
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/stone/arrow_d.bmp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/stone/arrow_l.bmp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/stone/arrow_r.bmp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/stone/arrow_u.bmp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/stone/floor.bmp
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/stone/wall.bmp
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/tiny.sdlfnt
Normal file
|
After Width: | Height: | Size: 880 B |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/title.bmp
Normal file
|
After Width: | Height: | Size: 193 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/win_icon.bmp
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/wood/arrow_d.bmp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/wood/arrow_l.bmp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/wood/arrow_r.bmp
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/wood/arrow_u.bmp
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/wood/floor.bmp
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
BIN
project/jni/application/lmarbles-1.0.8/src/gfx/wood/wall.bmp
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
837
project/jni/application/lmarbles-1.0.8/src/levels.c
Normal file
@@ -0,0 +1,837 @@
|
||||
/***************************************************************************
|
||||
levels.c - description
|
||||
-------------------
|
||||
begin : Mon Aug 14 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include "levels.h"
|
||||
#include "dynlist.h"
|
||||
#include "game.h"
|
||||
#include "file.h"
|
||||
#include "sdl.h"
|
||||
#include "timer.h"
|
||||
#include "cfg.h"
|
||||
|
||||
/* game struct -- game.c */
|
||||
extern Game gm;
|
||||
/* line counter -- file.c */
|
||||
extern int f_ln;
|
||||
/* Sdl -- sdl.c */
|
||||
extern Sdl sdl;
|
||||
/* profiles -- profile.c */
|
||||
extern DLst prfs;
|
||||
/* config -- cfg.c */
|
||||
extern Cfg cfg;
|
||||
|
||||
char **ls_lst = 0;
|
||||
int ls_n = 0;
|
||||
DLst l_sts;
|
||||
|
||||
/*
|
||||
count and create a list with all loadable filenames found in SRC_DIR/levels
|
||||
*/
|
||||
void L_CrtLst()
|
||||
{
|
||||
int i;
|
||||
char d_nm[256];
|
||||
char path[256+64];
|
||||
DIR *dir = 0;
|
||||
struct dirent *e;
|
||||
struct stat s;
|
||||
|
||||
ls_n = 0;
|
||||
|
||||
// create directory string //
|
||||
sprintf(d_nm, "%s/levels", SRC_DIR);
|
||||
|
||||
// find and open directory //
|
||||
if ((dir = opendir(d_nm)) == 0) {
|
||||
fprintf(stderr, "ERROR: can't find directory '%s'\n", d_nm);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
printf("searching for level sets...\n");
|
||||
// well, let's check the count the entries //
|
||||
while ((e = readdir(dir)) != 0) {
|
||||
sprintf(path, "%s/%s", d_nm, e->d_name);
|
||||
stat(path, &s);
|
||||
if (S_ISREG(s.st_mode)) {
|
||||
(ls_n)++;
|
||||
printf("'%s'\n", e->d_name);
|
||||
}
|
||||
}
|
||||
|
||||
if (ls_n == 0) {
|
||||
fprintf(stderr, "ERROR: '%s' seems to be empty\n", d_nm);
|
||||
closedir(dir);
|
||||
exit(1);
|
||||
}
|
||||
else
|
||||
printf("...total of %i\n", ls_n);
|
||||
|
||||
// now we'll create the list //
|
||||
rewinddir(dir);
|
||||
ls_lst = malloc(sizeof(char*) * (ls_n));
|
||||
for (i = 0; i < ls_n; i++) {
|
||||
do {
|
||||
e = readdir(dir);
|
||||
if (e == 0) continue;
|
||||
sprintf(path, "%s/%s", d_nm, e->d_name);
|
||||
stat(path, &s);
|
||||
} while (!S_ISREG(s.st_mode));
|
||||
ls_lst[i] = malloc(strlen(e->d_name) + 1);
|
||||
strcpy(ls_lst[i], e->d_name);
|
||||
}
|
||||
|
||||
// close dir //
|
||||
closedir(dir);
|
||||
}
|
||||
|
||||
/*
|
||||
free list memory
|
||||
*/
|
||||
void L_DelLst()
|
||||
{
|
||||
int i;
|
||||
if (!ls_lst) return;
|
||||
for (i = 0; i < ls_n; i++)
|
||||
free(ls_lst[i]);
|
||||
free(ls_lst);
|
||||
}
|
||||
|
||||
/*
|
||||
callback for dynlist l_sts to delete a level set
|
||||
*/
|
||||
void L_DelSt(void *p)
|
||||
{
|
||||
int i;
|
||||
LSet *st = (LSet*)p;
|
||||
if (st->ch) {
|
||||
for (i = 0; i < st->c_num; i++)
|
||||
free(st->ch[i].lvls);
|
||||
free(st->ch);
|
||||
}
|
||||
free(p);
|
||||
}
|
||||
|
||||
/*
|
||||
add an empty and invalid entry
|
||||
*/
|
||||
void L_AddInvSt(char *nm)
|
||||
{
|
||||
LSet *st = malloc(sizeof(LSet));
|
||||
st->c_num = 0;
|
||||
st->ch = 0;
|
||||
st->ok = 0;
|
||||
strcpy(st->nm, nm);
|
||||
DL_Add(&l_sts, st);
|
||||
}
|
||||
|
||||
/*
|
||||
set marble, type and id of a map tile
|
||||
*/
|
||||
void L_StMpT(MapT *tl, int m, int t, int id)
|
||||
{
|
||||
tl->m = m;
|
||||
tl->t = t;
|
||||
tl->id = id;
|
||||
}
|
||||
|
||||
/*
|
||||
parse and add a new lset from file f
|
||||
*/
|
||||
int L_LdSt(FILE *f)
|
||||
{
|
||||
int i, j, k, l;
|
||||
char val[64];
|
||||
char str[512];
|
||||
LSet *st = malloc(sizeof(LSet));
|
||||
|
||||
// info section //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "<info>", 0)) {
|
||||
printf("ERROR: line %i: '<info>' expected\n", f_ln);
|
||||
free(st);
|
||||
return 0;
|
||||
}
|
||||
// levels per chapter //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "levels", val)) {
|
||||
printf("ERROR: line %i: 'levels' expected\n", f_ln);
|
||||
free(st);
|
||||
return 0;
|
||||
}
|
||||
st->l_num = atoi(val);
|
||||
// chapters //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "chapters", val)) {
|
||||
printf("ERROR: line %i: 'chapters' expected\n", f_ln);
|
||||
free(st);
|
||||
return 0;
|
||||
}
|
||||
st->c_num = atoi(val);
|
||||
// limit type //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "limit", val)) {
|
||||
printf("ERROR: line %i: 'limit' expected\n", f_ln);
|
||||
free(st);
|
||||
return 0;
|
||||
}
|
||||
if ( !strncmp( "time", val, 4 ) )
|
||||
st->limit_type = TIME;
|
||||
else
|
||||
st->limit_type = MOVES;
|
||||
// info section //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "</info>", 0)) {
|
||||
printf("ERROR: line %i: '</info>' expected\n", f_ln);
|
||||
free(st);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// get memory
|
||||
st->ch = malloc( sizeof(Chptr) * st->c_num );
|
||||
for (i = 0; i < st->c_num; i++)
|
||||
st->ch[i].lvls = malloc( sizeof(Lvl) * st->l_num );
|
||||
|
||||
// chapters
|
||||
for (i = 0; i < st->c_num; i++) {
|
||||
// chapter start //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "<chapter>", 0)) {
|
||||
printf("ERROR: line %i: '<chapter>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// name //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "name", st->ch[i].nm)) {
|
||||
printf("ERROR: line %i: 'name' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// author //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "author", st->ch[i].authr)) {
|
||||
printf("ERROR: line %i: 'author' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// gset //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "gfx_set", st->ch[i].g_st)) {
|
||||
printf("ERROR: line %i: 'gfx_set' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// open for play ? //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "open", val)) {
|
||||
printf("ERROR: line %i: 'open' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
st->ch[i].opn = atoi(val);
|
||||
|
||||
// levels //
|
||||
for (j = 0; j < st->l_num; j++) {
|
||||
// level start //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "<level>", 0)) {
|
||||
printf("ERROR: line %i: '<level>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// time //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "limit", val)) {
|
||||
printf("ERROR: line %i: 'limit' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
st->ch[i].lvls[j].tm = atoi(val);
|
||||
// map width //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "map_w", val)) {
|
||||
printf("ERROR: line %i: 'map_w' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
if ((st->ch[i].lvls[j].m_w = atoi(val)) > L_MAX_W || atoi(val) < L_MIN_W) {
|
||||
printf("ERROR: line %i: 'map_w' out of range (%i-%i): %i\n", f_ln, L_MIN_W, L_MAX_W, atoi(val));
|
||||
goto failure;
|
||||
}
|
||||
// map height //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "map_h", val)) {
|
||||
printf("ERROR: line %i: 'map_h' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
if ((st->ch[i].lvls[j].m_h = atoi(val)) > L_MAX_H || atoi(val) < L_MIN_H) {
|
||||
printf("ERROR: line %i: 'map_w' out of range (%i-%i): %i\n", f_ln, L_MIN_H, L_MAX_H, atoi(val));
|
||||
goto failure;
|
||||
}
|
||||
// figure width //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "fig_w", val)) {
|
||||
printf("ERROR: line %i: 'fig_w' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
st->ch[i].lvls[j].f_w = atoi(val);
|
||||
if ((st->ch[i].lvls[j].f_w = atoi(val)) > F_MAX_W || atoi(val) < F_MIN_W) {
|
||||
printf("ERROR: line %i: 'fig_w' out of range (%i-%i): %i\n", f_ln, F_MIN_W, F_MAX_W, atoi(val));
|
||||
goto failure;
|
||||
}
|
||||
// figure height //
|
||||
F_GetE(f, str, F_VAL);
|
||||
if (!F_CkE(str, F_VAL, "fig_h", val)) {
|
||||
printf("ERROR: line %i: 'fig_h' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
if ((st->ch[i].lvls[j].f_h = atoi(val)) > F_MAX_H || atoi(val) < F_MIN_H) {
|
||||
printf("ERROR: line %i: 'fig_h' out of range (%i-%i): %i\n", f_ln, F_MIN_H, F_MAX_H, atoi(val));
|
||||
goto failure;
|
||||
}
|
||||
|
||||
// figure start //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "<figure>", 0)) {
|
||||
printf("ERROR: line %i: '<figure>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// figure //
|
||||
for (k = 0; k < st->ch[i].lvls[j].f_h; k++) {
|
||||
F_GetE(f, str, F_VAL);
|
||||
for (l = 0; l < st->ch[i].lvls[j].f_w; l++) {
|
||||
if (str[l] >= '0' && str[l] <= '9')
|
||||
st->ch[i].lvls[j].fgr[l][k] = str[l] - 48;
|
||||
else
|
||||
if (str[l] != 32)
|
||||
printf("WARNING: line %i: bad figure marble '%c'\n", f_ln, str[l]);
|
||||
else
|
||||
st->ch[i].lvls[j].fgr[l][k] = -1;
|
||||
}
|
||||
}
|
||||
// figure end //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "</figure>", 0)) {
|
||||
printf("ERROR: line %i: '</figure>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
|
||||
// map start //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "<map>", 0)) {
|
||||
printf("ERROR: line %i: '<map>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
// map
|
||||
for (k = 0; k < st->ch[i].lvls[j].m_h; k++) {
|
||||
memset(str, 0, 256);
|
||||
F_GetE(f, str, F_VAL);
|
||||
for (l = 0; l < st->ch[i].lvls[j].m_w; l++) {
|
||||
if (str[l] >= '0' && str[l] <= '9')
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], str[l] - 48, M_FLOOR, 0);
|
||||
else
|
||||
switch (str[l]) {
|
||||
case 'a':
|
||||
case 'b':
|
||||
case 'c':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_WALL, str[l] - 97);
|
||||
break;
|
||||
case ' ':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_FLOOR, 0);
|
||||
break;
|
||||
case 'u':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_U, 0);
|
||||
break;
|
||||
case 'd':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_D, 0);
|
||||
break;
|
||||
case 'r':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_R, 0);
|
||||
break;
|
||||
case 'l':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_L, 0);
|
||||
break;
|
||||
case 'U':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_U_C, 0);
|
||||
break;
|
||||
case 'D':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_D_C, 0);
|
||||
break;
|
||||
case 'R':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_R_C, 0);
|
||||
break;
|
||||
case 'L':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_OW_L_C, 0);
|
||||
break;
|
||||
case 'w':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_TLP_0, 0);
|
||||
break;
|
||||
case 'x':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_TLP_1, 0);
|
||||
break;
|
||||
case 'y':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_TLP_2, 0);
|
||||
break;
|
||||
case 'z':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_TLP_3, 0);
|
||||
break;
|
||||
case 'A':
|
||||
case 'B':
|
||||
case 'C':
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_CRUMBLE, str[l] - 65);
|
||||
break;
|
||||
default:
|
||||
L_StMpT(&st->ch[i].lvls[j].map[l][k], -1, M_EMPTY, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// map end //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "</map>", 0)) {
|
||||
printf("ERROR: line %i: '</map>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
|
||||
// level end //
|
||||
F_GetE(f, str, F_SUB | F_VAL);
|
||||
if (!F_CkE(str, F_SUB, "</level>", 0)) {
|
||||
printf("ERROR: line %i: '</level>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
|
||||
// chapter end //
|
||||
F_GetE(f, str, F_SUB);
|
||||
if (!F_CkE(str, F_SUB, "</chapter>", 0)) {
|
||||
printf("ERROR: line %i: '</chapter>' expected\n", f_ln);
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
|
||||
// return 1 in any case cuz 0 assumes that an empty set must be added
|
||||
printf("ok\n");
|
||||
DL_Add(&l_sts, st);
|
||||
st->ok = 1;
|
||||
return 1;
|
||||
|
||||
failure:
|
||||
DL_Add(&l_sts, st);
|
||||
// L_DelSt(st);
|
||||
st->ok = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
initialize level l
|
||||
*/
|
||||
void L_Ini(int c, int l)
|
||||
{
|
||||
char *nm;
|
||||
DL_E *e;
|
||||
int gst_ok = 0;
|
||||
int px, py, i, j, k;
|
||||
Lvl *lp;
|
||||
char str[64];
|
||||
int off;
|
||||
char *str_num[] = {"1.", "2.", "3.", "4.", "5.", "6.", "7.", "8.", "9.", "10."};
|
||||
float mv_mod;
|
||||
|
||||
// show credit when new chapter
|
||||
if ( gm.o_ch == -1 || gm.o_ch != c )
|
||||
Cr_Ini();
|
||||
|
||||
// set level & chapter index
|
||||
gm.o_ch = c;
|
||||
gm.c_ch = c;
|
||||
gm.c_l_id = l;
|
||||
gm.l_done = 0;
|
||||
|
||||
// set open flag
|
||||
gm.c_s_inf->c_opn[gm.c_ch] = 1;
|
||||
|
||||
// copy current level
|
||||
if (gm.c_lvl) free(gm.c_lvl);
|
||||
gm.c_lvl = malloc(sizeof(Lvl));
|
||||
memcpy(gm.c_lvl, &gm.c_l_st->ch[gm.c_ch].lvls[gm.c_l_id], sizeof(Lvl));
|
||||
|
||||
// load gfx set
|
||||
nm = gm.c_l_st->ch[gm.c_ch].g_st;
|
||||
e = gm.g_sts.hd.n;
|
||||
while (e != &gm.g_sts.tl) {
|
||||
if (!strncmp(nm, ((GSet*)e->d)->nm, strlen(nm)) && ((GSet*)e->d)->ok) {
|
||||
gm.c_g_st = (GSet*)e->d;
|
||||
gst_ok = 1;
|
||||
break;
|
||||
}
|
||||
e = e->n;
|
||||
}
|
||||
if (!gst_ok) {
|
||||
printf("WARNING: unknown or unuseable gfx set '%s';\nsearching for a good one...\n", nm);
|
||||
// find first useable set
|
||||
e = gm.g_sts.hd.n;
|
||||
while (e != &gm.g_sts.tl) {
|
||||
if (((GSet*)e->d)->ok) {
|
||||
gm.c_g_st = (GSet*)e->d;
|
||||
printf("'%s' used instead\n", gm.c_g_st->nm);
|
||||
gst_ok = 1;
|
||||
break;
|
||||
}
|
||||
e = e->n;
|
||||
}
|
||||
if (!gst_ok) {
|
||||
printf("ERROR: no good gfx set found...\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
// set bkgd picture
|
||||
if (gm.c_g_st->s_bkgd) {
|
||||
for (j = 0; j < gm.scr_w - gm.brd_w; j += gm.c_g_st->s_bkgd->w)
|
||||
for (k = 0; k < gm.scr_h; k += gm.c_g_st->s_bkgd->h) {
|
||||
D_DST(gm.s_bkgd, j, k, gm.c_g_st->s_bkgd->w, gm.c_g_st->s_bkgd->h);
|
||||
D_SRC(gm.c_g_st->s_bkgd, 0, 0);
|
||||
SS_Blt();
|
||||
}
|
||||
}
|
||||
else {
|
||||
D_DST(gm.s_bkgd, 0, 0, gm.scr_w - gm.brd_w, gm.scr_h);
|
||||
SS_Fill(0x0);
|
||||
}
|
||||
|
||||
// add board
|
||||
D_DST(gm.s_bkgd, gm.s_bkgd->w - gm.s_brd->w, 0, gm.s_brd->w, gm.s_brd->h);
|
||||
D_SRC(gm.s_brd, 0, 0);
|
||||
SS_Blt();
|
||||
|
||||
// add static level gfx
|
||||
lp = &gm.c_l_st->ch[gm.c_ch].lvls[gm.c_l_id];
|
||||
gm.l_x = (gm.scr_w - gm.brd_w - lp->m_w * gm.t_w) / 2;
|
||||
gm.l_y = (gm.scr_h - lp->m_h * gm.t_h) / 2;
|
||||
for (i = 0; i < lp->m_w; i++)
|
||||
for (j = 0; j < lp->m_h; j++)
|
||||
L_DrwMpTl(i, j);
|
||||
|
||||
// add marbles
|
||||
for (i = 0; i < lp->m_w; i++)
|
||||
for (j = 0; j < lp->m_h; j++)
|
||||
if (lp->map[i][j].m != - 1) {
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
D_SRC(gm.s_mrb, 0, lp->map[i][j].m * gm.t_h);
|
||||
SS_Blt();
|
||||
}
|
||||
|
||||
// add figure
|
||||
px = gm.b_x + gm.f_x + (gm.f_fw - lp->f_w * gm.f_h) / 2;
|
||||
py = gm.f_y + (gm.f_fh - lp->f_h * gm.f_h)/ 2;
|
||||
for (i = 0; i < lp->f_w; i++)
|
||||
for (j = 0; j < lp->f_h; j++)
|
||||
if (lp->fgr[i][j] != -1) {
|
||||
D_DST(gm.s_bkgd, px + i * gm.f_w, py + j * gm.f_h, gm.f_w, gm.f_h);
|
||||
D_SRC(gm.s_fig, 0, lp->fgr[i][j] * gm.f_h);
|
||||
SS_Blt();
|
||||
}
|
||||
|
||||
// add player info
|
||||
off = gm.f_sml->h + 2;
|
||||
gm.f_sml->algn = TA_X_L | TA_Y_T;
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.i_x + gm.b_x, gm.i_y, "Player:", 0);
|
||||
gm.f_sml->algn = TA_X_R | TA_Y_T;
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.scr_w - gm.i_x, gm.i_y, gm.c_prf->nm, 0);
|
||||
gm.f_sml->algn = TA_X_L | TA_Y_T;
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.i_x + gm.b_x, gm.i_y + off, "Score:", 0);
|
||||
gm.f_sml->algn = TA_X_R | TA_Y_T;
|
||||
sprintf(str, "%i", gm.c_prf->scr);
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.scr_w - gm.i_x, gm.i_y + off, str, 0);
|
||||
gm.f_sml->algn = TA_X_L | TA_Y_T;
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.i_x + gm.b_x, gm.i_y + off*2 + 5, "HighScore:", 0);
|
||||
gm.f_sml->algn = TA_X_R | TA_Y_T;
|
||||
sprintf(str, "%i", gm.hi_scr);
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.scr_w - gm.i_x, gm.i_y + off*2 + 5, str, 0);
|
||||
|
||||
// add name of levelset above set info
|
||||
gm.f_sml->algn = TA_X_C | TA_Y_T;
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.b_x + gm.brd_w / 2, gm.s_y + 5, gm.c_l_st->nm, 0);
|
||||
|
||||
// compute position of first chapter
|
||||
gm.c_x = 50; // changed
|
||||
gm.c_y = gm.s_y + (gm.s_h - gm.c_l_st->c_num * L_SIZE) / 2;
|
||||
|
||||
// add chapter numbers
|
||||
gm.f_sml->algn = TA_X_L | TA_Y_T;
|
||||
for (i = 0; i < gm.c_l_st->c_num; i++) {
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.b_x + gm.c_x - 30, gm.c_y + i * L_SIZE, str_num[i], 0);
|
||||
}
|
||||
|
||||
// draw chapter lights
|
||||
for (j = 0; j < gm.c_l_st->c_num; j++)
|
||||
for (i = 0; i < gm.c_l_st->l_num; i++) {
|
||||
D_DST(gm.s_bkgd, gm.b_x + gm.c_x + i * L_SIZE, gm.c_y + j * L_SIZE, L_SIZE, L_SIZE);
|
||||
if (!gm.c_s_inf->c_opn[j]) {
|
||||
D_SRC(gm.s_lghts, L_RED * L_SIZE, 0);
|
||||
}
|
||||
else
|
||||
if ( gm.c_s_inf->cmp[j * gm.c_l_st->l_num + i] ) {
|
||||
D_SRC(gm.s_lghts, L_GREEN * L_SIZE, 0);
|
||||
}
|
||||
else {
|
||||
D_SRC(gm.s_lghts, L_ORANGE * L_SIZE, 0);
|
||||
}
|
||||
SS_Blt();
|
||||
}
|
||||
// current level is white
|
||||
D_DST(gm.s_bkgd, gm.b_x + gm.c_x + l * L_SIZE, gm.c_y + c * L_SIZE, L_SIZE, L_SIZE);
|
||||
D_SRC(gm.s_lghts, L_WHITE * L_SIZE, 0);
|
||||
SS_Blt();
|
||||
|
||||
// initiate animations
|
||||
|
||||
MA_Ini();
|
||||
|
||||
// undim
|
||||
D_FDST(sdl.scr);
|
||||
D_FSRC(gm.s_bkgd);
|
||||
SS_Blt();
|
||||
if (cfg.dim)
|
||||
SDL_UNDIM();
|
||||
else
|
||||
Sdl_FUpd();
|
||||
|
||||
// reset timer
|
||||
T_Rst();
|
||||
|
||||
// reset marble and frame
|
||||
gm.m_mv = 0;
|
||||
gm.m_sel = 0;
|
||||
gm.mf_a.p = 0;
|
||||
gm.msf_a.p = 0;
|
||||
gm.m_act = M_EMPTY;
|
||||
gm.m_mx = gm.m_my = -1;
|
||||
|
||||
if ( gm.c_l_st->limit_type == TIME ) {
|
||||
/* set time from seconds to milliseconds if time used */
|
||||
gm.c_lvl->tm *= 1000;
|
||||
gm.c_lvl->tm+=1000;
|
||||
}
|
||||
else {
|
||||
/* gm.c_lvl->tm containts the move limit. this is modified according
|
||||
to the difficulty levels */
|
||||
switch ( cfg.diff ) {
|
||||
case DIFF_EASY:
|
||||
mv_mod = (int)ceil((float)gm.c_lvl->tm * 0.2 * ( 5 - gm.c_ch ) );
|
||||
gm.c_lvl->tm += mv_mod;
|
||||
if ( gm.c_lvl->tm % 2 ) gm.c_lvl->tm++;
|
||||
break;
|
||||
case DIFF_NORMAL:
|
||||
mv_mod = (int)ceil((float)gm.c_lvl->tm * 0.1 * ( 5 - gm.c_ch ) );
|
||||
gm.c_lvl->tm += mv_mod;
|
||||
if ( gm.c_lvl->tm % 2 ) gm.c_lvl->tm++;
|
||||
break;
|
||||
case DIFF_HARD:
|
||||
mv_mod = (int)ceil((float)gm.c_lvl->tm * 0.05 * ( 5 - gm.c_ch ) );
|
||||
gm.c_lvl->tm += mv_mod;
|
||||
if ( gm.c_lvl->tm % 2 ) gm.c_lvl->tm++;
|
||||
break;
|
||||
case DIFF_BRAINSTORM:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// init blink time //
|
||||
gm.blink_time = 0;
|
||||
|
||||
// cursor state
|
||||
gm.c_stat = C_NONE;
|
||||
SDL_SetCursor(gm.c_n);
|
||||
|
||||
// reset shrapnells
|
||||
DL_Clr(&gm.shr);
|
||||
}
|
||||
|
||||
/*
|
||||
draw a map tile to gm.s_bkgd with x,y position in the map using current map
|
||||
*/
|
||||
void L_DrwMpTl(int i, int j)
|
||||
{
|
||||
switch (gm.c_lvl->map[i][j].t) {
|
||||
case M_WALL:
|
||||
// add wall shadow on right side ? //
|
||||
if ( i + 1 >= gm.c_lvl->m_w || gm.c_lvl->map[i + 1][j].t == M_EMPTY ) {
|
||||
|
||||
D_DST(gm.s_bkgd, gm.l_x + (i + 1) * gm.t_w, gm.l_y + j * gm.t_h, 1, gm.t_h + 1);
|
||||
SS_Fill(0x0);
|
||||
|
||||
}
|
||||
// add wall shadow on bottom ? //
|
||||
if ( j + 1 >= gm.c_lvl->m_h || gm.c_lvl->map[i][j + 1].t == M_EMPTY ) {
|
||||
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + (j + 1) * gm.t_h, gm.t_w + 1, 1);
|
||||
SS_Fill(0x0);
|
||||
|
||||
}
|
||||
// add wall shadow on left side ? //
|
||||
if ( (i == 0)
|
||||
|| ((i - 1 >= gm.c_lvl->m_w) || gm.c_lvl->map[i - 1][j].t == M_EMPTY )) {
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w - 1, gm.l_y + j * gm.t_h, 1, gm.t_h + 1);
|
||||
SS_Fill(0x0);
|
||||
|
||||
}
|
||||
// add wall shadow on top ? //
|
||||
if ( (j == 0)
|
||||
|| ((j - 1 >= gm.c_lvl->m_h) || gm.c_lvl->map[i][j - 1].t == M_EMPTY )) {
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h - 1, gm.t_w + 1, 1);
|
||||
SS_Fill(0x0);
|
||||
|
||||
}
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
D_SRC(gm.c_g_st->s_wl, gm.c_lvl->map[i][j].id * gm.t_w, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
case M_CRUMBLE:
|
||||
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
D_SRC(gm.c_g_st->s_flr, 0, 0);
|
||||
SS_Blt();
|
||||
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
D_SRC(gm.c_g_st->s_crmbl, gm.c_lvl->map[i][j].id * gm.t_w, 0);
|
||||
SS_Blt();
|
||||
|
||||
gm.f_sml->algn = TA_X_R | TA_Y_B;
|
||||
switch (gm.c_lvl->map[i][j].id) {
|
||||
case 0:
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.l_x + (i + 1) * gm.t_w - 1, gm.l_y + (j + 1) * gm.t_h - 1, "1", 0);
|
||||
break;
|
||||
case 1:
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.l_x + (i + 1) * gm.t_w - 1, gm.l_y + (j + 1) * gm.t_h - 1, "2", 0);
|
||||
break;
|
||||
case 2:
|
||||
SF_Wrt(gm.f_sml, gm.s_bkgd, gm.l_x + (i + 1) * gm.t_w - 1, gm.l_y + (j + 1) * gm.t_h - 1, "3", 0);
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case M_EMPTY:
|
||||
break;
|
||||
default:
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
D_SRC(gm.c_g_st->s_flr, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
}
|
||||
|
||||
// static animations ? //
|
||||
if (!cfg.ani) {
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
switch (gm.c_lvl->map[i][j].t) {
|
||||
case M_OW_U:
|
||||
case M_OW_U_C:
|
||||
D_SRC(gm.c_g_st->s_u_arw, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
case M_OW_D:
|
||||
case M_OW_D_C:
|
||||
D_SRC(gm.c_g_st->s_d_arw, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
case M_OW_L:
|
||||
case M_OW_L_C:
|
||||
D_SRC(gm.c_g_st->s_l_arw, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
case M_OW_R:
|
||||
case M_OW_R_C:
|
||||
D_SRC(gm.c_g_st->s_r_arw, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
}
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
switch (gm.c_lvl->map[i][j].t) {
|
||||
case M_OW_U_C:
|
||||
case M_OW_D_C:
|
||||
D_SRC(gm.c_g_st->s_lr_bar, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
case M_OW_L_C:
|
||||
case M_OW_R_C:
|
||||
D_SRC(gm.c_g_st->s_ud_bar, 0, 0);
|
||||
SS_Blt();
|
||||
break;
|
||||
}
|
||||
|
||||
D_DST(gm.s_bkgd, gm.l_x + i * gm.t_w, gm.l_y + j * gm.t_h, gm.t_w, gm.t_h);
|
||||
switch (gm.c_lvl->map[i][j].t) {
|
||||
case M_TLP_0:
|
||||
D_SRC(gm.c_g_st->s_tlp_0, 0, 0);
|
||||
SS_ABlt(gm.tlp_a);
|
||||
break;
|
||||
case M_TLP_1:
|
||||
D_SRC(gm.c_g_st->s_tlp_1, 0, 0);
|
||||
SS_ABlt(gm.tlp_a);
|
||||
break;
|
||||
case M_TLP_2:
|
||||
D_SRC(gm.c_g_st->s_tlp_2, 0, 0);
|
||||
SS_ABlt(gm.tlp_a);
|
||||
break;
|
||||
case M_TLP_3:
|
||||
D_SRC(gm.c_g_st->s_tlp_3, 0, 0);
|
||||
SS_ABlt(gm.tlp_a);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
proceed to next valid level
|
||||
*/
|
||||
int L_FndNxt()
|
||||
{
|
||||
int i, j;
|
||||
|
||||
// proceed to next level
|
||||
gm.c_l_id++;
|
||||
if (gm.c_l_id >= gm.c_l_st->l_num) {
|
||||
gm.c_l_id = 0;
|
||||
gm.c_ch++;
|
||||
// check if this chapter can be entered or if this was the last chapter if not take first unsolved level found
|
||||
if (gm.c_ch >= gm.c_l_st->c_num || !gm.c_l_st->ch[gm.c_ch].opn) {
|
||||
for (i = 0; i < gm.c_ch; i++)
|
||||
for (j = 0; j < gm.c_l_st->l_num; j++)
|
||||
if (!gm.c_s_inf->cmp[i * gm.c_l_st->l_num + j]) {
|
||||
// not all levels completed jump back to first unsolved level
|
||||
gm.c_ch = i;
|
||||
gm.c_l_id = j;
|
||||
return 1;
|
||||
}
|
||||
if (gm.c_ch >= gm.c_l_st->c_num)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// check if all levels of this chapter has been solved
|
||||
for (i = 0; i <= gm.c_ch; i++)
|
||||
for (j = 0; j < gm.c_l_st->l_num; j++)
|
||||
if (!gm.c_s_inf->cmp[i * gm.c_l_st->l_num + j]) {
|
||||
return 1;
|
||||
}
|
||||
// yes! open next chapter
|
||||
if ( gm.c_ch < gm.c_l_st->c_num - 1 )
|
||||
gm.c_s_inf->c_opn[gm.c_ch + 1] = 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
104
project/jni/application/lmarbles-1.0.8/src/levels.h
Normal file
@@ -0,0 +1,104 @@
|
||||
/***************************************************************************
|
||||
levels.h - description
|
||||
-------------------
|
||||
begin : Mon Aug 14 2000
|
||||
copyright : (C) 2000 by Michael Speck
|
||||
email : kulkanie@gmx.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef LEVELS_H
|
||||
#define LEVELS_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX_LVLS 10
|
||||
#define MAX_CHPTRS 10
|
||||
#define L_MAX_W 13
|
||||
#define L_MIN_W 4
|
||||
#define L_MAX_H 14
|
||||
#define L_MIN_H 4
|
||||
#define F_MAX_W 10
|
||||
#define F_MIN_W 2
|
||||
#define F_MAX_H 10
|
||||
#define F_MIN_H 1
|
||||
|
||||
// level bonuses //
|
||||
#define LB_COMPLETED 1000
|
||||
#define LB_PER_MOVE 50
|
||||
|
||||
// limit type //
|
||||
#define TIME 0
|
||||
#define MOVES 1
|
||||
|
||||
// tile types //
|
||||
enum {
|
||||
M_EMPTY = 0, // background //
|
||||
M_FLOOR, // simple floor //
|
||||
M_OW_U_C, // oneway directed to north (up) closed to the left and right side //
|
||||
M_OW_D_C, // analog //
|
||||
M_OW_L_C, // analog //
|
||||
M_OW_R_C, // analog //
|
||||
M_OW_U, // oneway to north not closed at the sides //
|
||||
M_OW_D, // analog //
|
||||
M_OW_L, // analog //
|
||||
M_OW_R, // analog //
|
||||
M_WALL, // impassible wall //
|
||||
M_TLP_0, // teleporter //
|
||||
M_TLP_1, // analog //
|
||||
M_TLP_2, // analog //
|
||||
M_TLP_3, // analog //
|
||||
M_CRUMBLE, // crumbling wall //
|
||||
M_NUM
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
int m; // marble //
|
||||
int t; // type //
|
||||
int id;
|
||||
} MapT;
|
||||
|
||||
typedef struct {
|
||||
int tm; // time //
|
||||
int m_w, m_h; // map size //
|
||||
int f_w, f_h; // figure size //
|
||||
int fgr[F_MAX_W][F_MAX_H]; // figure //
|
||||
MapT map[L_MAX_W][L_MAX_H]; // map //
|
||||
} Lvl;
|
||||
|
||||
typedef struct {
|
||||
char nm[64];
|
||||
char authr[32];
|
||||
char g_st[32];
|
||||
int bkgd;
|
||||
int opn; // levels from this chapter can be played
|
||||
Lvl *lvls;
|
||||
} Chptr;
|
||||
|
||||
typedef struct {
|
||||
char nm[64];
|
||||
int c_num;
|
||||
int l_num;
|
||||
Chptr *ch;
|
||||
int ok;
|
||||
int limit_type; /* which type of limit? */
|
||||
} LSet;
|
||||
|
||||
void L_CrtLst();
|
||||
void L_DelLst();
|
||||
void L_DelSt(void *p);
|
||||
void L_AddInvSt(char *nm);
|
||||
int L_LdSt(FILE *f);
|
||||
void L_Ini(int c, int l);
|
||||
void L_DrwMpTl(int x, int y);
|
||||
int L_FndNxt();
|
||||
|
||||
#endif
|
||||
768
project/jni/application/lmarbles-1.0.8/src/levels/Original
Normal file
@@ -0,0 +1,768 @@
|
||||
<info>
|
||||
levels = 8; (per chapter)
|
||||
chapters = 4;
|
||||
limit = moves; (either moves or limit)
|
||||
</info>
|
||||
|
||||
<chapter>
|
||||
name = Tutorial;
|
||||
author = Michael Speck;
|
||||
gfx_set = stone;
|
||||
open = 1;
|
||||
|
||||
<level>
|
||||
limit = 11;
|
||||
map_w = 8; map_h = 8;
|
||||
fig_w = 2; fig_h = 2;
|
||||
<figure>
|
||||
56;
|
||||
65;
|
||||
</figure>
|
||||
<map>
|
||||
cccccccc;
|
||||
c 5 b c;
|
||||
cbb c;
|
||||
c 6 b6c;
|
||||
cccc b c;
|
||||
...c b c;
|
||||
...c 5 c;
|
||||
...ccccc;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 18;
|
||||
map_w = 10; map_h = 9;
|
||||
fig_w = 4; fig_h = 2;
|
||||
<figure>
|
||||
1 ;
|
||||
1898;
|
||||
</figure>
|
||||
<map>
|
||||
aaaaaaaaaa;
|
||||
a 1 8 a;
|
||||
a bb bb a;
|
||||
a b b a;
|
||||
a 8 a;
|
||||
a aaaa a;
|
||||
a a..a a;
|
||||
a9 a..a 1a;
|
||||
aaaa..aaaa;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 22;
|
||||
map_w = 11; map_h = 9;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
4 ;
|
||||
6 6;
|
||||
4 ;
|
||||
</figure>
|
||||
<map>
|
||||
.aaaaaaaaa.;
|
||||
.a 4a.;
|
||||
.a cc caa;
|
||||
.a 4c a;
|
||||
aac cc c a;
|
||||
a c a;
|
||||
a6 cc a;
|
||||
aaaaaaaa6 a;
|
||||
.......aaaa;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 22;
|
||||
map_w = 10; map_h = 10;
|
||||
fig_w = 3; fig_h = 1;
|
||||
<figure>
|
||||
313;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbbbbbb;
|
||||
b 1b;
|
||||
b aab;
|
||||
ba a aa3b;
|
||||
b a a b;
|
||||
b 3a b;
|
||||
b a b;
|
||||
b a aa b;
|
||||
b a a b;
|
||||
bbbbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 25;
|
||||
map_w = 9; map_h = 9;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
2 ;
|
||||
787;
|
||||
2 ;
|
||||
</figure>
|
||||
<map>
|
||||
aaaaaaaaa;
|
||||
a2c c7 a;
|
||||
a cc a;
|
||||
acc c ca;
|
||||
a a;
|
||||
a8c c cca;
|
||||
acc c2a;
|
||||
a7 a;
|
||||
aaaaaaaaa;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 21;
|
||||
map_w = 10; map_h = 12;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
7 9;
|
||||
8 ;
|
||||
9 7;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbb;
|
||||
b 8 b;
|
||||
b b b;
|
||||
b b b;
|
||||
b b b;
|
||||
b bbbbbb;
|
||||
bbb b;
|
||||
b9 bbbb7b;
|
||||
bbb b;
|
||||
b bbb;
|
||||
b7b 9b;
|
||||
bbbbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 31; (seconds or moves)
|
||||
map_w = 10; map_h = 10;
|
||||
fig_w = 4; fig_h = 3;
|
||||
<figure>
|
||||
5 ;
|
||||
2343;
|
||||
5 ;
|
||||
</figure>
|
||||
<map>
|
||||
aaaaaaaaaa;
|
||||
a5 2a;
|
||||
abb b4b a;
|
||||
a3b b b a;
|
||||
a a;
|
||||
a b b b a;
|
||||
a b5 b a;
|
||||
a bbb b a;
|
||||
a 3 a;
|
||||
aaaaaaaaaa;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 63;
|
||||
map_w = 13; map_h = 12;
|
||||
fig_w = 5; fig_h = 3;
|
||||
<figure>
|
||||
55 5;
|
||||
5000 ;
|
||||
5 5;
|
||||
</figure>
|
||||
<map>
|
||||
...ccccccccc.;
|
||||
...c a 5c.;
|
||||
...c0a c.;
|
||||
...ca aac.;
|
||||
cccc aa 5c.;
|
||||
c0a 5 ccc.;
|
||||
c c..;
|
||||
c a5a aaaaccc;
|
||||
c a 5 c;
|
||||
c5 aa 0aadc;
|
||||
cc l c;
|
||||
.cccccccccccc;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter>
|
||||
name = A few problems;
|
||||
author = Michael Speck;
|
||||
gfx_set = wood;
|
||||
open = 0;
|
||||
|
||||
<level>
|
||||
limit = 16;
|
||||
map_w = 8; map_h = 7;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
1 1;
|
||||
232;
|
||||
1 1;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbbbb;
|
||||
b1 c 2b;
|
||||
b R cb;
|
||||
bc2 1 3b;
|
||||
b L cb;
|
||||
b1 c 1b;
|
||||
bbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 35;
|
||||
map_w = 12; map_h = 9;
|
||||
fig_w = 5; fig_h = 3;
|
||||
<figure>
|
||||
55 ;
|
||||
50015;
|
||||
5 ;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbbbbbbbb;
|
||||
b 5 c 5b;
|
||||
b y ccc b;
|
||||
b5 0l y b;
|
||||
ccc cc c b;
|
||||
.c 5 c b;
|
||||
.c 0cc c1l b;
|
||||
.c 5 cbbbb;
|
||||
.ccccccc....;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 19;
|
||||
map_w = 8; map_h = 8;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
1;
|
||||
2 ;
|
||||
1 ;
|
||||
</figure>
|
||||
<map>
|
||||
cccccccc;
|
||||
c 1 c;
|
||||
c ccc cc;
|
||||
c 2 c;
|
||||
c ccc cc;
|
||||
c 1 c;
|
||||
c c c;
|
||||
cccccccc;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 22;
|
||||
map_w = 11; map_h = 10;
|
||||
fig_w = 3; fig_h = 4;
|
||||
<figure>
|
||||
9 ;
|
||||
8 ;
|
||||
8 ;
|
||||
393;
|
||||
</figure>
|
||||
<map>
|
||||
....bbb....;
|
||||
....b3b....;
|
||||
....b b....;
|
||||
bbbbb bbbbb;
|
||||
b b;
|
||||
b8bbbbbbb8b;
|
||||
b b.....b b;
|
||||
b9bbbbbbb9b;
|
||||
b 3 b;
|
||||
bbbbbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 54;
|
||||
map_w = 12; map_h = 7;
|
||||
fig_w = 4; fig_h = 3;
|
||||
<figure>
|
||||
8 ;
|
||||
7997;
|
||||
1 ;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbbbbbbbb;
|
||||
b7 c 9b;
|
||||
b c c1 c cb;
|
||||
b c b;
|
||||
b c c cb;
|
||||
b9 7c 8b;
|
||||
bbbbbbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 30; (!)
|
||||
map_w = 13; map_h = 13;
|
||||
fig_w = 6; fig_h = 3;
|
||||
<figure>
|
||||
99 ;
|
||||
77 77;
|
||||
88 ;
|
||||
</figure>
|
||||
<map>
|
||||
....ccccccccc;
|
||||
....c 9 c;
|
||||
....c bbbbb7c;
|
||||
....c c;
|
||||
ccc.c b b c;
|
||||
c7ccc 7b b c;
|
||||
c b b c;
|
||||
c 8c;
|
||||
c bbbb8cccccc;
|
||||
c b..b c.....;
|
||||
c7bbbb c.....;
|
||||
c 9 c.....;
|
||||
cccccccc.....;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 64;
|
||||
map_w = 13; map_h = 13;
|
||||
fig_w = 5; fig_h = 5;
|
||||
<figure>
|
||||
5 5 ;
|
||||
5 1 5;
|
||||
1 1 ;
|
||||
5 1 5;
|
||||
5 5 ;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbb.......;
|
||||
b5 b.......;
|
||||
b aa5b.......;
|
||||
b 1a bbbbbbbb;
|
||||
b a a 1b;
|
||||
b 5 a5 ab;
|
||||
b aa a b;
|
||||
b 1a a b;
|
||||
b 5a5 a5b;
|
||||
bbbbbbbb 1a b;
|
||||
.......b aa b;
|
||||
.......b 5 b;
|
||||
.......bbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 16;
|
||||
map_w = 11; map_h = 9;
|
||||
fig_w = 5; fig_h = 3;
|
||||
<figure>
|
||||
4 ;
|
||||
8 8 ;
|
||||
1 1 1;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbbbbbbb;
|
||||
b8b b b b8b;
|
||||
b AAA b;
|
||||
bbA 1 1 Abb;
|
||||
b b;
|
||||
bb 4 bb;
|
||||
b AA AA b;
|
||||
b b b1b b b;
|
||||
bbbbbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter>
|
||||
name = Sometimes Tricky;
|
||||
author = Michael Speck;
|
||||
gfx_set = metal;
|
||||
open = 0;
|
||||
|
||||
<level>
|
||||
limit = 24;
|
||||
map_w = 13; map_h = 12;
|
||||
fig_w = 4; fig_h = 3;
|
||||
<figure>
|
||||
5 5;
|
||||
77 ;
|
||||
5 5;
|
||||
</figure>
|
||||
<map>
|
||||
..aaaaaaaaaaa;
|
||||
..a7 5a;
|
||||
aaa b bb b a;
|
||||
a b a;
|
||||
a b a;
|
||||
a bb5b bb a;
|
||||
a b b a;
|
||||
a b 5b aa;
|
||||
aa bb bb a.;
|
||||
.a b a.;
|
||||
.aaa5 7a.;
|
||||
...aaaaaaaaa.;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 42;
|
||||
map_w = 12; map_h = 8;
|
||||
fig_w = 4; fig_h = 4;
|
||||
<figure>
|
||||
2 ;
|
||||
21 ;
|
||||
89;
|
||||
9 ;
|
||||
</figure>
|
||||
<map>
|
||||
aaaaa.......;
|
||||
a a aaaaaaa.;
|
||||
a 9a x a.;
|
||||
a 98aa aaa;
|
||||
aaa aa12 a;
|
||||
.a x a2 a;
|
||||
.aaaaaaa a a;
|
||||
.......aaaaa;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 98;
|
||||
map_w = 11; map_h = 11;
|
||||
fig_w = 5; fig_h = 4;
|
||||
<figure>
|
||||
555 ;
|
||||
10701;
|
||||
232 ;
|
||||
9 ;
|
||||
</figure>
|
||||
<map>
|
||||
cccccccccc.;
|
||||
c0 5c2 cc;
|
||||
c c0 c;
|
||||
c ccucccc c;
|
||||
c 3c 9c c;
|
||||
c l l lc1c;
|
||||
c 5cu c c;
|
||||
c ccc c;
|
||||
c2 c cc 5c;
|
||||
cc 1c 7 cc;
|
||||
.ccccccccc.;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 28;
|
||||
map_w = 11; map_h = 10;
|
||||
fig_w = 3; fig_h = 4;
|
||||
<figure>
|
||||
1 ;
|
||||
32 ;
|
||||
23;
|
||||
1 ;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbbbbbbbb;
|
||||
bx 1c c 3b;
|
||||
b c c b;
|
||||
bccc c c b;
|
||||
b xc2 b;
|
||||
b 2cy b;
|
||||
b c c cccb;
|
||||
b c c b;
|
||||
b3 c c1 yb;
|
||||
bbbbbbbbbbb;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 38;
|
||||
map_w = 9; map_h = 11;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
7;
|
||||
98 ;
|
||||
7;
|
||||
</figure>
|
||||
<map>
|
||||
ccccccc..;
|
||||
cz 7 c..;
|
||||
cb bb ccc;
|
||||
c9 c;
|
||||
c b bbbuc;
|
||||
c b z c;
|
||||
c dc;
|
||||
c bbbbb c;
|
||||
c b 8c;
|
||||
c7 ccccc;
|
||||
ccccc....;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 20; (!)
|
||||
map_w = 12; map_h = 9;
|
||||
fig_w = 3; fig_h = 2;
|
||||
<figure>
|
||||
5 ;
|
||||
4 4;
|
||||
</figure>
|
||||
<map>
|
||||
......aaaaaa;
|
||||
......a A 4a;
|
||||
aaaaaaa a;
|
||||
a a a;
|
||||
ay wauwdaa;
|
||||
a 5a a.;
|
||||
aaaaaaadyuaa;
|
||||
.....a4 a;
|
||||
.....aaaaaaa;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 42;
|
||||
map_w = 12; map_h = 9;
|
||||
fig_w = 4; fig_h = 3;
|
||||
<figure>
|
||||
99 ;
|
||||
7887;
|
||||
9 ;
|
||||
</figure>
|
||||
<map>
|
||||
bbbbb..bbbb;
|
||||
b 9 bbbb xb;
|
||||
b a 9 d b;
|
||||
b wa a7 b;
|
||||
b a w a8b;
|
||||
b7l a8x b;
|
||||
bbb a bb;
|
||||
..bbbb r9b.;
|
||||
.....bbbbb.;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 22;
|
||||
map_w = 9; map_h = 7;
|
||||
fig_w = 4; fig_h = 2;
|
||||
<figure>
|
||||
1289;
|
||||
3 ;
|
||||
</figure>
|
||||
<map>
|
||||
...aaa...;
|
||||
.aaa3aaa.;
|
||||
aa a a aa;
|
||||
a9 2 1a;
|
||||
aa a a aa;
|
||||
.a a8a a.;
|
||||
.aaaaaaa.;
|
||||
</map>
|
||||
</level>
|
||||
</chapter>
|
||||
|
||||
<chapter>
|
||||
name = Hardcore;
|
||||
author = Michael Speck;
|
||||
gfx_set = metal;
|
||||
open = 0;
|
||||
|
||||
<level>
|
||||
limit = 44;
|
||||
map_w = 12; map_h = 12;
|
||||
fig_w = 5; fig_h = 3;
|
||||
<figure>
|
||||
8 ;
|
||||
97 79;
|
||||
8 ;
|
||||
</figure>
|
||||
<map>
|
||||
.....aaaaaaa;
|
||||
.aaaaa a;
|
||||
.a 9aaa a;
|
||||
.a aaa a a;
|
||||
.a a u a a;
|
||||
aa a 8R 9 a;
|
||||
a 7 L8 a aa;
|
||||
a a d a a.;
|
||||
a a aaa a.;
|
||||
a aaa7 a.;
|
||||
a aaaaa.;
|
||||
aaaaaaa.....;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 37;
|
||||
map_w = 11; map_h = 11;
|
||||
fig_w = 3; fig_h = 5;
|
||||
<figure>
|
||||
7 ;
|
||||
7 ;
|
||||
3 ;
|
||||
9 9;
|
||||
3 ;
|
||||
</figure>
|
||||
<map>
|
||||
aaaaaaaaaa.;
|
||||
a7 a 9a.;
|
||||
a a aa;
|
||||
a aaa ya 3a;
|
||||
a az aaa a;
|
||||
a3 xa a;
|
||||
aa zax a;
|
||||
.a aaa 7aa;
|
||||
.a ya aaa.;
|
||||
.a9 a...;
|
||||
.aaaaaaa...;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 14;
|
||||
map_w = 8; map_h = 8;
|
||||
fig_w = 3; fig_h = 2;
|
||||
<figure>
|
||||
131;
|
||||
2 ;
|
||||
</figure>
|
||||
<map>
|
||||
cccccccc;
|
||||
c1 w 1c;
|
||||
c c;
|
||||
cx y xc;
|
||||
cccc 3c;
|
||||
...cy wc;
|
||||
...c2 c;
|
||||
...ccccc;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 44;
|
||||
map_w = 13; map_h = 9;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
232;
|
||||
7 7;
|
||||
232;
|
||||
</figure>
|
||||
<map>
|
||||
..aaaaaaaaa..;
|
||||
..a2aa7aa2a..;
|
||||
cca a y a acc;
|
||||
c2 y z 2c;
|
||||
ccc z ccc;
|
||||
..cc3 a 3cc..;
|
||||
...ccU7Dcc...;
|
||||
....c c....;
|
||||
....ccccc....;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 35;
|
||||
map_w = 10; map_h = 12;
|
||||
fig_w = 3; fig_h = 4;
|
||||
<figure>
|
||||
6 ;
|
||||
656;
|
||||
6 ;
|
||||
4 ;
|
||||
</figure>
|
||||
<map>
|
||||
......aaaa;
|
||||
......a 4a;
|
||||
....aaa a;
|
||||
....a6 uwa;
|
||||
..aaa l a;
|
||||
..a6 ryaaa;
|
||||
aaawl 6a..;
|
||||
a r aaa..;
|
||||
ayd 6a....;
|
||||
a aaa....;
|
||||
a5 a......;
|
||||
aaaa......;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 47;
|
||||
map_w = 9; map_h = 9;
|
||||
fig_w = 3; fig_h = 4;
|
||||
<figure>
|
||||
4 4;
|
||||
5 ;
|
||||
6 ;
|
||||
5 ;
|
||||
</figure>
|
||||
<map>
|
||||
ccccccccc;
|
||||
c4 d r 5c;
|
||||
c a a a c;
|
||||
cr r d lc;
|
||||
c a6a a c;
|
||||
cu d l dc;
|
||||
c a a a c;
|
||||
c5 l u 4c;
|
||||
ccccccccc;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 43;
|
||||
map_w = 11; map_h = 11;
|
||||
fig_w = 5; fig_h = 3;
|
||||
<figure>
|
||||
1 1 ;
|
||||
59395;
|
||||
191 ;
|
||||
</figure>
|
||||
<map>
|
||||
....bbb....;
|
||||
.bbbbybbbb.;
|
||||
.b 5 5 b.;
|
||||
.b1aa3aa1b.;
|
||||
bb ax za bb;
|
||||
bz wb;
|
||||
bb w y bb;
|
||||
.b1 a9a 1b.;
|
||||
.b 9 9 b.;
|
||||
.bbbbxbbbb.;
|
||||
....bbb....;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
<level>
|
||||
limit = 23;
|
||||
map_w = 10; map_h = 9;
|
||||
fig_w = 3; fig_h = 3;
|
||||
<figure>
|
||||
2 ;
|
||||
1 1;
|
||||
2 ;
|
||||
</figure>
|
||||
<map>
|
||||
..aaaaaaaa;
|
||||
..ax A a;
|
||||
aaa aaa;
|
||||
a2a a1a;
|
||||
ar xw la;
|
||||
a1a a2a;
|
||||
aaa aaa;
|
||||
a A wa..;
|
||||
aaaaaaaa..;
|
||||
</map>
|
||||
</level>
|
||||
|
||||
</chapter>
|
||||
40
project/jni/application/lmarbles-1.0.8/src/lmarbles.6
Normal file
@@ -0,0 +1,40 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.TH MARBLES 6 "February 14, 2001"
|
||||
.SH NAME
|
||||
marbles \- build figures out of colored marbles
|
||||
.SH SYNOPSIS
|
||||
.B marbles
|
||||
.SH DESCRIPTION
|
||||
This manual page was written for the Debian GNU/Linux distribution
|
||||
because the original program does not have a manual page.
|
||||
.PP
|
||||
You goal in the puzzle game
|
||||
.B marbles
|
||||
is to create a more or less complex figure out of single marbles within
|
||||
a time limit to reach the next level. Sounds easy? Well, there is a
|
||||
problem: If a marble starts to move, it will not stop until it hits
|
||||
a wall or another marble.
|
||||
.SH OPTIONS
|
||||
None.
|
||||
.SH FILES
|
||||
.TP
|
||||
.IP "~/.marbles.cfg"
|
||||
Automatically generated configfile. This is not meant for human editing.
|
||||
.TP
|
||||
.IP "/var/lib/games/lmarbles.prfs"
|
||||
Global preferences and score file. Not for human editing.
|
||||
.SH BUGS
|
||||
Please report any bugs you find to Michael Speck <kulkanie@gmx.net>
|
||||
.SH LICENCE
|
||||
.B marbles
|
||||
is covered by the GNU General Public License(GPL).
|
||||
.SH SEE ALSO
|
||||
.BR lbreakout (1)
|
||||
.PP
|
||||
/usr/share/doc/marbles/*
|
||||
.SH AUTHOR
|
||||
Michael Speck <kulkanie@gmx.net>
|
||||
.PP
|
||||
This manual page was written by Uwe Hermann <uh1763@hermann-uwe.de>,
|
||||
for the Debian GNU/Linux system (but may be used by others).
|
||||