|
Revision 151, 1.0 kB
(checked in by krobillard, 2 years ago)
|
Added script to build autoconf files.
|
| Line | |
|---|
| 1 |
orca [ |
|---|
| 2 |
Purpose: {Creates Orca autoconf/automake files.} |
|---|
| 3 |
Notes: { |
|---|
| 4 |
Run ". ./reconf; ./configure" to create Makefile. |
|---|
| 5 |
These autoconf files will only build Orca for Unix systems. |
|---|
| 6 |
} |
|---|
| 7 |
] |
|---|
| 8 |
|
|---|
| 9 |
write %configure.ac rejoin [ |
|---|
| 10 |
{AC_INIT(orca,} system/version {) |
|---|
| 11 |
AM_INIT_AUTOMAKE |
|---|
| 12 |
AC_PROG_CC |
|---|
| 13 |
AC_PROG_RANLIB |
|---|
| 14 |
AC_PROG_INSTALL |
|---|
| 15 |
AC_CONFIG_FILES(Makefile) |
|---|
| 16 |
AC_OUTPUT |
|---|
| 17 |
} |
|---|
| 18 |
] |
|---|
| 19 |
|
|---|
| 20 |
write %Makefile.am |
|---|
| 21 |
{bin_PROGRAMS = orca |
|---|
| 22 |
lib_LIBRARIES = liborca0.a |
|---|
| 23 |
include_HEADERS = ovalue.h |
|---|
| 24 |
|
|---|
| 25 |
INCLUDES = -Iunix |
|---|
| 26 |
AM_LDFLAGS = -L. |
|---|
| 27 |
|
|---|
| 28 |
liborca0_a_SOURCES = \ |
|---|
| 29 |
ovalue.c context.c array.c parse.c charset.c series.c op.c error.c \ |
|---|
| 30 |
tokenize.c bytecode.c gc.c print.c math.c math3d.c files.c \ |
|---|
| 31 |
charset.h internal.h math3d.h \ |
|---|
| 32 |
support/mt19937ar.c \ |
|---|
| 33 |
stdio.c unix/os.c unix/os.h unix/os_math.h |
|---|
| 34 |
|
|---|
| 35 |
orca_SOURCES = console.c |
|---|
| 36 |
orca_LDADD = -lorca0 -lm |
|---|
| 37 |
|
|---|
| 38 |
EXTRA_DIST = LICENSE TODO configure config.r boot.r boot_str.r boot.c |
|---|
| 39 |
} |
|---|
| 40 |
|
|---|
| 41 |
write %reconf |
|---|
| 42 |
{rm -f config.cache |
|---|
| 43 |
aclocal |
|---|
| 44 |
autoconf |
|---|
| 45 |
touch AUTHORS NEWS |
|---|
| 46 |
automake -a |
|---|
| 47 |
} |
|---|
| 48 |
|
|---|