--- rpl/modules/sets/Makefile.am 2017/06/29 12:32:57 1.1 +++ rpl/modules/sets/Makefile.am 2017/07/10 07:26:12 1.6 @@ -1,4 +1,6 @@ SRCRPLC=\ + complement.rplc\ + intersection.rplc\ sets.rplc\ types.rplc\ union.rplc @@ -6,15 +8,21 @@ SRCRPLC=\ SRCH=\ sets.h +EXAMPLES=\ + example.rpl + OBJ=$(SRCRPLC:.rplc=.o) all: sets.rplso +EXTRA_DIST = $(SRCRPLC) $(SRCH) $(EXAMPLES) + clean: \rm -f $(OBJ) sets.rplso -%.o: %.rplc $(SRCH) - gfortran -x c -fPIC -Wall -DRPLCONFIG -O2 -g -funsigned-char \ +%.o: %.rplc $(SRCH) $(top_builddir)/src/rplexternals.h $(top_builddir)/src/rpl.h + @echo " RPLC $@" + @gfortran -x c -fPIC -Wall -DRPLCONFIG -O2 -g -funsigned-char \ -I$(top_srcdir) -I$(top_builddir)/src \ -DREADLINE_LIBRARY \ -I$(top_srcdir)/tools/@READLINE@ \ @@ -25,4 +33,8 @@ clean: -c -o $@ $< sets.rplso: $(OBJ) - gfortran -shared -g -o $@ $+ + @echo " RPLSO $@" + @gfortran -shared -g -o $@ $+ + +install: sets.rplso + $(INSTALL_DATA) sets.rplso $(DESTDIR)$(libdir)/sets.rplso