author | viric@llimona |
Tue, 30 May 2006 01:10:00 +0200 | |
changeset 53 | 667cd5966695 |
parent 51 | a01abd65856a |
permissions | -rw-r--r-- |
16
de00e98450eb
Versió 1 quasi per entregar. Falta molt RFC per implementar.
viric@llimona
parents:
15
diff
changeset
|
1 |
CODE_OPTIONS=-D_POSIX_C_SOURCE=200112L -D_ISOC99_SOURCE |
de00e98450eb
Versió 1 quasi per entregar. Falta molt RFC per implementar.
viric@llimona
parents:
15
diff
changeset
|
2 |
CFLAGS=$(MY_CFLAGS) $(CODE_OPTIONS) |
0 | 3 |
|
27 | 4 |
LDFLAGS=$(MY_LDFLAGS) |
1 | 5 |
|
15
fea6e87812f0
Now everything works - the rfc3164 message parser must be improved.
viric@llimona
parents:
12
diff
changeset
|
6 |
all: syslog_in_npipe syslog_in_udp syslog_in_unix unix_writer syslog_kernel |
2 | 7 |
|
8 |
%.a: |
|
15
fea6e87812f0
Now everything works - the rfc3164 message parser must be improved.
viric@llimona
parents:
12
diff
changeset
|
9 |
ar src $@ $< |
2 | 10 |
|
1 | 11 |
rfc3164.o: rfc3164.h |
2 | 12 |
rfc3164.a: rfc3164.o |
3
9bcdce466e88
Crec que hauria de funcionar almenys el listen... però no va.
viric@llimona
parents:
2
diff
changeset
|
13 |
|
26 | 14 |
syslog_in_npipe.o: rfc3164.h syslog_in_npipe.c syslog.h |
15 |
syslog_in_udp.o: syslog_in_udp.c rfc3164.h syslog.h |
|
16 |
syslog_in_unix.o: syslog_in_unix.c rfc3164.h syslog.h |
|
21
24714adbc325
Implemented the configuration file for starting the services.
viric@mandarina
parents:
16
diff
changeset
|
17 |
syslog_kernel.o: syslog_kernel.c rfc3164.h syslog.h |
43
9dac7f0c8e2a
Corrected some dependencies - some c files weren't included for its objects.
viric@llimona
parents:
39
diff
changeset
|
18 |
config.o: config.c syslog.h |
9dac7f0c8e2a
Corrected some dependencies - some c files weren't included for its objects.
viric@llimona
parents:
39
diff
changeset
|
19 |
out_udp.o: out_udp.c syslog.h |
9dac7f0c8e2a
Corrected some dependencies - some c files weren't included for its objects.
viric@llimona
parents:
39
diff
changeset
|
20 |
out_file.o: out_file.c syslog.h |
9dac7f0c8e2a
Corrected some dependencies - some c files weren't included for its objects.
viric@llimona
parents:
39
diff
changeset
|
21 |
signals.o: signals.c syslog.h |
45
b65e0d8469c3
Added a rule for unix_writer. It depends on rfc3164.h.
viric@llimona
parents:
43
diff
changeset
|
22 |
unix_writer.o: unix_writer.c rfc3164.h |
51
a01abd65856a
The tcp server listen() started working. By now the connections are closed at once.
viric@llimona
parents:
49
diff
changeset
|
23 |
tcp_server.o: tcp_server.c rfc3164.h |
49
ced312cc1eaa
Separated the child handling in another module.
viric@llimona
parents:
45
diff
changeset
|
24 |
childs.o: childs.c syslog.h |
3
9bcdce466e88
Crec que hauria de funcionar almenys el listen... però no va.
viric@llimona
parents:
2
diff
changeset
|
25 |
|
26 | 26 |
syslog_in_npipe: syslog_in_npipe.o rfc3164.a signals.o |
27 |
syslog_in_udp: syslog_in_udp.o rfc3164.a signals.o |
|
28 |
syslog_in_unix: syslog_in_unix.o rfc3164.a signals.o |
|
12
46ce13615fd8
Added a unix writer for testing the unix-socket syslog.
viric@mandarina
parents:
9
diff
changeset
|
29 |
unix_writer: unix_writer.o |
49
ced312cc1eaa
Separated the child handling in another module.
viric@llimona
parents:
45
diff
changeset
|
30 |
syslog_kernel: syslog_kernel.o config.o rfc3164.a signals.o out_udp.o \ |
51
a01abd65856a
The tcp server listen() started working. By now the connections are closed at once.
viric@llimona
parents:
49
diff
changeset
|
31 |
out_file.o childs.o tcp_server.o |
1 | 32 |
|
33 |
clean: |
|
2 | 34 |
rm -f *.o *.a |
15
fea6e87812f0
Now everything works - the rfc3164 message parser must be improved.
viric@llimona
parents:
12
diff
changeset
|
35 |
rm -f syslog_in_npipe syslog_in_udp syslog_in_unix unix_writer \ |
fea6e87812f0
Now everything works - the rfc3164 message parser must be improved.
viric@llimona
parents:
12
diff
changeset
|
36 |
syslog_kernel |