Initial import of t_shmat.
[pcca-tests.git] / mqueue.h / Makefile
CommitLineData
673edf89 1all: t_mq_ambig \
2 t_mq_close \
3 t_mq_notify_invsigno \
4 t_mq_notify_simple \
5 t_mq_open \
6 t_mq_open_close \
7 t_mq_open_umask \
8 t_mq_parent_child \
61ff1ea4 9 t_mq_parent_child_multmsg \
673edf89 10 t_mq_prio \
11 t_mq_select \
12 t_mq_send \
13 t_mq_send2 \
14 t_mq_send3 \
309ccc34 15 t_mq_send_dos \
673edf89 16 t_mq_setattr \
17 t_mq_timedsend \
be40d05d 18 t_mq_timedsend2 \
b7c677f7 19 t_mq_timedreceive_timeout \
b0c5919c 20 t_mq_timedsend_timeout \
4abcd3b9
SK
21
22CC=gcc
83311dec 23CC99=gcc -std=c99
d0122ca7 24CCFLAGS=-Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith \
a72b6de7
SK
25 -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes \
26 -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual \
27 -Wshadow -Wwrite-strings -Wno-unused-parameter -Wfloat-equal \
28 -Wswitch -Wbad-function-cast -g
4abcd3b9
SK
29LIB=-lrt
30
6b79e392
SK
31t_mq_ambig: t_mq_ambig.c
32 $(CC) $(CCFLAGS) $(LIB) t_mq_ambig.c -o t_mq_ambig
33
9e25c3e0
SK
34t_mq_close: t_mq_close.c
35 $(CC) $(CCFLAGS) $(LIB) t_mq_close.c -o t_mq_close
36
c1ed6a45 37t_mq_notify_invsigno: t_mq_notify_invsigno.c
38 $(CC) $(CCFLAGS) $(LIB) t_mq_notify_invsigno.c -o t_mq_notify_invsigno
39
af3f41db
SK
40t_mq_notify_simple: t_mq_notify_simple.c
41 $(CC) $(CCFLAGS) $(LIB) t_mq_notify_simple.c -o t_mq_notify_simple
42
4abcd3b9 43t_mq_open: t_mq_open.c
a72b6de7 44 $(CC) $(CCFLAGS) $(LIB) t_mq_open.c -o t_mq_open
4abcd3b9 45
e50dd609 46t_mq_open_close: t_mq_open_close.c
47 $(CC) $(CCFLAGS) $(LIB) t_mq_open_close.c -o t_mq_open_close
2639eefb 48
15638ae0 49t_mq_open_umask: t_mq_open_umask.c
50 $(CC) $(CCFLAGS) $(LIB) t_mq_open_umask.c -o t_mq_open_umask
51
4abcd3b9 52t_mq_parent_child: t_mq_parent_child.c
a72b6de7 53 $(CC) $(CCFLAGS) $(LIB) t_mq_parent_child.c -o t_mq_parent_child
4abcd3b9 54
61ff1ea4
SK
55t_mq_parent_child_multmsg: t_mq_parent_child_multmsg.c
56 $(CC) $(CCFLAGS) $(LIB) t_mq_parent_child_multmsg.c -o t_mq_parent_child_multmsg
782efee9 57
9cf1119a
SK
58t_mq_prio: t_mq_prio.c
59 $(CC) $(CCFLAGS) $(LIB) t_mq_prio.c -o t_mq_prio
60
18fd27d7
SK
61t_mq_select: t_mq_select.c
62 $(CC) $(CCFLAGS) $(LIB) t_mq_select.c -o t_mq_select
63
a4c0a646 64t_mq_send: t_mq_send.c
a72b6de7 65 $(CC) $(CCFLAGS) $(LIB) t_mq_send.c -o t_mq_send
a4c0a646 66
7e4966ee 67t_mq_send2: t_mq_send2.c
68 $(CC) $(CCFLAGS) $(LIB) t_mq_send2.c -o t_mq_send2
69
748853ad 70t_mq_send3: t_mq_send3.c
86afc136 71 $(CC) $(CCFLAGS) $(LIB) t_mq_send3.c -o t_mq_send3
72
309ccc34 73t_mq_send_dos: t_mq_send_dos.c
74 $(CC) $(CCFLAGS) $(LIB) t_mq_send_dos.c -o t_mq_send_dos
75
8d564867
SK
76t_mq_setattr: t_mq_setattr.c
77 $(CC) $(CCFLAGS) $(LIB) t_mq_setattr.c -o t_mq_setattr
78
7ea37136
SK
79t_mq_timedsend: t_mq_timedsend.c
80 $(CC) $(CCFLAGS) $(LIB) t_mq_timedsend.c -o t_mq_timedsend
81
be40d05d 82t_mq_timedsend2: t_mq_timedsend2.c
2bacc066 83 $(CC) $(CCFLAGS) $(LIB) t_mq_timedsend2.c -o t_mq_timedsend2
be40d05d 84
b7c677f7 85t_mq_timedreceive_timeout: t_mq_timedreceive_timeout.c
86 $(CC99) $(CCFLAGS) $(LIB) t_mq_timedreceive_timeout.c -o t_mq_timedreceive_timeout
87
b0c5919c 88t_mq_timedsend_timeout: t_mq_timedsend_timeout.c
89 $(CC99) $(CCFLAGS) $(LIB) t_mq_timedsend_timeout.c -o t_mq_timedsend_timeout
83311dec 90
4abcd3b9 91clean:
15df0cd7 92 git clean -f
5ca81471
SK
93
94run:
6b79e392
SK
95 @printf "t_mq_ambig: "
96 @-./t_mq_ambig
97
9e25c3e0
SK
98 @printf "t_mq_close: "
99 @-./t_mq_close
100
c1ed6a45 101 @printf "t_mq_notify_invsigno: "
102 @-./t_mq_notify_invsigno
103
af3f41db
SK
104 @printf "t_mq_notify_simple: "
105 @-./t_mq_notify_simple
106
08357fef 107 @printf "t_mq_open: "
3b733f46 108 @-./t_mq_open
5ca81471 109
e50dd609 110 @printf "t_mq_open_close: "
111 @-./t_mq_open_close
5ca81471 112
15638ae0 113 @printf "t_mq_open_umask: "
114 @-./t_mq_open_umask
115
08357fef 116 @printf "t_mq_parent_child: "
3b733f46 117 @-./t_mq_parent_child
5ca81471 118
61ff1ea4
SK
119 @printf "t_mq_parent_child_multmsg: "
120 @-./t_mq_parent_child_multmsg
5ca81471 121
9cf1119a
SK
122 @printf "t_mq_prio: "
123 @-./t_mq_prio
124
08357fef 125 @printf "t_mq_select: "
c5de2bbe
SK
126 @-./t_mq_select
127
08357fef 128 @printf "t_mq_send: "
5ca81471
SK
129 @-./t_mq_send
130
7e4966ee 131 @printf "t_mq_send2: "
132 @-./t_mq_send2
133
86afc136 134 @printf "t_mq_send3: "
135 @-./t_mq_send3
136
309ccc34 137 @printf "t_mq_send_DoS: "
138 @-./t_mq_send_dos
139
08357fef 140 @printf "t_mq_setattr: "
3b733f46 141 @-./t_mq_setattr
5ca81471 142
08357fef 143 @printf "t_mq_timedsend: "
3b733f46 144 @-./t_mq_timedsend
83311dec 145
d5bee22c 146 @printf "t_mq_timedsend2: "
147 @-./t_mq_timedsend2
148
b7c677f7 149 @printf "t_mq_timedreceive_timeout: "
150 @-./t_mq_timedreceive_timeout
151
b0c5919c 152 @printf "t_mq_timedsend_timeout: "
153 @-./t_mq_timedsend_timeout