forked from pete/pez
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
39 lines (30 loc) · 1.1 KB
/
Makefile.am
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
# The following gets rid of some GNU complaints about filenames:
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
# SUBDIRS = lib
# TODO: This sort of breaks unless I make a Makefile for doc/. Ignoring for
# now...
# docdir = $(prefix)/share/doc/$(PACKAGE)
# TODO how to include examples?
# doc_DATA = doc/COPYING doc/CREDITS doc/ChangeLog doc/TODO doc/ctags examples
AM_CPPFLAGS="-DPEZCONF_LIBDIR=\"${libdir}\"" \
"-DPEZCONF_BINDIR=\"${bindir}\"" \
"-DPEZCONF_CFLAGS=\"${CFLAGS}\"" \
"-DPEZCONF_LDFLAGS=\"${LDFLAGS}\"" \
"-DPEZCONF_SO_FLAGS=\"-shared ${pic_flag}\"" \
"-DPEZCONF_LD=\"${LD}\"" \
"-DPEZCONF_CC=\"${CC}\""
bin_PROGRAMS = pez$(EXEEXT)
pez_SOURCES = pez.c pezmain.c pez.h pezdef.h
pez_CFLAGS = $(AM_CFLAGS)
include_HEADERS = pez.h pezdef.h
EXTRA_DIST = README doc/COPYING doc/CREDITS doc/TODO doc/ctags \
pez.h pezdef.h regress.pez
lib_LTLIBRARIES = libpez.la
libpez_la_SOURCES = pez.c
# I swear, the docs say this works:
# libpez_la_LIBTOOLFLAGS = -version-info 1:5:2
repl: pez$(EXEEXT)
$(RLWRAP) ./pez$(EXEEXT)
regress: pez$(EXEEXT)
./pez$(EXEEXT) regress.pez