-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile.am
More file actions
50 lines (38 loc) · 1.36 KB
/
Makefile.am
File metadata and controls
50 lines (38 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# The following gets rid of some GNU complaints about filenames:
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
pez_version_major=1
pez_version_minor=6
pez_version_teeny=0
pez_lib_version=$(pez_version_major).$(pez_version_minor)
pez_version=$(pez_version_major).$(pez_version_minor).$(pez_version_teeny)
bin_PROGRAMS = pez$(EXEEXT)
pez_SOURCES = pez.c pez.h pezmain.c pezdef.h st.c st.h
pezdir = $(libdir)/pez/$(pez_lib_version)
pez_DATA = lib/*.pez
AM_CPPFLAGS="-DPEZCONF_LIBDIR=\"${libdir}\"" \
"-DPEZCONF_PEZ_LIBDIR=\"${pezdir}\"" \
"-DPEZCONF_BINDIR=\"${bindir}\"" \
"-DPEZCONF_CFLAGS=\"${CFLAGS}\"" \
"-DPEZCONF_LDFLAGS=\"${LDFLAGS}\"" \
"-DPEZCONF_SO_FLAGS=\"-shared ${pic_flag}\"" \
"-DPEZCONF_LD=\"${LD}\"" \
"-DPEZCONF_CC=\"${CC}\""
pez_CFLAGS = $(AM_CFLAGS)
include_HEADERS = pez.h pezdef.h pez_sysconfig.h
EXTRA_DIST = README doc/* lightning/* m4 \
pez.h pezdef.h pez_sysconfig.h regress.pez \
type_primitives.c typegen.pez type_names \
$(pez_DATA)
lib_LTLIBRARIES = libpez.la
libpez_la_SOURCES = pez.c pez.h st.c st.h
# I swear, the docs say this works:
# libpez_la_LIBTOOLFLAGS = -version-info 1:5:2
pez_sysconfig.h: config.h
cp config.h pez_sysconfig.h
repl: pez$(EXEEXT)
$(RLWRAP) ./pez$(EXEEXT)
regress: pez$(EXEEXT)
./pez$(EXEEXT) regress.pez
type_primitives: pez$(EXEEXT)
./pez$(EXEEXT) typegen.pez