diff options
Diffstat (limited to 'dnn/Makefile')
-rw-r--r-- | dnn/Makefile | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/dnn/Makefile b/dnn/Makefile new file mode 100644 index 0000000..98fb578 --- /dev/null +++ b/dnn/Makefile @@ -0,0 +1,94 @@ +# +# Ivy League - data news network +# +# by Stephane Chatty +# +# Copyright 1993-2000 +# Centre d'Etudes de la Navigation Aerienne (CENA) +# +# Imakefile +# +# $Id$ +# $CurLog$ +# + +MAJOR = 1 +MINOR = 0 +LOCINCL = ../include +CXX = g++ +CXXOPTIONS = -O2 +CXXSUFFIX = cc +LEX = lex +YACC = yacc # or bison -y + +CXXFLAGS = $(CXXOPTIONS) -I$(LOCINCL)/ivl -I$(LOCINCL) + +OBJ = Event.o Criterion.o Trigger.o Reaction.o Source.o Behaviour.o\ + Disposable.o Loop.o + + +cc = $(CXXSUFFIX) +SRC = Event.$(cc) Criterion.$(cc) Trigger.$(cc) Reaction.$(cc) Source.$(cc) Behaviour.$(cc) + +HDR = Event.h Criterion.h Reaction.h Trigger.h Source.h Behaviour.h Loop.h + + +all: libIvlDnn.a libIvlDnn.so.$(MAJOR).$(MINOR) headers + +libIvlDnn.a: $(OBJ) + rm -f $@ + ar q $@ $(OBJ) + +libIvlDnn.so.$(MAJOR).$(MINOR): $(OBJ) + rm -f $@ + $(CXX) -shared -Wl,-soname,libIvlDnn.so.$(MAJOR) -o $@ $(OBJ) -lc + + +headers: incldir \ + $(LOCINCL)/ivl/Event.h \ + $(LOCINCL)/ivl/Criterion.h \ + $(LOCINCL)/ivl/Reaction.h \ + $(LOCINCL)/ivl/Trigger.h \ + $(LOCINCL)/ivl/Source.h \ + $(LOCINCL)/ivl/Loop.h \ + $(LOCINCL)/ivl/Behaviour.h + +incldir: + test -d $(LOCINCL)/ivl || mkdirhier $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Criterion.h: Criterion.h + cp Criterion.h $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Event.h: Event.h + cp Event.h $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Trigger.h: Trigger.h + cp Trigger.h $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Reaction.h: Reaction.h + cp Reaction.h $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Source.h: Source.h + cp Source.h $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Behaviour.h: Behaviour.h + cp Behaviour.h $(LOCINCL)/ivl + +$(LOCINCL)/ivl/Loop.h: Loop.h + cp Loop.h $(LOCINCL)/ivl + +install: + test -d $(PREFIX)/usr/include/ivl || mkdirhier $(PREFIX)/usr/include/ivl + for f in `find $(LOCINCL)/ivl/*.h -type f -maxdepth 1`; do \ + install -m 644 $$f $(PREFIX)/usr/include/ivl; \ + done + test -d $(PREFIX)/usr/lib || mkdirhier $(PREFIX)/usr/lib + install -m 644 libIvlDnn.a $(PREFIX)/usr/lib + install -m 644 libIvlDnn.so.$(MAJOR).$(MINOR) $(PREFIX)/usr/lib + ln -s /usr/lib/libIvlDnn.so.$(MAJOR).$(MINOR) $(PREFIX)/usr/lib/libIvlDnn.so.$(MAJOR) + ln -s /usr/lib/libIvlDnn.so.$(MAJOR).$(MINOR) $(PREFIX)/usr/lib/libIvlDnn.so + + + +clean: + rm -f *.o libIvlDnn.a libIvlDnn.so.$(MAJOR).$(MINOR) $(TESTS) |