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
15 PURIFYOPTIONS = -chain-length=16 -first-only=YES
17 # Installation settings
19 INSTALL_DATA = @INSTALL_DATA@
21 exec_prefix = @exec_prefix@
22 includedir = @includedir@
25 all: $(TARGETLIB) $(TARGET) regression
32 $(MKDIR) $(includedir)
33 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)
34 for i in $(TARGETINCS);do \
35 (set -x;$(INSTALL_DATA) $$i $(includedir)); \
38 pure: $(TOBJS) $(OBJS)
39 $(PURIFY) $(PURIFYOPTIONS) $(CC) $(CFLAGS) $^ $(LDFLAGS)
41 regression: regression.o $(TARGETLIB)
42 $(CC) $(CFLAGS) regression.o $(LDFLAGS) -o $@
44 example: example.o $(TARGETLIB)
45 $(CC) $(CFLAGS) example.o $(LDFLAGS) -o $@
47 compare: compare.o $(TARGETLIB)
48 $(CC) $(CFLAGS) compare.o $(LDFLAGS) -o $@
50 userdef: userdef.o $(TARGETLIB)
51 $(CC) $(CFLAGS) userdef.o $(LDFLAGS) -o $@
54 $(AR) ruv $(TARGETLIB) $(OBJS)
55 $(RANLIB) $(TARGETLIB)
58 $(GENDOC) doc/trio.cfg
61 $(ERASE) *~ core core.* regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o