2 CFLAGS = @CFLAGS@ -DDEBUG
3 OBJS = triostr.o trio.o trionan.o
5 TARGETINCS = trio.h triop.h triodef.h trionan.h triostr.h
6 LDFLAGS = -L. -ltrio -lm
14 PURIFYOPTIONS = -chain-length=16 -first-only=YES
16 # Installation settings
18 INSTALL_DATA = @INSTALL_DATA@
20 exec_prefix = @exec_prefix@
21 includedir = @includedir@
24 all: $(TARGETLIB) $(TARGET) regression
31 $(MKDIR) $(includedir)
32 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)
33 for i in $(TARGET_INCS);do \
34 (set -x;$(INSTALL_DATA) $$i $(includedir)); \
37 pure: $(TOBJS) $(OBJS)
38 $(PURIFY) $(PURIFYOPTIONS) $(CC) $(CFLAGS) $^ $(LDFLAGS)
40 regression: regression.o $(TARGETLIB)
41 $(CC) $(CFLAGS) regression.o $(LDFLAGS) -o $@
43 example: example.o $(TARGETLIB)
44 $(CC) $(CFLAGS) example.o $(LDFLAGS) -o $@
46 compare: compare.o $(TARGETLIB)
47 $(CC) $(CFLAGS) compare.o $(LDFLAGS) -o $@
49 userdef: userdef.o $(TARGETLIB)
50 $(CC) $(CFLAGS) userdef.o $(LDFLAGS) -o $@
53 $(AR) ruv $(TARGETLIB) $(OBJS)
54 $(RANLIB) $(TARGETLIB)
57 $(GENDOC) doc/trio.cfg
60 $(ERASE) *~ core regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o