1## Process this file with automake to produce Makefile.in
2# Makefile.am for The Machine Emulator machine/sun:
3
4AUTOMAKE_OPTIONS = 1.4 gnu
5
6INCLUDES = -I$(top_srcdir) -I$(srcdir) -I. -D_TME_IMPL
7
8pkglib_LTLIBRARIES = libtme-machine-sun.la
9libtme_machine_sun_la_SOURCES = sun-mmu.c \
10	sun-bwtwo.c \
11	sun-cgtwo.c \
12	sun-cgsix.c \
13	sun-fb.c sun-fb.h \
14	sun-si.c \
15	sun-obie.c
16libtme_machine_sun_la_LDFLAGS = -version-info 0:0:0
17libtme_machine_sun_la_LIBADD = $(top_builddir)/libtme/libtme.la \
18	$(top_builddir)/generic/libtme-generic.la
19
20bin_SCRIPTS = tme-sun-idprom tme-sun-eeprom
21
22examplesdir = $(datadir)/examples/tme
23examples_DATA = sun-keyboards.txt my-sun-macros.txt
24
25EXTRA_DIST = tme-sun-idprom.pl tme-sun-eeprom.pl $(examples_DATA)
26
27# target to make tme-sun-idprom:
28tme-sun-idprom: tme-sun-idprom.pl
29	sed -e s%/usr/pkg/bin/perl%$(PERL)% < $(srcdir)/tme-sun-idprom.pl > $@
30
31# target to make tme-sun-eeprom:
32tme-sun-eeprom: tme-sun-eeprom.pl $(top_srcdir)/tools/tme-binary-struct.pl.in
33	cat $(top_srcdir)/tools/tme-binary-struct.pl.in $(srcdir)/tme-sun-eeprom.pl | \
34	sed -e s%/usr/pkg/bin/perl%$(PERL)% > $@
35