996
|
1 ICK_SPECIFIC_SUBDIR = ick-@PACKAGE_VERSION@
|
|
2 ickincludedir = $(includedir)/$(ICK_SPECIFIC_SUBDIR)
|
|
3 ickdatadir = $(datadir)/$(ICK_SPECIFIC_SUBDIR)
|
|
4
|
|
5 AM_CFLAGS = -DICKINCLUDEDIR=\"$(ickincludedir)\" \
|
|
6 -DICKDATADIR=\"$(ickdatadir)\" \
|
|
7 -DICKBINDIR=\"$(bindir)\" -DICKLIBDIR=\"$(libdir)\" \
|
|
8 -DYYDEBUG -DICK_HAVE_STDINT_H=@HAVE_STDINT_H@
|
|
9 AM_CPPFLAGS = -I$(srcdir)/src
|
|
10
|
|
11 bin_PROGRAMS = ick convickt
|
|
12 ick_SOURCES = src/feh2.c src/dekludge.c src/ick_lose.c \
|
|
13 src/fiddle.c src/perpet.c src/uncommon.c
|
|
14 nodist_ick_SOURCES = parser.y lexer.l
|
|
15 parser.y : src/parser.y
|
|
16 $(LN_S) `test -f 'src/parser.y' || echo '$(srcdir)/'`src/parser.y parser.y
|
|
17 lexer.l : src/lexer.l
|
|
18 $(LN_S) `test -f 'src/lexer.l' || echo '$(srcdir)/'`src/lexer.l lexer.l
|
|
19 ick_LDADD = libidiot.a
|
|
20 AM_YFLAGS = -d
|
|
21 BUILT_SOURCES = parser.h
|
|
22 noinst_LIBRARIES = libidiot.a
|
|
23 libidiot_a_SOURCES = src/idiotism.oil
|
|
24 libidiot.a: src/idiotism.oil oil$(EXEEXT) src/oil.h src/sizes.h src/ick.h \
|
|
25 parser.h src/fiddle.h src/ick_lose.h src/feh.h
|
|
26 ./oil$(EXEEXT) < `test -f 'src/idiotism.oil' || echo '$(srcdir)/'`src/idiotism.oil
|
|
27 for oo in oilout*.c; do echo $$oo; $(COMPILE) -c $$oo; done
|
|
28 $(AR) $(ARFLAGS) libidiot.a oilout*.o
|
|
29 $(RANLIB) libidiot.a
|
|
30 convickt_SOURCES = src/convickt.c src/clc-cset.c src/uncommon.c
|
|
31
|
|
32 @INCLUDE_HIDDEN_FROM_AUTOMAKE@ ./host.mak
|
|
33
|
|
34 noinst_PROGRAMS = oil bin2c
|
|
35 oil_SOURCES = src/oil.y
|
|
36 oil_YFLAGS =
|
|
37 bin2c_SOURCES = src/bin2c.c
|
|
38 oil$(EXEEXT_FOR_BUILD): oil-oil.c bconfig.h
|
|
39 $(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o oil$(EXEEXT_FOR_BUILD) oil-oil.c $(LIBS_FOR_BUILD)
|
|
40 bin2c$(EXEEXT_FOR_BUILD): src/bin2c.c bconfig.h
|
|
41 $(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o bin2c$(EXEEXT_FOR_BUILD) `test -f 'src/bin2c.c' || echo '$(srcdir)/'`src/bin2c.c $(LIBS_FOR_BUILD)
|
|
42 oil:
|
|
43 bin2c:
|
|
44
|
|
45 # Optional libraries are in lib_LIBRARIES, but with a null build rule.
|
|
46 lib_LIBRARIES = libick.a libickmt.a libickec.a libyuk.a libick_ecto_b98.a
|
|
47 libick_ecto_b98_a_SOURCES =
|
|
48 libick_ecto_b98.a:
|
|
49 libick_a_SOURCES = src/cesspool.c src/numerals.c src/ick_lose.c src/fiddle.c \
|
|
50 src/arrgghh.c src/clc-cset.c src/uncommon.c
|
|
51 libick_a_LIBADD = atari.o baudot.o ebcdic.o latin1.o
|
|
52 libickmt_a_SOURCES = src/cesspool.c src/numerals.c src/ick_lose.c src/fiddle.c \
|
|
53 src/arrgghh.c src/clc-cset.c src/uncommon.c src/unravel.c
|
|
54 libickmt_a_LIBADD = atari.o baudot.o ebcdic.o latin1.o
|
|
55 libickec_a_SOURCES = src/cesspool.c src/numerals.c src/ick_lose.c src/fiddle.c \
|
|
56 src/arrgghh.c src/clc-cset.c src/uncommon.c src/ick_ec.c
|
|
57 libickec_a_LIBADD = atari.o baudot.o ebcdic.o latin1.o
|
|
58 libyuk_a_SOURCES = src/yuk.c
|
|
59 atari.o: bin2c$(EXEEXT_FOR_BUILD) src/atari.bin
|
|
60 ./bin2c$(EXEEXT_FOR_BUILD) ick_clc_cset_atari < `test -f 'src/atari.bin' || echo '$(srcdir)/'`src/atari.bin > atari.c
|
|
61 $(COMPILE) -c atari.c
|
|
62 baudot.o: bin2c$(EXEEXT_FOR_BUILD) src/baudot.bin
|
|
63 ./bin2c$(EXEEXT_FOR_BUILD) ick_clc_cset_baudot < `test -f 'src/baudot.bin' || echo '$(srcdir)/'`src/baudot.bin > baudot.c
|
|
64 $(COMPILE) -c baudot.c
|
|
65 ebcdic.o: bin2c$(EXEEXT_FOR_BUILD) src/ebcdic.bin
|
|
66 ./bin2c$(EXEEXT_FOR_BUILD) ick_clc_cset_ebcdic < `test -f 'src/ebcdic.bin' || echo '$(srcdir)/'`src/ebcdic.bin > ebcdic.c
|
|
67 $(COMPILE) -c ebcdic.c
|
|
68 latin1.o: bin2c$(EXEEXT_FOR_BUILD) src/latin1.bin
|
|
69 ./bin2c$(EXEEXT_FOR_BUILD) ick_clc_cset_latin1 < `test -f 'src/latin1.bin' || echo '$(srcdir)/'`src/latin1.bin > latin1.c
|
|
70 $(COMPILE) -c latin1.c
|
|
71
|
|
72 ickinclude_HEADERS = src/ick_ec.h src/fiddle.h src/abcess.h src/ick_lose.h \
|
|
73 src/yuk.h
|
|
74 nodist_ickinclude_HEADERS = config.h
|
|
75 dist_ickdata_DATA = src/atari.bin src/baudot.bin src/ebcdic.bin src/latin1.bin \
|
|
76 src/ick-wrap.c src/pickwrap.c COPYING
|
|
77 # These necessary pit files are in nodist_ here because they're in EXTRA_DIST
|
|
78 # later along with the rest of the pit.
|
|
79 nodist_ickdata_DATA = pit/lib/syslib.i pit/lib/syslib.3i pit/lib/syslib.4i \
|
|
80 pit/lib/syslib.5i pit/lib/syslib.6i pit/lib/syslib.7i \
|
|
81 coopt.sh pit/explib/syslibc.c pit/explib/compunex.c \
|
|
82 pit/explib/ecto_b98.c
|
|
83 dist_man1_MANS = doc/ick.1 doc/convickt.1
|
|
84 info_TEXINFOS = doc/ick.txi
|
|
85
|
|
86 EXTRA_DIST = pit etc BUGS src/abcess.h src/feh.h src/fiddle.h src/ick_ec.h \
|
|
87 src/ick.h src/ick_lose.h src/oil.h src/pick1.h src/pick2.h \
|
|
88 src/sizes.h src/uncommon.h src/yuk.h src/parser.y src/lexer.l \
|
|
89 doc/Makefile doc/fdl-1-2.txi doc/fix83.pl doc/fixtoc.pl \
|
|
90 doc/ickstyle.css doc/ick.txt doc/intercal.mm doc/READ.ME \
|
|
91 doc/THEORY.txt doc/tidy.cfg parser.c parser.h \
|
|
92 lexer.c doc/ick.txi doc/ick.txt NEWS README \
|
|
93 buildaux/buildconfig buildaux/buildconfig.ac \
|
|
94 buildaux/depcomp buildaux/hostmak.in buildaux/install-sh \
|
|
95 buildaux/missing buildaux/ylwrap src/bconfigh.in
|
|
96
|
|
97 # It's ugly to distribute the prebuilt files in the root of the
|
|
98 # distribution. configure will move these files back again into the
|
|
99 # root of the /build tree/, which makes a lot more sense than putting
|
|
100 # them in the root of the source tree.
|
|
101 dist-hook:
|
|
102 $(MKDIR_P) $(distdir)/prebuilt
|
|
103 mv $(distdir)/parser.c $(distdir)/prebuilt
|
|
104 mv $(distdir)/parser.h $(distdir)/prebuilt
|
|
105 mv $(distdir)/lexer.c $(distdir)/prebuilt
|
|
106 mv $(distdir)/oil-oil.c $(distdir)/prebuilt
|
|
107 touch $(distdir)/MANIFEST
|
|
108 (cd $(distdir); find . | sort > MANIFEST)
|
|
109
|
|
110 # Update the prebuilt directory in the original source from the built
|
|
111 # versions; this is for the repository version of C-INTERCAL, so it's
|
|
112 # up to date the same way that distributed versions are.
|
|
113 repoupdate: parser.c parser.h lexer.c oil-oil.c $(srcdir)/MANIFEST
|
|
114 cp parser.c $(srcdir)/prebuilt/parser.c
|
|
115 cp parser.h $(srcdir)/prebuilt/parser.h
|
|
116 cp lexer.c $(srcdir)/prebuilt/lexer.c
|
|
117 cp oil-oil.c $(srcdir)/prebuilt/oil-oil.c
|
|
118 $(srcdir)/MANIFEST: distdir
|
|
119 cp $(distdir)/MANIFEST $(srcdir)/MANIFEST
|
|
120 $(am__remove_distdir)
|
|
121
|
|
122 # N.B. the parser.y and lexer.l are the links made to simplify the
|
|
123 # build, not the originals
|
|
124 CLEANFILES = oilout*.c parser.y lexer.l \
|
|
125 atari.c baudot.c ebcdic.c latin1.c ick.dvi
|
|
126 # Distclean deletes the Makefile and thus requires reconfiguring,
|
|
127 # and therefore this is a safe moment to delete the build tree
|
|
128 # versions of the prebuilt files. (The source tree versions will
|
|
129 # be safe in the prebuilt dir, which Automake doesn't even know
|
|
130 # about.)
|
|
131 DISTCLEANFILES = parser.c parser.h lexer.c oil-oil.c host.mak bconfig.h config.status.build
|
|
132
|
|
133 # The build system itself is included in the makefile; tell Automake
|
|
134 # about my tweaking.
|
|
135 $(top_srcdir)/configure: $(am__configure_deps)
|
|
136 cd $(top_srcdir) && $(AUTOCONF)
|
|
137 $(top_srcdir)/buildaux/buildconfig: $(top_srcdir)/buildaux/buildconfig.ac $(top_srcdir)/src/bconfigh.in
|
|
138 cd $(top_srcdir) && $(AUTOCONF) buildaux/buildconfig.ac > buildaux/buildconfig
|
|
139 chmod a+x $(top_srcdir)/buildaux/buildconfig
|
|
140 $(top_srcdir)/src/bconfigh.in: $(top_srcdir)/buildaux/buildconfig.ac
|
|
141 cd $(top_srcdir)/buildaux && $(AUTOHEADER) buildconfig.ac
|
|
142 rm -f stamp-h1
|
|
143 touch $@
|
|
144 CONFIG_STATUS_DEPENDENCIES=$(top_srcdir)/buildaux/buildconfig $(top_srcdir)/src/bconfigh.in
|