Makefile.common
author viric@llimona
Tue, 30 May 2006 13:07:54 +0200
changeset 60 07f049b2c1b6
parent 51 a01abd65856a
permissions -rw-r--r--
Added tag 3a_entrega for changeset a8776c046a530bf7665426108b6b501e2944645a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4a369e7c2ce8 Initial.
viric@llimona
parents:
diff changeset
     3
27
b01603838e42 Added LDFLAGS and static compilation
viric@mandarina
parents: 26
diff changeset
     4
LDFLAGS=$(MY_LDFLAGS)
1
cd184f6ef0d8 The named pipe opening and reading works.
viric@llimona
parents: 0
diff changeset
     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
c0db07a9d316 Changing name.
viric@llimona
parents: 1
diff changeset
     7
c0db07a9d316 Changing name.
viric@llimona
parents: 1
diff changeset
     8
%.a: 
15
fea6e87812f0 Now everything works - the rfc3164 message parser must be improved.
viric@llimona
parents: 12
diff changeset
     9
	ar src $@ $<
2
c0db07a9d316 Changing name.
viric@llimona
parents: 1
diff changeset
    10
1
cd184f6ef0d8 The named pipe opening and reading works.
viric@llimona
parents: 0
diff changeset
    11
rfc3164.o: rfc3164.h
2
c0db07a9d316 Changing name.
viric@llimona
parents: 1
diff changeset
    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
7227789ca718 Added a c file for signal programming.
viric@mandarina
parents: 21
diff changeset
    14
syslog_in_npipe.o: rfc3164.h syslog_in_npipe.c syslog.h
7227789ca718 Added a c file for signal programming.
viric@mandarina
parents: 21
diff changeset
    15
syslog_in_udp.o: syslog_in_udp.c rfc3164.h syslog.h
7227789ca718 Added a c file for signal programming.
viric@mandarina
parents: 21
diff changeset
    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
7227789ca718 Added a c file for signal programming.
viric@mandarina
parents: 21
diff changeset
    26
syslog_in_npipe: syslog_in_npipe.o rfc3164.a signals.o
7227789ca718 Added a c file for signal programming.
viric@mandarina
parents: 21
diff changeset
    27
syslog_in_udp: syslog_in_udp.o rfc3164.a signals.o
7227789ca718 Added a c file for signal programming.
viric@mandarina
parents: 21
diff changeset
    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
cd184f6ef0d8 The named pipe opening and reading works.
viric@llimona
parents: 0
diff changeset
    32
cd184f6ef0d8 The named pipe opening and reading works.
viric@llimona
parents: 0
diff changeset
    33
clean:
2
c0db07a9d316 Changing name.
viric@llimona
parents: 1
diff changeset
    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