author | viric@llimona |
Thu, 27 Sep 2007 00:25:54 +0200 | |
changeset 58 | 2cf8c513d18f |
parent 49 | 1cead94cfd99 |
child 66 | b2469563a1dc |
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 \ |
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
21 |
filter.o \ |
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
22 |
filter_string.o \ |
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
23 |
filter_telnet.o $(LINUX_OBJECTS) |
10 | 24 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
25 |
all: tm |
1 | 26 |
|
31
c8d6b46dae2e
Changing 'st' Swiss Terminal, to 'tm', terminal mixer
lbatlle@npdl268.bpo.hp.com
parents:
30
diff
changeset
|
27 |
tm: $(OBJECTS) |
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
28 |
$(CC) -o $@ $(LINUX_LIBS) $^ |
7 | 29 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
30 |
test_filter: test_filter.o filter.o simple_math.o filter_string.o error.o |
34 | 31 |
|
10 | 32 |
clean: |
33 |
rm -f $(OBJECTS) stdinmix |
|
34 |
||
33 | 35 |
main.o: main.c main.h handlers.h |
36 |
unix_server.o: unix_server.c main.h handlers.h |
|
37 |
unix_client.o: unix_client.c main.h handlers.h |
|
7 | 38 |
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
|
39 |
signals.o: signals.c main.h handlers.h |
21 | 40 |
gen_sockets.o: gen_sockets.c main.h |
33 | 41 |
app_control.o: app_control.c main.h handlers.h |
42 |
client.o: client.c main.h handlers.h |
|
43 |
server.o: server.c main.h handlers.h |
|
24 | 44 |
app_term.o: app_term.c main.h |
45 |
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
|
46 |
user_term.o: user_term.c main.h |
33 | 47 |
tcp_server.o: tcp_server.c main.h handlers.h |
34 | 48 |
simple_math.o: simple_math.c main.h |
49 |
filter.o: filter.c filter.h main.h |
|
50 |
test_filter.o: test_filter.c filter.h |
|
51 |
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
|
52 |
filter_telnet.o: filter_telnet.c filter.h |
34 | 53 |
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
|
54 |
dump.o: dump.c main.h |
43
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
36
diff
changeset
|
55 |
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
|
56 |
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
|
57 |
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
|
58 |
eth_client.o: eth_client.c main.h handlers.h |