3 CFLAGS = @CFLAGS@ -I. -DDEBUG
4 OBJS = triostr.o trio.o trionan.o
6 TARGETINCS = trio.h triop.h triodef.h trionan.h triostr.h
7 LDFLAGS = -L. -ltrio -lm
14 # VPATH doesn't seem to work with /usr/xpg4/bin/make on Solaris
15 # (use /usr/ccs/bin/make), and doesn't work on older Solaris make
16 # such as Solaris 2.6.
19 # Installation settings
21 INSTALL_DATA = @INSTALL_DATA@
23 exec_prefix = @exec_prefix@
24 includedir = @includedir@
27 all: $(TARGETLIB) $(TARGET)
29 .PHONY: all check test install doc clean
31 $(srcdir)/configure: configure.in
32 cd $(srcdir) && autoconf
34 Makefile: Makefile.in config.status
35 CONFIG_COMMANDS= CONFIG_LINKS= CONFIG_HEADERS= \
36 CONFIG_FILES=Makefile ./config.status
38 config.status: configure
39 ./config.status --recheck
47 $(MKDIR) $(includedir)
48 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)
49 for i in $(TARGETINCS);do \
50 (set -x;$(INSTALL_DATA) $(srcdir)/$$i $(includedir)); \
53 regression: regression.o $(TARGETLIB)
54 $(CC) $(CFLAGS) regression.o $(LDFLAGS) -o $@
56 example: example.o $(TARGETLIB)
57 $(CC) $(CFLAGS) example.o $(LDFLAGS) -o $@
59 compare: compare.o $(TARGETLIB)
60 $(CC) $(CFLAGS) compare.o $(LDFLAGS) -o $@
62 userdef: userdef.o $(TARGETLIB)
63 $(CC) $(CFLAGS) userdef.o $(LDFLAGS) -o $@
66 $(AR) ruv $(TARGETLIB) $(OBJS)
67 $(RANLIB) $(TARGETLIB)
70 (cd $(srcdir) && $(GENDOC) doc/trio.cfg)
73 $(ERASE) *~ core core.* regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o