author | Lluís Batlle <viric@viric.name> |
Thu, 20 Mar 2014 16:29:13 +0100 | |
branch | saveflie |
changeset 96 | d090ddac5131 |
parent 93 | 7d9b7a6da507 |
permissions | -rw-r--r-- |
21 | 1 |
CC=gcc |
2 |
CFLAGS=-g -Wall -O0 |
|
93
7d9b7a6da507
Removing direct references to /usr in the Makefile, for nix.
viric@mandarina
parents:
92
diff
changeset
|
3 |
INSTALL=install -c |
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
4 |
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
|
5 |
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
|
6 |
eth_proto.o \ |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
7 |
eth_server.o \ |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
8 |
eth_client.o |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
9 |
LINUX_LIBS=-lutil |
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
10 |
endif |
21 | 11 |
OBJECTS=main.o unix_client.o unix_server.o error.o signals.o gen_sockets.o \ |
24 | 12 |
app_control.o \ |
13 |
client.o \ |
|
14 |
server.o \ |
|
15 |
app_term.o \ |
|
26
96920c3707b3
Unix sockets version works! Well, signals don't. :)
viric@llimona
parents:
25
diff
changeset
|
16 |
client_term.o \ |
33 | 17 |
user_term.o \ |
34 | 18 |
tcp_server.o \ |
19 |
simple_math.o \ |
|
36
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
20 |
xterm.o \ |
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
21 |
dump.o \ |
66
b2469563a1dc
Reliable ethernet protocol. I still need pselect instead of select.
viric@mandarina
parents:
49
diff
changeset
|
22 |
flow.o \ |
36
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
23 |
filter.o \ |
da427c23d755
Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents:
34
diff
changeset
|
24 |
filter_string.o \ |
76
5c0b9c9f9801
Fixed filter, and the client now parses ~~~ and ~~. (closing client)
viric@llimona
parents:
66
diff
changeset
|
25 |
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
|
26 |
filter_telnet.o $(LINUX_OBJECTS) |
10 | 27 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
28 |
all: tm |
1 | 29 |
|
92 | 30 |
install: tm |
31 |
$(INSTALL) -d $(PREFIX)/bin |
|
32 |
$(INSTALL) tm $(PREFIX)/bin |
|
33 |
||
31
c8d6b46dae2e
Changing 'st' Swiss Terminal, to 'tm', terminal mixer
lbatlle@npdl268.bpo.hp.com
parents:
30
diff
changeset
|
34 |
tm: $(OBJECTS) |
96
d090ddac5131
Fixing the build on linux, gcc linking parameters order
Lluís Batlle <viric@viric.name>
parents:
93
diff
changeset
|
35 |
$(CC) -o $@ $^ $(LINUX_LIBS) |
7 | 36 |
|
49
1cead94cfd99
Fixing a few bugs. The program runs well in Linux and Mac OS X.
viric@llimona
parents:
47
diff
changeset
|
37 |
test_filter: test_filter.o filter.o simple_math.o filter_string.o error.o |
34 | 38 |
|
10 | 39 |
clean: |
40 |
rm -f $(OBJECTS) stdinmix |
|
41 |
||
33 | 42 |
main.o: main.c main.h handlers.h |
43 |
unix_server.o: unix_server.c main.h handlers.h |
|
44 |
unix_client.o: unix_client.c main.h handlers.h |
|
7 | 45 |
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
|
46 |
signals.o: signals.c main.h handlers.h |
21 | 47 |
gen_sockets.o: gen_sockets.c main.h |
33 | 48 |
app_control.o: app_control.c main.h handlers.h |
49 |
client.o: client.c main.h handlers.h |
|
50 |
server.o: server.c main.h handlers.h |
|
24 | 51 |
app_term.o: app_term.c main.h |
52 |
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
|
53 |
user_term.o: user_term.c main.h |
33 | 54 |
tcp_server.o: tcp_server.c main.h handlers.h |
34 | 55 |
simple_math.o: simple_math.c main.h |
56 |
filter.o: filter.c filter.h main.h |
|
57 |
test_filter.o: test_filter.c filter.h |
|
58 |
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
|
59 |
filter_telnet.o: filter_telnet.c filter.h |
34 | 60 |
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
|
61 |
dump.o: dump.c main.h |
43
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
36
diff
changeset
|
62 |
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
|
63 |
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
|
64 |
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
|
65 |
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
|
66 |
flow.o: flow.c main.h handlers.h |