author | viric@mandarina |
Mon, 28 Apr 2008 21:39:46 +0200 | |
changeset 91 | af6b072bb025 |
parent 76 | 5c0b9c9f9801 |
child 92 | faf9db07c037 |
permissions | -rw-r--r-- |
21 | 1 |
CC=gcc |
2 |
CFLAGS=-g -Wall -O0 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
3 |
ifeq ($(shell uname),Linux) |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
4 |
LINUX_OBJECTS=eth_linux.o \ |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
5 |
eth_proto.o \ |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
6 |
eth_server.o \ |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
7 |
eth_client.o |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
8 |
LINUX_LIBS=-lutil |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
9 |
endif |
21 | 10 |
OBJECTS=main.o unix_client.o unix_server.o error.o signals.o gen_sockets.o \ |
24 | 11 |
app_control.o \ |
12 |
client.o \ |
|
13 |
server.o \ |
|
14 |
app_term.o \ |
|
26
96920c3707b3
Unix sockets version works! Well, signals don't. :)
viric@llimona
parents:
25
diff
changeset
|
15 |
client_term.o \ |
33 | 16 |
user_term.o \ |
34 | 17 |
tcp_server.o \ |
18 |
simple_math.o \ |
|
36
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
19 |
xterm.o \ |
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
20 |
dump.o \ |
66
b2469563a1dc
Reliable ethernet protocol. I still need pselect instead of select.
viric@mandarina
parents:
49
diff
changeset
|
21 |
flow.o \ |
36
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
22 |
filter.o \ |
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
23 |
filter_string.o \ |
76
5c0b9c9f9801
Fixed filter, and the client now parses ~~~ and ~~. (closing client)
viric@llimona
parents:
66
diff
changeset
|
24 |
filter_tildes.o \ |
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
25 |
filter_telnet.o $(LINUX_OBJECTS) |
10 | 26 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
27 |
all: tm |
1 | 28 |
|
31
c8d6b46dae2e
Changing 'st' Swiss Terminal, to 'tm', terminal mixer
lbatlle@npdl268.bpo.hp.com
parents:
30
diff
changeset
|
29 |
tm: $(OBJECTS) |
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
30 |
$(CC) -o $@ $(LINUX_LIBS) $^ |
7 | 31 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
32 |
test_filter: test_filter.o filter.o simple_math.o filter_string.o error.o |
34 | 33 |
|
10 | 34 |
clean: |
35 |
rm -f $(OBJECTS) stdinmix |
|
36 |
||
33 | 37 |
main.o: main.c main.h handlers.h |
38 |
unix_server.o: unix_server.c main.h handlers.h |
|
39 |
unix_client.o: unix_client.c main.h handlers.h |
|
7 | 40 |
error.o: error.c main.h |
47
8dcc45d8f3e5
xterm resizes sent on SIGWINCH. new terminal applications start a new session.
lbatlle@npdl268.bpo.hp.com
parents:
43
diff
changeset
|
41 |
signals.o: signals.c main.h handlers.h |
21 | 42 |
gen_sockets.o: gen_sockets.c main.h |
33 | 43 |
app_control.o: app_control.c main.h handlers.h |
44 |
client.o: client.c main.h handlers.h |
|
45 |
server.o: server.c main.h handlers.h |
|
24 | 46 |
app_term.o: app_term.c main.h |
47 |
client_term.o: client_term.c main.h |
|
27
014831063421
Fixed bug in the finish() code - it always set the saved_tios.
viric@llimona
parents:
26
diff
changeset
|
48 |
user_term.o: user_term.c main.h |
33 | 49 |
tcp_server.o: tcp_server.c main.h handlers.h |
34 | 50 |
simple_math.o: simple_math.c main.h |
51 |
filter.o: filter.c filter.h main.h |
|
52 |
test_filter.o: test_filter.c filter.h |
|
53 |
filter_string.o: filter_string.c filter.h |
|
36
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
54 |
filter_telnet.o: filter_telnet.c filter.h |
34 | 55 |
xterm.o: xterm.c main.h |
36
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
56 |
dump.o: dump.c main.h |
43
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
36
diff
changeset
|
57 |
eth_linux.o: eth_linux.c eth_linux.h |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
36
diff
changeset
|
58 |
eth_proto.o: eth_proto.c main.h eth_linux.h |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
36
diff
changeset
|
59 |
eth_server.o: eth_server.c main.h handlers.h |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
36
diff
changeset
|
60 |
eth_client.o: eth_client.c main.h handlers.h |
66
b2469563a1dc
Reliable ethernet protocol. I still need pselect instead of select.
viric@mandarina
parents:
49
diff
changeset
|
61 |
flow.o: flow.c main.h handlers.h |