| 1 |
## $Id: Makefile.am 43567 2017-03-21 17:43:10Z karl $ |
| 2 |
## Proxy Makefile.am to build pplib for TeX Live. |
| 3 |
## |
| 4 |
## Copyright 2017 Karl Berry <[email protected]> |
| 5 |
## Copyright 2013-2015 Peter Breitenlohner <[email protected]> |
| 6 |
## |
| 7 |
## This file is free software; the copyright holder |
| 8 |
## gives unlimited permission to copy and/or distribute it, |
| 9 |
## with or without modifications, as long as this notice is preserved. |
| 10 |
## |
| 11 |
## We want to re-distribute the whole Lua53 source tree. |
| 12 |
## |
| 13 |
EXTRA_DIST = $(PPLIB_TREE) |
| 14 |
|
| 15 |
## Changes applied to the original source tree |
| 16 |
## |
| 17 |
EXTRA_DIST += TLpatches |
| 18 |
|
| 19 |
# Files not to be distributed |
| 20 |
include $(srcdir)/../../am/dist_hook.am |
| 21 |
NEVER_NAMES += $(NEVER_NAMES_SUB) $(NEVER_NAMES_LT) |
| 22 |
|
| 23 |
SUBDIRS = . include |
| 24 |
|
| 25 |
AM_CPPFLAGS = -I$(top_srcdir)/$(PPLIB_TREE)/src -I$(top_srcdir)/$(PPLIB_TREE)/src/util $(ZLIB_INCLUDES) $(PPLIB_DEFINES) |
| 26 |
AM_CFLAGS = $(WARNING_CFLAGS) $(PPLIB_CFLAGS) |
| 27 |
|
| 28 |
noinst_LIBRARIES = libpplib.a |
| 29 |
|
| 30 |
|
| 31 |
nodist_libpplib_a_SOURCES = \ |
| 32 |
@PPLIB_TREE@/src/pparray.c \ |
| 33 |
@PPLIB_TREE@/src/ppcrypt.c \ |
| 34 |
@PPLIB_TREE@/src/ppdict.c \ |
| 35 |
@PPLIB_TREE@/src/ppheap.c \ |
| 36 |
@PPLIB_TREE@/src/ppload.c \ |
| 37 |
@PPLIB_TREE@/src/ppstream.c \ |
| 38 |
@PPLIB_TREE@/src/pptest1.c \ |
| 39 |
@PPLIB_TREE@/src/pptest2.c \ |
| 40 |
@PPLIB_TREE@/src/pptest3.c \ |
| 41 |
@PPLIB_TREE@/src/ppxref.c \ |
| 42 |
@PPLIB_TREE@/src/util/utilbasexx.c \ |
| 43 |
@PPLIB_TREE@/src/util/utilcrypt.c \ |
| 44 |
@PPLIB_TREE@/src/util/utilflate.c \ |
| 45 |
@PPLIB_TREE@/src/util/utilfpred.c \ |
| 46 |
@PPLIB_TREE@/src/util/utiliof.c \ |
| 47 |
@PPLIB_TREE@/src/util/utillog.c \ |
| 48 |
@PPLIB_TREE@/src/util/utillzw.c \ |
| 49 |
@PPLIB_TREE@/src/util/utilmd5.c \ |
| 50 |
@PPLIB_TREE@/src/util/utilmem.c \ |
| 51 |
@PPLIB_TREE@/src/util/utilmemheap.c \ |
| 52 |
@PPLIB_TREE@/src/util/utilmemheapiof.c \ |
| 53 |
@PPLIB_TREE@/src/util/utilmeminfo.c \ |
| 54 |
@PPLIB_TREE@/src/util/utilnumber.c \ |
| 55 |
@PPLIB_TREE@/src/util/utilsha.c |
| 56 |
|
| 57 |
AM_TESTS_ENVIRONMENT = PPLIB_TREE=$(PPLIB_TREE); export PPLIB_TREE; |
| 58 |
if build |
| 59 |
check_PROGRAMS = pptest1 pptest2 pptest3 |
| 60 |
dist_check_SCRIPTS = pplib.test |
| 61 |
TESTS = pplib.test |
| 62 |
endif build |
| 63 |
pptest.log: pptest1$(EXEEXT) pptest2$(EXEEXT) pptest3$(EXEEXT) |
| 64 |
|
| 65 |
pptest1_SOURCES = @PPLIB_TREE@/src/pptest1.c |
| 66 |
pptest2_SOURCES = @PPLIB_TREE@/src/pptest2.c |
| 67 |
pptest3_SOURCES = @PPLIB_TREE@/src/pptest3.c |
| 68 |
|
| 69 |
pptest1_CPPFLAGS = -Iinclude |
| 70 |
pptest2_CPPFLAGS = -Iinclude |
| 71 |
pptest3_CPPFLAGS = -Iinclude |
| 72 |
|
| 73 |
pptest1_LDADD = libpplib.a $(ZLIB_LIBS) |
| 74 |
pptest2_LDADD = libpplib.a $(ZLIB_LIBS) |
| 75 |
pptest3_LDADD = libpplib.a $(ZLIB_LIBS) |
| 76 |
|
| 77 |
LIBS = -lm |
| 78 |
|
| 79 |
|
| 80 |
EXTRA_DIST += error.exp |
| 81 |
CLEANFILES = error.out error.tmp |
| 82 |
|
| 83 |
|
| 84 |
## Rebuild zlib |
| 85 |
@ZLIB_RULE@ |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
# Rebuild |
| 90 |
rebuild_prereq = |
| 91 |
rebuild_target = all |
| 92 |
|
| 93 |
include $(srcdir)/../../am/rebuild.am |