1## Process this file with automake to produce Makefile.in
2#
3# Makefile for building the SoftFloat package
4# for use with Hercules S/370, ESA/390 and z/Architecture emulator
5#
6# This file was added by the Hercules project.
7# It is not part of the original SoftFloat distribution.
8#
9
10lns=@LN_S@
11
12LDADD = @LIBS@
13
14AM_CPPFLAGS = -I$(top_srcdir)
15
16softfloat_SRC = softfloat.c
17
18if BUILD_SHARED
19   XSTATIC =
20else
21   XSTATIC = -static
22endif
23
24if OPTION_DYNAMIC_LOAD
25  LTDL  	 = ../ltdl.c
26  LIB_LD_FLAGS    = -export-dynamic  \
27		   $(XSTATIC)       \
28		   -no-undefined    \
29		   -avoid-version
30else
31  LTDL  	 =
32  LIB_LD_FLAGS    = $(XSTATIC)    \
33		   -no-undefined \
34		   -avoid-version
35endif
36
37  HERCLIBS =
38  HERCLIBS2 = libsoftfloat.la
39  noinst_LTLIBRARIES = $(HERCLIBS)
40  lib_LTLIBRARIES = $(HERCLIBS2)
41
42  libsoftfloat_la_SOURCES = $(softfloat_SRC)
43  libsoftfloat_la_LDFLAGS = $(LIB_LD_FLAGS)
44  libsoftfloat_la_LIBADD  = $(LDADD)
45
46noinst_HEADERS = milieu.h          \
47		 processor.h       \
48		 softfloat.h       \
49		 softfloat-macros  \
50		 softfloat-specialize
51
52EXTRA_DIST = README.txt            \
53	     SoftFloat.txt         \
54	     SoftFloat-history.txt \
55	     SoftFloat-source.txt
56
57%.s: %.c
58	$(COMPILE) -S $<
59