File: Makefile.am

package info (click to toggle)
golly 3.2-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 19,516 kB
  • sloc: cpp: 69,819; ansic: 25,894; python: 7,921; sh: 4,267; objc: 3,721; java: 2,781; xml: 1,362; makefile: 530; perl: 69
file content (53 lines) | stat: -rw-r--r-- 1,498 bytes parent folder | download | duplicates (3)
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
51
52
53
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I$(top_srcdir)/../../gollybase/
AM_CXXFLAGS = -DGOLLYDIR="$(GOLLYDIR)" -Wall -fno-strict-aliasing
AM_LDFLAGS = -Wl,--as-needed

if MAC
liblua_a_CPPFLAGS = -DLUA_USE_MACOSX
endif

if LINUX
liblua_a_CPPFLAGS = -DLUA_USE_LINUX
endif

bin_PROGRAMS = golly bgolly
noinst_PROGRAMS = RuleTableToTree
noinst_LIBRARIES = libgolly.a liblua.a
doc_DATA = ../../docs/License.html ../../docs/ReadMe.html

include sources.am

golly_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(PYTHON_INCLUDE) \
	$(PERL_CPPFLAGS) $(PERL_INCLUDE) \
	$(liblua_a_CPPFLAGS) -I$(top_srcdir)/../../lua
golly_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS_ONLY)
golly_LDADD = $(WX_LIBS) -lGL libgolly.a liblua.a -ldl

if WINDOWS
golly_LDADD += gollyres.o
gollyres.o: ../golly.rc; $(WX_RESCOMP) $< $@
endif

bgolly_SOURCES = ../../cmdline/bgolly.cpp
bgolly_LDADD = libgolly.a

RuleTableToTree_SOURCES = ../../cmdline/RuleTableToTree.cpp
RuleTableToTree_LDADD = libgolly.a

srcdistdir=$(PACKAGE)-$(VERSION)$(SRCDISTSUFFIX)
bindistdir=$(PACKAGE)-$(VERSION)$(BINDISTSUFFIX)

srcdist:
	mkdir -p $(srcdistdir)/gui-wx/configure
	make distdir=$(srcdistdir)/gui-wx/configure distdir
	tardir=$(srcdistdir) && $(am__tar) \
		| GZIP=$(GZIP_ENV) gzip -c >$(srcdistdir).tar.gz
	rm -r $(srcdistdir)

bindist:
	make bindir=/ pkgdatadir=/ docdir=/ GOLLYDIR= \
		DESTDIR=$(builddir)/$(bindistdir) clean all install
	tardir=$(bindistdir) && $(am__tar) \
		| GZIP=$(GZIP_ENV) gzip -c >$(bindistdir).tar.gz
	rm -r $(bindistdir)