summaryrefslogtreecommitdiff
path: root/dnn/Makefile
blob: d2d03012d555f408490a24521bbea0a4a3bce3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
#	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) \
	Disposable.$(cc) Loop.$(cc)

HDR = Event.h Criterion.h Reaction.h Trigger.h Source.h Behaviour.h \
	Disposable.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/Disposable.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

$(LOCINCL)/ivl/Disposable.h: Disposable.h
	cp Disposable.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)