blob: f52e20ad2a09084bb21fdc5e541034161842055a (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
#
# Ivy League
#
# by Stephane Chatty (from the Unix Channel, by Michel Beaudouin-Lafon)
#
# Copyright 1990-2000
# Laboratoire de Recherche en Informatique (LRI)
# Centre d'Etudes de la Navigation Aerienne (CENA)
#
# Makefile
#
# $Id$
#
MAJOR = 1
MINOR = 0
LOCINCL = ../include
CXX = g++
CXXOPTIONS = -g
CXXSUFFIX = cc
LEX = lex
YACC = yacc # or bison -y
CXXFLAGS = $(CXXOPTIONS) -I$(LOCINCL)/ivl -I$(LOCINCL) -DUNIX_SOCK -DIRDA_SOCK
cc = $(CXXSUFFIX)
SRC = error.$(cc) IOS.$(cc) MsgBuffer.$(cc) Message.$(cc) \
Channel.$(cc) TimeOut.$(cc) SignalHandler.$(cc) \
Scheduler.$(cc) Address.$(cc) \
InetAddress.$(cc) UnixAddress.$(cc) IrdaAddress.$(cc) \
Socket.$(cc) Datagram.$(cc) Stream.$(cc) \
BufStream.$(cc) MsgStream.$(cc) BusAccess.$(cc) \
ObexStream.$(cc)
HDR = error.h IOS.h MsgBuffer.h Message.h \
Channel.h TimeOut.h SignalHandler.h \
Scheduler.h Address.h \
InetAddress.h UnixAddress.h IrdaAddress.h \
Socket.h Datagram.h Stream.h \
BufStream.h MsgStream.h BusAccess.h \
ObexStream.h
OBJ = error.o IOS.o MsgBuffer.o Message.o \
Channel.o TimeOut.o SignalHandler.o \
Scheduler.o Address.o \
InetAddress.o UnixAddress.o IrdaAddress.o \
Socket.o Datagram.o Stream.o \
BufStream.o MsgStream.o BusAccess.o \
ObexStream.o
all: libIvl.a libIvl.so.$(MAJOR).$(MINOR) headers
LLIB = -L$(LOCLIB) -lUch -lDnn -lCcu
libIvl.a: $(OBJ)
rm -f $@
ar q $@ $(OBJ)
libIvl.so.$(MAJOR).$(MINOR): $(OBJ)
rm -f $@
$(CXX) -shared -Wl,-soname,libIvl.so.$(MAJOR) -o $@ $(OBJ) -lc
headers: incldir \
$(LOCINCL)/ivl/IOS.h \
$(LOCINCL)/ivl/Channel.h \
$(LOCINCL)/ivl/Scheduler.h \
$(LOCINCL)/ivl/TimeOut.h \
$(LOCINCL)/ivl/SignalHandler.h \
$(LOCINCL)/ivl/Address.h \
$(LOCINCL)/ivl/UnixAddress.h \
$(LOCINCL)/ivl/InetAddress.h \
$(LOCINCL)/ivl/IrdaAddress.h \
$(LOCINCL)/ivl/Socket.h \
$(LOCINCL)/ivl/Datagram.h \
$(LOCINCL)/ivl/Stream.h \
$(LOCINCL)/ivl/MsgBuffer.h \
$(LOCINCL)/ivl/BufStream.h \
$(LOCINCL)/ivl/Message.h \
$(LOCINCL)/ivl/MsgStream.h \
$(LOCINCL)/ivl/BusAccess.h
incldir:
test -d $(LOCINCL)/ivl || mkdirhier $(LOCINCL)/ivl
$(LOCINCL)/ivl/IOS.h: IOS.h
cp IOS.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Channel.h: Channel.h
cp Channel.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Scheduler.h: Scheduler.h
cp Scheduler.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/TimeOut.h: TimeOut.h
cp TimeOut.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/SignalHandler.h: SignalHandler.h
cp SignalHandler.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Address.h: Address.h
cp Address.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/UnixAddress.h: UnixAddress.h
cp UnixAddress.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/InetAddress.h: InetAddress.h
cp InetAddress.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/IrdaAddress.h: IrdaAddress.h
cp IrdaAddress.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Socket.h: Socket.h
cp Socket.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Datagram.h: Datagram.h
cp Datagram.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Stream.h: Stream.h
cp Stream.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/MsgBuffer.h: MsgBuffer.h
cp MsgBuffer.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/BufStream.h: BufStream.h
cp BufStream.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/Message.h: Message.h
cp Message.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/MsgStream.h: MsgStream.h
cp MsgStream.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/ObexStream.h: ObexStream.h
cp ObexStream.h $(LOCINCL)/ivl
$(LOCINCL)/ivl/BusAccess.h: BusAccess.h
cp BusAccess.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 libIvl.a $(PREFIX)/usr/lib
install -m 644 libIvl.so.$(MAJOR).$(MINOR) $(PREFIX)/usr/lib
ln -s /usr/lib/libIvl.so.$(MAJOR).$(MINOR) $(PREFIX)/usr/lib/libIvl.so.$(MAJOR)
ln -s /usr/lib/libIvl.so.$(MAJOR).$(MINOR) $(PREFIX)/usr/lib/libIvl.so
clean:
rm -f *.o libIvl.a libIvl.so.$(MAJOR).$(MINOR) $(TESTS)
testbus: testbus.$(cc) $(SRC) libIvl.a
$(CXX) -I$(LOCINCL) -I$(LOCINCL)/ivl -o $@ $@.$(cc) -L. -L../dnn -L../comm -lIvl -lIvlDnn -lIvlUtils
testirda: testirda.$(cc) $(SRC) libIvl.a
$(CXX) $(CXXFLAGS) -o $@ $@.$(cc) -L. -L../dnn -L../comm -lIvl -lIvlDnn -lIvlUtils
|