Initial import of t_shmat.
[pcca-tests.git] / mqueue.h / Makefile
1 all:    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               \
9         t_mq_parent_child_multmsg       \
10         t_mq_prio                       \
11         t_mq_select                     \
12         t_mq_send                       \
13         t_mq_send2                      \
14         t_mq_send3                      \
15         t_mq_send_dos                   \
16         t_mq_setattr                    \
17         t_mq_timedsend                  \
18         t_mq_timedsend2                 \
19         t_mq_timedreceive_timeout       \
20         t_mq_timedsend_timeout          \
21
22 CC=gcc
23 CC99=gcc -std=c99
24 CCFLAGS=-Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith \
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
29 LIB=-lrt
30
31 t_mq_ambig: t_mq_ambig.c
32         $(CC) $(CCFLAGS) $(LIB) t_mq_ambig.c -o t_mq_ambig
33
34 t_mq_close: t_mq_close.c
35         $(CC) $(CCFLAGS) $(LIB) t_mq_close.c -o t_mq_close
36
37 t_mq_notify_invsigno: t_mq_notify_invsigno.c
38         $(CC) $(CCFLAGS) $(LIB) t_mq_notify_invsigno.c -o t_mq_notify_invsigno
39
40 t_mq_notify_simple: t_mq_notify_simple.c
41         $(CC) $(CCFLAGS) $(LIB) t_mq_notify_simple.c -o t_mq_notify_simple
42
43 t_mq_open: t_mq_open.c
44         $(CC) $(CCFLAGS) $(LIB) t_mq_open.c -o t_mq_open
45
46 t_mq_open_close: t_mq_open_close.c
47         $(CC) $(CCFLAGS) $(LIB) t_mq_open_close.c -o t_mq_open_close
48
49 t_mq_open_umask: t_mq_open_umask.c
50         $(CC) $(CCFLAGS) $(LIB) t_mq_open_umask.c -o t_mq_open_umask
51
52 t_mq_parent_child: t_mq_parent_child.c
53         $(CC) $(CCFLAGS) $(LIB) t_mq_parent_child.c -o t_mq_parent_child
54
55 t_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
57
58 t_mq_prio: t_mq_prio.c
59         $(CC) $(CCFLAGS) $(LIB) t_mq_prio.c -o t_mq_prio
60
61 t_mq_select: t_mq_select.c
62         $(CC) $(CCFLAGS) $(LIB) t_mq_select.c -o t_mq_select
63
64 t_mq_send: t_mq_send.c
65         $(CC) $(CCFLAGS) $(LIB) t_mq_send.c -o t_mq_send
66
67 t_mq_send2: t_mq_send2.c
68         $(CC) $(CCFLAGS) $(LIB) t_mq_send2.c -o t_mq_send2
69
70 t_mq_send3: t_mq_send3.c
71         $(CC) $(CCFLAGS) $(LIB) t_mq_send3.c -o t_mq_send3
72
73 t_mq_send_dos: t_mq_send_dos.c
74         $(CC) $(CCFLAGS) $(LIB) t_mq_send_dos.c -o t_mq_send_dos
75
76 t_mq_setattr: t_mq_setattr.c
77         $(CC) $(CCFLAGS) $(LIB) t_mq_setattr.c -o t_mq_setattr
78
79 t_mq_timedsend: t_mq_timedsend.c
80         $(CC) $(CCFLAGS) $(LIB) t_mq_timedsend.c -o t_mq_timedsend
81
82 t_mq_timedsend2: t_mq_timedsend2.c
83         $(CC) $(CCFLAGS) $(LIB) t_mq_timedsend2.c -o t_mq_timedsend2
84
85 t_mq_timedreceive_timeout: t_mq_timedreceive_timeout.c
86         $(CC99) $(CCFLAGS) $(LIB) t_mq_timedreceive_timeout.c -o t_mq_timedreceive_timeout
87
88 t_mq_timedsend_timeout: t_mq_timedsend_timeout.c
89         $(CC99) $(CCFLAGS) $(LIB) t_mq_timedsend_timeout.c -o t_mq_timedsend_timeout
90
91 clean:
92         git clean -f
93
94 run:
95         @printf "t_mq_ambig: "
96         @-./t_mq_ambig
97
98         @printf "t_mq_close: "
99         @-./t_mq_close
100
101         @printf "t_mq_notify_invsigno: "
102         @-./t_mq_notify_invsigno
103
104         @printf "t_mq_notify_simple: "
105         @-./t_mq_notify_simple
106
107         @printf "t_mq_open: "
108         @-./t_mq_open
109
110         @printf "t_mq_open_close: "
111         @-./t_mq_open_close
112
113         @printf "t_mq_open_umask: "
114         @-./t_mq_open_umask
115
116         @printf "t_mq_parent_child: "
117         @-./t_mq_parent_child
118
119         @printf "t_mq_parent_child_multmsg: "
120         @-./t_mq_parent_child_multmsg
121
122         @printf "t_mq_prio: "
123         @-./t_mq_prio
124
125         @printf "t_mq_select: "
126         @-./t_mq_select
127
128         @printf "t_mq_send: "
129         @-./t_mq_send
130
131         @printf "t_mq_send2: "
132         @-./t_mq_send2
133
134         @printf "t_mq_send3: "
135         @-./t_mq_send3
136
137         @printf "t_mq_send_DoS: "
138         @-./t_mq_send_dos
139
140         @printf "t_mq_setattr: "
141         @-./t_mq_setattr
142
143         @printf "t_mq_timedsend: "
144         @-./t_mq_timedsend
145
146         @printf "t_mq_timedsend2: "
147         @-./t_mq_timedsend2
148
149         @printf "t_mq_timedreceive_timeout: "
150         @-./t_mq_timedreceive_timeout
151
152         @printf "t_mq_timedsend_timeout: "
153         @-./t_mq_timedsend_timeout