Merge branch 'master' of ssh://git.samba.org/data/git/samba
[sfrench/samba-autobuild/.git] / testsuite / libsmbclient / src / Makefile
1 CC      =       gcc
2 CFLAGS  =       -Wall -W -O2 -g -I../../../source/include
3 LFLAGS  =       -L../../../source/bin
4
5 LIBS=   -L/usr/lib -lsmbclient -ltalloc
6 INCPATH= -I. -I/usr/include -I./include
7 BIN_DIR=bin
8
9 SUB_DIRS=init fstat open unlink chown close opendir closedir rename lseek lseekdir stat \
10                 getdents creat read readdir mkdir rmdir write chmod open_print_job list_print_jobs \
11                 print_file telldir unlink_print_job
12
13 MAKEDIR = || exec false; \
14         if test -d "$$dir"; then :; else \
15         echo mkdir "$$dir"; \
16         mkdir -p "$$dir" >/dev/null 2>&1 || \
17         test -d "$$dir" || \
18         mkdir "$$dir" || \
19         exec false; fi || exec false
20
21 G_INIT          =       $(BIN_DIR)/init_1 \
22                         $(BIN_DIR)/init_2 \
23                         $(BIN_DIR)/init_3 \
24                         $(BIN_DIR)/init_4 
25
26 G_FSTAT         =       $(BIN_DIR)/fstat_1 \
27                         $(BIN_DIR)/fstat_2 \
28                         $(BIN_DIR)/fstat_3 \
29                         $(BIN_DIR)/fstat_4 \
30                         $(BIN_DIR)/fstat_5 \
31                         $(BIN_DIR)/fstat_6
32
33 G_OPEN          =       $(BIN_DIR)/open_1 \
34                         $(BIN_DIR)/open_2 \
35                         $(BIN_DIR)/open_3 \
36                         $(BIN_DIR)/open_4 \
37                         $(BIN_DIR)/open_5
38
39 G_UNLINK        =       $(BIN_DIR)/unlink_1  \
40                         $(BIN_DIR)/unlink_2  \
41                         $(BIN_DIR)/unlink_3  \
42                         $(BIN_DIR)/unlink_4  \
43                         $(BIN_DIR)/unlink_5  \
44                         $(BIN_DIR)/unlink_6  \
45                         $(BIN_DIR)/unlink_7  \
46                         $(BIN_DIR)/unlink_8  \
47                         $(BIN_DIR)/unlink_9  \
48                         $(BIN_DIR)/unlink_10 \
49                         $(BIN_DIR)/unlink_11 \
50                         $(BIN_DIR)/unlink_12
51
52
53 G_CLOSE         =       $(BIN_DIR)/close_1 \
54                         $(BIN_DIR)/close_2
55
56 G_OPENDIR       =       $(BIN_DIR)/opendir_1 \
57                         $(BIN_DIR)/opendir_2 \
58                         $(BIN_DIR)/opendir_3 \
59                         $(BIN_DIR)/opendir_4 
60
61 G_CLOSEDIR      =       $(BIN_DIR)/closedir_1 \
62                         $(BIN_DIR)/closedir_2 \
63                         $(BIN_DIR)/closedir_3 \
64                         $(BIN_DIR)/closedir_4 
65
66 G_RENAME        =       $(BIN_DIR)/rename_1 \
67                         $(BIN_DIR)/rename_2 \
68                         $(BIN_DIR)/rename_3 \
69                         $(BIN_DIR)/rename_4 \
70                         $(BIN_DIR)/rename_5 \
71                         $(BIN_DIR)/rename_6 \
72                         $(BIN_DIR)/rename_7 \
73                         $(BIN_DIR)/rename_8 \
74                         $(BIN_DIR)/rename_9 \
75                         $(BIN_DIR)/rename_10 \
76                         $(BIN_DIR)/rename_11 \
77                         $(BIN_DIR)/rename_12 \
78                         $(BIN_DIR)/rename_13 \
79                         $(BIN_DIR)/rename_14
80
81 G_LSEEK         =       $(BIN_DIR)/lseek_1 \
82                         $(BIN_DIR)/lseek_2 \
83                         $(BIN_DIR)/lseek_3 \
84                         $(BIN_DIR)/lseek_4 \
85                         $(BIN_DIR)/lseek_5 \
86                         $(BIN_DIR)/lseek_6 \
87                         $(BIN_DIR)/lseek_7 \
88                         $(BIN_DIR)/lseek_8
89
90 G_LSEEKDIR      =       $(BIN_DIR)/lseekdir_1 \
91                         $(BIN_DIR)/lseekdir_2 \
92                         $(BIN_DIR)/lseekdir_3 \
93                         $(BIN_DIR)/lseekdir_4 \
94                         $(BIN_DIR)/lseekdir_5 \
95                         $(BIN_DIR)/lseekdir_6
96
97 G_STAT          =       $(BIN_DIR)/stat_1 \
98                         $(BIN_DIR)/stat_2 \
99                         $(BIN_DIR)/stat_3 \
100                         $(BIN_DIR)/stat_4 \
101                         $(BIN_DIR)/stat_5 \
102                         $(BIN_DIR)/stat_6 \
103                         $(BIN_DIR)/stat_k
104
105 G_GETDENTS      =       $(BIN_DIR)/getdents_1 \
106                         $(BIN_DIR)/getdents_2 \
107                         $(BIN_DIR)/getdents_3 \
108                         $(BIN_DIR)/getdents_4 \
109                         $(BIN_DIR)/getdents_5 
110
111 G_CREAT         =       $(BIN_DIR)/creat_1 \
112                         $(BIN_DIR)/creat_2 \
113                         $(BIN_DIR)/creat_3
114
115 G_READ          =       $(BIN_DIR)/read_1 \
116                         $(BIN_DIR)/read_2 \
117                         $(BIN_DIR)/read_3 \
118                         $(BIN_DIR)/read_4 \
119                         $(BIN_DIR)/read_5 \
120                         $(BIN_DIR)/read_6 \
121                         $(BIN_DIR)/read_7 \
122                         $(BIN_DIR)/read_8 \
123                         $(BIN_DIR)/read_9 \
124                         $(BIN_DIR)/read_10 \
125                         $(BIN_DIR)/read_11 \
126                         $(BIN_DIR)/read_12 \
127                         $(BIN_DIR)/read_13
128
129 G_MKDIR         =       $(BIN_DIR)/mkdir_1 \
130                         $(BIN_DIR)/mkdir_2 \
131                         $(BIN_DIR)/mkdir_3 \
132                         $(BIN_DIR)/mkdir_4
133
134 G_RMDIR         =       $(BIN_DIR)/rmdir_1 \
135                         $(BIN_DIR)/rmdir_2 \
136                         $(BIN_DIR)/rmdir_3 \
137                         $(BIN_DIR)/rmdir_4 \
138                         $(BIN_DIR)/rmdir_5 \
139                         $(BIN_DIR)/rmdir_6 
140
141 G_READDIR       =       $(BIN_DIR)/readdir_1 \
142                         $(BIN_DIR)/readdir_2 \
143                         $(BIN_DIR)/readdir_3 \
144                         $(BIN_DIR)/readdir_4 \
145                         $(BIN_DIR)/readdir_5 
146
147 G_WRITE         =       $(BIN_DIR)/write_1 \
148                         $(BIN_DIR)/write_2 \
149                         $(BIN_DIR)/write_3 \
150                         $(BIN_DIR)/write_4 \
151                         $(BIN_DIR)/write_5 \
152                         $(BIN_DIR)/write_6 \
153                         $(BIN_DIR)/write_7 \
154                         $(BIN_DIR)/write_8 \
155                         $(BIN_DIR)/write_9 \
156                         $(BIN_DIR)/write_10 \
157                         $(BIN_DIR)/write_11 \
158                         $(BIN_DIR)/write_12 \
159                         $(BIN_DIR)/write_13 
160
161 G_TELLDIR       =       $(BIN_DIR)/telldir_1 \
162                         $(BIN_DIR)/telldir_2 \
163                         $(BIN_DIR)/telldir_3 \
164                         $(BIN_DIR)/telldir_4 \
165                         $(BIN_DIR)/telldir_5
166
167 G_CHMOD         =       $(BIN_DIR)/chmod_1
168
169 G_CHOWN         =       $(BIN_DIR)/chown_1
170
171 G_PRINT_FILE    =       $(BIN_DIR)/print_file_1 \
172                         $(BIN_DIR)/print_file_2 \
173                         $(BIN_DIR)/print_file_3 \
174                         $(BIN_DIR)/print_file_4
175
176 G_OPEN_PRINT_JOB        =       $(BIN_DIR)/open_print_job_1 \
177                                 $(BIN_DIR)/open_print_job_2
178
179 G_LIST_PRINT_JOBS       =       $(BIN_DIR)/list_print_jobs_1 \
180                                 $(BIN_DIR)/list_print_jobs_2 \
181                                 $(BIN_DIR)/list_print_jobs_3 \
182                                 $(BIN_DIR)/list_print_jobs_4 \
183                                 $(BIN_DIR)/list_print_jobs_5 \
184                                 $(BIN_DIR)/list_print_jobs_6 \
185                                 $(BIN_DIR)/list_print_jobs_7 
186
187 G_UNLINK_PRINT_JOB      =       $(BIN_DIR)/unlink_print_job_1 \
188                                 $(BIN_DIR)/unlink_print_job_2 \
189                                 $(BIN_DIR)/unlink_print_job_3 \
190                                 $(BIN_DIR)/unlink_print_job_4 \
191                                 $(BIN_DIR)/unlink_print_job_5 
192
193 GROUPS= $(G_CHMOD) $(G_CHOWN) $(G_CLOSE) $(G_CLOSEDIR) $(G_CREAT) $(G_FSTAT)\
194         $(G_GETDENTS) $(G_INIT) $(G_LIST_PRINT_JOBS) $(G_LSEEK) $(G_LSEEKDIR) \
195         $(G_MKDIR) $(G_OPEN) $(G_OPENDIR) $(G_OPEN_PRINT_JOB) $(G_PRINT_FILE)\
196         $(G_READ) $(G_READDIR) $(G_RENAME) $(G_RMDIR) $(G_STAT) $(G_TELLDIR) $(G_UNLINK) \
197         $(G_UNLINK_PRINT_JOB) $(G_WRITE)
198
199 .c.o:
200         @echo Compiling $*.c
201         @$(CC) -c $(CFLAGS) -o $@ $(INCPATH) $<
202
203
204 all:    $(GROUPS)       
205
206 init:                   $(G_INIT)
207 fstat:                  $(G_FSTAT)
208 open:                   $(G_OPEN)
209 unlink:                 $(G_UNLINK)
210 chown:                  $(G_CHOWN)
211 close:                  $(G_CLOSE)
212 opendir:                $(G_OPENDIR)
213 closedir:               $(G_CLOSEDIR)
214 rename:                 $(G_RENAME)
215 readdir:                $(G_READDIR)
216 lseek:                  $(G_LSEEK)
217 lseekdir:               $(G_LSEEKDIR)
218 stat:                   $(G_STAT)
219 getdents:               $(G_GETDENTS)
220 creat:                  $(G_CREAT)
221 read:                   $(G_READ)
222 mkdir:                  $(G_MKDIR)
223 rmdir:                  $(G_RMDIR)
224 write:                  $(G_WRITE)
225 chmod:                  $(G_CHMOD)
226 telldir:                $(G_TELLDIR)
227 print_file:             $(G_PRINT_FILE)
228 open_print_job:         $(G_OPEN_PRINT_JOB)
229 list_print_jobs:        $(G_LIST_PRINT_JOBS)
230 unlink_print_job:       $(G_UNLINK_PRINT_JOB)
231
232
233 $(BIN_DIR)/testsmbc:    testsmbc.o
234         @echo Linking $@
235         @$(CC) $(LFLAGS) -o $@ testsmbc.o $(INCPATH) $(LIBS)
236
237 $(BIN_DIR)/init_1:      init/init_1.o
238         @echo Linking $@
239         @$(CC) $(LFLAGS) -o $@ init/init_1.o $(INCPATH) $(LIBS)
240
241 $(BIN_DIR)/init_2:      init/init_2.o
242         @echo Linking $@
243         @$(CC) $(LFLAGS) -o $@ init/init_2.o $(INCPATH) $(LIBS)
244
245 $(BIN_DIR)/init_3:      init/init_3.o
246         @echo Linking $@
247         @$(CC) $(LFLAGS) -o $@ init/init_3.o $(INCPATH) $(LIBS)
248
249 $(BIN_DIR)/init_4:      init/init_4.o
250         @echo Linking $@
251         @$(CC) $(LFLAGS) -o $@ init/init_4.o $(INCPATH) $(LIBS)
252
253 $(BIN_DIR)/fstat_1:     fstat/fstat_1.o
254         @echo Linking $@
255         @$(CC) $(LFLAGS) -o $@ fstat/fstat_1.o $(INCPATH) $(LIBS)
256
257 $(BIN_DIR)/fstat_2:     fstat/fstat_2.o
258         @echo Linking $@
259         @$(CC) $(LFLAGS) -o $@ fstat/fstat_2.o $(INCPATH) $(LIBS)
260
261 $(BIN_DIR)/fstat_3:     fstat/fstat_3.o
262         @echo Linking $@
263         @$(CC) $(LFLAGS) -o $@ fstat/fstat_3.o $(INCPATH) $(LIBS)
264
265 $(BIN_DIR)/fstat_4:     fstat/fstat_4.o
266         @echo Linking $@
267         @$(CC) $(LFLAGS) -o $@ fstat/fstat_4.o $(INCPATH) $(LIBS)
268
269 $(BIN_DIR)/fstat_5:     fstat/fstat_5.o
270         @echo Linking $@
271         @$(CC) $(LFLAGS) -o $@ fstat/fstat_5.o $(INCPATH) $(LIBS)
272
273 $(BIN_DIR)/fstat_6:     fstat/fstat_6.o
274         @echo Linking $@
275         @$(CC) $(LFLAGS) -o $@ fstat/fstat_6.o $(INCPATH) $(LIBS)
276
277 $(BIN_DIR)/open_1:      open/open_1.o
278         @echo Linking $@
279         @$(CC) $(LFLAGS) -o $@ open/open_1.o $(INCPATH) $(LIBS)
280
281 $(BIN_DIR)/open_2:      open/open_2.o
282         @echo Linking $@
283         @$(CC) $(LFLAGS) -o $@ open/open_2.o $(INCPATH) $(LIBS)
284
285 $(BIN_DIR)/open_3:      open/open_3.o
286         @echo Linking $@
287         @$(CC) $(LFLAGS) -o $@ open/open_3.o $(INCPATH) $(LIBS)
288
289 $(BIN_DIR)/open_4:      open/open_4.o
290         @echo Linking $@
291         @$(CC) $(LFLAGS) -o $@ open/open_4.o $(INCPATH) $(LIBS)
292
293 $(BIN_DIR)/open_5:      open/open_5.o
294         @echo Linking $@
295         @$(CC) $(LFLAGS) -o $@ open/open_5.o $(INCPATH) $(LIBS)
296
297 $(BIN_DIR)/unlink_1:    unlink/unlink_1.o
298         @echo Linking $@
299         @$(CC) $(LFLAGS) -o $@ unlink/unlink_1.o $(INCPATH) $(LIBS)
300
301 $(BIN_DIR)/unlink_2:    unlink/unlink_2.o
302         @echo Linking $@
303         @$(CC) $(LFLAGS) -o $@ unlink/unlink_2.o $(INCPATH) $(LIBS)
304
305 $(BIN_DIR)/unlink_3:    unlink/unlink_3.o
306         @echo Linking $@
307         @$(CC) $(LFLAGS) -o $@ unlink/unlink_3.o $(INCPATH) $(LIBS)
308
309 $(BIN_DIR)/unlink_4:    unlink/unlink_4.o
310         @echo Linking $@
311         @$(CC) $(LFLAGS) -o $@ unlink/unlink_4.o $(INCPATH) $(LIBS)
312
313 $(BIN_DIR)/unlink_5:    unlink/unlink_5.o
314         @echo Linking $@
315         @$(CC) $(LFLAGS) -o $@ unlink/unlink_5.o $(INCPATH) $(LIBS)
316
317 $(BIN_DIR)/unlink_6:    unlink/unlink_6.o
318         @echo Linking $@
319         @$(CC) $(LFLAGS) -o $@ unlink/unlink_6.o $(INCPATH) $(LIBS)
320
321 $(BIN_DIR)/unlink_7:    unlink/unlink_7.o
322         @echo Linking $@
323         @$(CC) $(LFLAGS) -o $@ unlink/unlink_7.o $(INCPATH) $(LIBS)
324
325 $(BIN_DIR)/unlink_8:    unlink/unlink_8.o
326         @echo Linking $@
327         @$(CC) $(LFLAGS) -o $@ unlink/unlink_8.o $(INCPATH) $(LIBS)
328
329 $(BIN_DIR)/unlink_9:    unlink/unlink_9.o
330         @echo Linking $@
331         @$(CC) $(LFLAGS) -o $@ unlink/unlink_9.o $(INCPATH) $(LIBS)
332
333 $(BIN_DIR)/unlink_10:   unlink/unlink_10.o
334         @echo Linking $@
335         @$(CC) $(LFLAGS) -o $@ unlink/unlink_10.o $(INCPATH) $(LIBS)
336
337 $(BIN_DIR)/unlink_11:   unlink/unlink_11.o
338         @echo Linking $@
339         @$(CC) $(LFLAGS) -o $@ unlink/unlink_11.o $(INCPATH) $(LIBS)
340
341 $(BIN_DIR)/unlink_12:   unlink/unlink_12.o
342         @echo Linking $@
343         @$(CC) $(LFLAGS) -o $@ unlink/unlink_12.o $(INCPATH) $(LIBS)
344
345 $(BIN_DIR)/chown_1:     chown/chown_1.o
346         @echo Linking $@
347         @$(CC) $(LFLAGS) -o $@ chown/chown_1.o $(INCPATH) $(LIBS)
348
349 $(BIN_DIR)/close_1:     close/close_1.o
350         @echo Linking $@
351         @$(CC) $(LFLAGS) -o $@ close/close_1.o $(INCPATH) $(LIBS)
352
353 $(BIN_DIR)/close_2:     close/close_2.o
354         @echo Linking $@
355         @$(CC) $(LFLAGS) -o $@ close/close_2.o $(INCPATH) $(LIBS)
356
357 $(BIN_DIR)/opendir_1:   opendir/opendir_1.o
358         @echo Linking $@
359         @$(CC) $(LFLAGS) -o $@ opendir/opendir_1.o $(INCPATH) $(LIBS)
360
361 $(BIN_DIR)/opendir_2:   opendir/opendir_2.o
362         @echo Linking $@
363         @$(CC) $(LFLAGS) -o $@ opendir/opendir_2.o $(INCPATH) $(LIBS)
364
365 $(BIN_DIR)/opendir_3:   opendir/opendir_3.o
366         @echo Linking $@
367         @$(CC) $(LFLAGS) -o $@ opendir/opendir_3.o $(INCPATH) $(LIBS)
368
369 $(BIN_DIR)/opendir_4:   opendir/opendir_4.o
370         @echo Linking $@
371         @$(CC) $(LFLAGS) -o $@ opendir/opendir_4.o $(INCPATH) $(LIBS)
372
373 $(BIN_DIR)/closedir_1:  closedir/closedir_1.o
374         @echo Linking $@
375         @$(CC) $(LFLAGS) -o $@ closedir/closedir_1.o $(INCPATH) $(LIBS)
376
377 $(BIN_DIR)/closedir_2:  closedir/closedir_2.o
378         @echo Linking $@
379         @$(CC) $(LFLAGS) -o $@ closedir/closedir_2.o $(INCPATH) $(LIBS)
380
381 $(BIN_DIR)/closedir_3:  closedir/closedir_3.o
382         @echo Linking $@
383         @$(CC) $(LFLAGS) -o $@ closedir/closedir_3.o $(INCPATH) $(LIBS)
384
385 $(BIN_DIR)/closedir_4:  closedir/closedir_4.o
386         @echo Linking $@
387         @$(CC) $(LFLAGS) -o $@ closedir/closedir_4.o $(INCPATH) $(LIBS)
388
389 $(BIN_DIR)/rename_1:    rename/rename_1.o
390         @echo Linking $@
391         @$(CC) $(LFLAGS) -o $@ rename/rename_1.o $(INCPATH) $(LIBS)
392
393 $(BIN_DIR)/rename_2:    rename/rename_2.o
394         @echo Linking $@
395         @$(CC) $(LFLAGS) -o $@ rename/rename_2.o $(INCPATH) $(LIBS)
396
397 $(BIN_DIR)/rename_3:    rename/rename_3.o
398         @echo Linking $@
399         @$(CC) $(LFLAGS) -o $@ rename/rename_3.o $(INCPATH) $(LIBS)
400
401 $(BIN_DIR)/rename_4:    rename/rename_4.o
402         @echo Linking $@
403         @$(CC) $(LFLAGS) -o $@ rename/rename_4.o $(INCPATH) $(LIBS)
404
405 $(BIN_DIR)/rename_5:    rename/rename_5.o
406         @echo Linking $@
407         @$(CC) $(LFLAGS) -o $@ rename/rename_5.o $(INCPATH) $(LIBS)
408
409 $(BIN_DIR)/rename_6:    rename/rename_6.o
410         @echo Linking $@
411         @$(CC) $(LFLAGS) -o $@ rename/rename_6.o $(INCPATH) $(LIBS)
412
413 $(BIN_DIR)/rename_7:    rename/rename_7.o
414         @echo Linking $@
415         @$(CC) $(LFLAGS) -o $@ rename/rename_7.o $(INCPATH) $(LIBS)
416
417 $(BIN_DIR)/rename_8:    rename/rename_8.o
418         @echo Linking $@
419         @$(CC) $(LFLAGS) -o $@ rename/rename_8.o $(INCPATH) $(LIBS)
420
421 $(BIN_DIR)/rename_9:    rename/rename_9.o
422         @echo Linking $@
423         @$(CC) $(LFLAGS) -o $@ rename/rename_9.o $(INCPATH) $(LIBS)
424
425 $(BIN_DIR)/rename_10:   rename/rename_10.o
426         @echo Linking $@
427         @$(CC) $(LFLAGS) -o $@ rename/rename_10.o $(INCPATH) $(LIBS)
428
429 $(BIN_DIR)/rename_11:   rename/rename_11.o
430         @echo Linking $@
431         @$(CC) $(LFLAGS) -o $@ rename/rename_11.o $(INCPATH) $(LIBS)
432
433 $(BIN_DIR)/rename_12:   rename/rename_12.o
434         @echo Linking $@
435         @$(CC) $(LFLAGS) -o $@ rename/rename_12.o $(INCPATH) $(LIBS)
436
437 $(BIN_DIR)/rename_13:   rename/rename_13.o
438         @echo Linking $@
439         @$(CC) $(LFLAGS) -o $@ rename/rename_13.o $(INCPATH) $(LIBS)
440
441 $(BIN_DIR)/rename_14:   rename/rename_14.o
442         @echo Linking $@
443         @$(CC) $(LFLAGS) -o $@ rename/rename_14.o $(INCPATH) $(LIBS)
444
445 $(BIN_DIR)/lseek_1:     lseek/lseek_1.o
446         @echo Linking $@
447         @$(CC) $(LFLAGS) -o $@ lseek/lseek_1.o $(INCPATH) $(LIBS)
448
449 $(BIN_DIR)/lseek_2:     lseek/lseek_2.o
450         @echo Linking $@
451         @$(CC) $(LFLAGS) -o $@ lseek/lseek_2.o $(INCPATH) $(LIBS)
452
453 $(BIN_DIR)/lseek_3:     lseek/lseek_3.o
454         @echo Linking $@
455         @$(CC) $(LFLAGS) -o $@ lseek/lseek_3.o $(INCPATH) $(LIBS)
456
457 $(BIN_DIR)/lseek_4:     lseek/lseek_4.o
458         @echo Linking $@
459         @$(CC) $(LFLAGS) -o $@ lseek/lseek_4.o $(INCPATH) $(LIBS)
460
461 $(BIN_DIR)/lseek_5:     lseek/lseek_5.o
462         @echo Linking $@
463         @$(CC) $(LFLAGS) -o $@ lseek/lseek_5.o $(INCPATH) $(LIBS)
464
465 $(BIN_DIR)/lseek_6:     lseek/lseek_6.o
466         @echo Linking $@
467         @$(CC) $(LFLAGS) -o $@ lseek/lseek_6.o $(INCPATH) $(LIBS)
468
469 $(BIN_DIR)/lseek_7:     lseek/lseek_7.o
470         @echo Linking $@
471         @$(CC) $(LFLAGS) -o $@ lseek/lseek_7.o $(INCPATH) $(LIBS)
472
473 $(BIN_DIR)/lseek_8:     lseek/lseek_8.o
474         @echo Linking $@
475         @$(CC) $(LFLAGS) -o $@ lseek/lseek_8.o $(INCPATH) $(LIBS)
476
477 $(BIN_DIR)/lseekdir_1:  lseekdir/lseekdir_1.o
478         @echo Linking $@
479         @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_1.o $(INCPATH) $(LIBS)
480
481 $(BIN_DIR)/lseekdir_2:  lseekdir/lseekdir_2.o
482         @echo Linking $@
483         @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_2.o $(INCPATH) $(LIBS)
484
485 $(BIN_DIR)/lseekdir_3:  lseekdir/lseekdir_3.o
486         @echo Linking $@
487         @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_3.o $(INCPATH) $(LIBS)
488
489 $(BIN_DIR)/lseekdir_4:  lseekdir/lseekdir_4.o
490         @echo Linking $@
491         @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_4.o $(INCPATH) $(LIBS)
492
493 $(BIN_DIR)/lseekdir_5:  lseekdir/lseekdir_5.o
494         @echo Linking $@
495         @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_5.o $(INCPATH) $(LIBS)
496
497 $(BIN_DIR)/lseekdir_6:  lseekdir/lseekdir_6.o
498         @echo Linking $@
499         @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_6.o $(INCPATH) $(LIBS)
500
501 $(BIN_DIR)/stat_1:      stat/stat_1.o
502         @echo Linking $@
503         @$(CC) $(LFLAGS) -o $@ stat/stat_1.o $(INCPATH) $(LIBS)
504
505 $(BIN_DIR)/stat_2:      stat/stat_2.o
506         @echo Linking $@
507         @$(CC) $(LFLAGS) -o $@ stat/stat_2.o $(INCPATH) $(LIBS)
508
509 $(BIN_DIR)/stat_3:      stat/stat_3.o
510         @echo Linking $@
511         @$(CC) $(LFLAGS) -o $@ stat/stat_3.o $(INCPATH) $(LIBS)
512
513 $(BIN_DIR)/stat_4:      stat/stat_4.o
514         @echo Linking $@
515         @$(CC) $(LFLAGS) -o $@ stat/stat_4.o $(INCPATH) $(LIBS)
516
517 $(BIN_DIR)/stat_5:      stat/stat_5.o
518         @echo Linking $@
519         @$(CC) $(LFLAGS) -o $@ stat/stat_5.o $(INCPATH) $(LIBS)
520
521 $(BIN_DIR)/stat_6:      stat/stat_6.o
522         @echo Linking $@
523         @$(CC) $(LFLAGS) -o $@ stat/stat_6.o $(INCPATH) $(LIBS)
524
525 $(BIN_DIR)/stat_k:      stat/stat_k.o
526         @echo Linking $@
527         @$(CC) $(LFLAGS) -o $@ stat/stat_k.o $(INCPATH) $(LIBS)
528
529 $(BIN_DIR)/getdents_1:  getdents/getdents_1.o
530         @echo Linking $@
531         @$(CC) $(LFLAGS) -o $@ getdents/getdents_1.o $(INCPATH) $(LIBS)
532
533 $(BIN_DIR)/getdents_2:  getdents/getdents_2.o
534         @echo Linking $@
535         @$(CC) $(LFLAGS) -o $@ getdents/getdents_2.o $(INCPATH) $(LIBS)
536
537 $(BIN_DIR)/getdents_3:  getdents/getdents_3.o
538         @echo Linking $@
539         @$(CC) $(LFLAGS) -o $@ getdents/getdents_3.o $(INCPATH) $(LIBS)
540
541 $(BIN_DIR)/getdents_4:  getdents/getdents_4.o
542         @echo Linking $@
543         @$(CC) $(LFLAGS) -o $@ getdents/getdents_4.o $(INCPATH) $(LIBS)
544
545 $(BIN_DIR)/getdents_5:  getdents/getdents_5.o
546         @echo Linking $@
547         @$(CC) $(LFLAGS) -o $@ getdents/getdents_5.o $(INCPATH) $(LIBS)
548
549 $(BIN_DIR)/creat_1:     creat/creat_1.o
550         @echo Linking $@
551         @$(CC) $(LFLAGS) -o $@ creat/creat_1.o $(INCPATH) $(LIBS)
552
553 $(BIN_DIR)/creat_2:     creat/creat_2.o
554         @echo Linking $@
555         @$(CC) $(LFLAGS) -o $@ creat/creat_2.o $(INCPATH) $(LIBS)
556
557 $(BIN_DIR)/creat_3:     creat/creat_3.o
558         @echo Linking $@
559         @$(CC) $(LFLAGS) -o $@ creat/creat_3.o $(INCPATH) $(LIBS)
560
561 $(BIN_DIR)/mkdir_1:     mkdir/mkdir_1.o
562         @echo Linking $@
563         @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_1.o $(INCPATH) $(LIBS)
564
565 $(BIN_DIR)/mkdir_2:     mkdir/mkdir_2.o
566         @echo Linking $@
567         @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_2.o $(INCPATH) $(LIBS)
568
569 $(BIN_DIR)/mkdir_3:     mkdir/mkdir_3.o
570         @echo Linking $@
571         @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_3.o $(INCPATH) $(LIBS)
572
573 $(BIN_DIR)/mkdir_4:     mkdir/mkdir_4.o
574         @echo Linking $@
575         @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_4.o $(INCPATH) $(LIBS)
576
577 $(BIN_DIR)/readdir_1:   readdir/readdir_1.o
578         @echo Linking $@
579         @$(CC) $(LFLAGS) -o $@ readdir/readdir_1.o $(INCPATH) $(LIBS)
580
581 $(BIN_DIR)/readdir_2:   readdir/readdir_2.o
582         @echo Linking $@
583         @$(CC) $(LFLAGS) -o $@ readdir/readdir_2.o $(INCPATH) $(LIBS)
584
585 $(BIN_DIR)/readdir_3:   readdir/readdir_3.o
586         @echo Linking $@
587         @$(CC) $(LFLAGS) -o $@ readdir/readdir_3.o $(INCPATH) $(LIBS)
588
589 $(BIN_DIR)/readdir_4:   readdir/readdir_4.o
590         @echo Linking $@
591         @$(CC) $(LFLAGS) -o $@ readdir/readdir_4.o $(INCPATH) $(LIBS)
592
593 $(BIN_DIR)/readdir_5:   readdir/readdir_5.o
594         @echo Linking $@
595         @$(CC) $(LFLAGS) -o $@ readdir/readdir_5.o $(INCPATH) $(LIBS)
596
597 $(BIN_DIR)/rmdir_1:     rmdir/rmdir_1.o
598         @echo Linking $@
599         @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_1.o $(INCPATH) $(LIBS)
600
601 $(BIN_DIR)/rmdir_2:     rmdir/rmdir_2.o
602         @echo Linking $@
603         @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_2.o $(INCPATH) $(LIBS)
604
605 $(BIN_DIR)/rmdir_3:     rmdir/rmdir_3.o
606         @echo Linking $@
607         @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_3.o $(INCPATH) $(LIBS)
608
609 $(BIN_DIR)/rmdir_4:     rmdir/rmdir_4.o
610         @echo Linking $@
611         @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_4.o $(INCPATH) $(LIBS)
612
613 $(BIN_DIR)/rmdir_5:     rmdir/rmdir_5.o
614         @echo Linking $@
615         @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_5.o $(INCPATH) $(LIBS)
616
617 $(BIN_DIR)/rmdir_6:     rmdir/rmdir_6.o
618         @echo Linking $@
619         @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_6.o $(INCPATH) $(LIBS)
620
621 $(BIN_DIR)/write_1:     write/write_1.o
622         @echo Linking $@
623         @$(CC) $(LFLAGS) -o $@ write/write_1.o $(INCPATH) $(LIBS)
624
625 $(BIN_DIR)/write_2:     write/write_2.o
626         @echo Linking $@
627         @$(CC) $(LFLAGS) -o $@ write/write_2.o $(INCPATH) $(LIBS)
628
629 $(BIN_DIR)/write_3:     write/write_3.o
630         @echo Linking $@
631         @$(CC) $(LFLAGS) -o $@ write/write_3.o $(INCPATH) $(LIBS)
632
633 $(BIN_DIR)/write_4:     write/write_4.o
634         @echo Linking $@
635         @$(CC) $(LFLAGS) -o $@ write/write_4.o $(INCPATH) $(LIBS)
636
637 $(BIN_DIR)/write_5:     write/write_5.o
638         @echo Linking $@
639         @$(CC) $(LFLAGS) -o $@ write/write_5.o $(INCPATH) $(LIBS)
640
641 $(BIN_DIR)/write_6:     write/write_6.o
642         @echo Linking $@
643         @$(CC) $(LFLAGS) -o $@ write/write_6.o $(INCPATH) $(LIBS)
644
645 $(BIN_DIR)/write_7:     write/write_7.o
646         @echo Linking $@
647         @$(CC) $(LFLAGS) -o $@ write/write_7.o $(INCPATH) $(LIBS)
648
649 $(BIN_DIR)/write_8:     write/write_8.o
650         @echo Linking $@
651         @$(CC) $(LFLAGS) -o $@ write/write_8.o $(INCPATH) $(LIBS)
652
653 $(BIN_DIR)/write_9:     write/write_9.o
654         @echo Linking $@
655         @$(CC) $(LFLAGS) -o $@ write/write_9.o $(INCPATH) $(LIBS)
656
657 $(BIN_DIR)/write_10:    write/write_10.o
658         @echo Linking $@
659         @$(CC) $(LFLAGS) -o $@ write/write_10.o $(INCPATH) $(LIBS)
660
661 $(BIN_DIR)/write_11:    write/write_11.o
662         @echo Linking $@
663         @$(CC) $(LFLAGS) -o $@ write/write_11.o $(INCPATH) $(LIBS)
664
665 $(BIN_DIR)/write_12:    write/write_12.o
666         @echo Linking $@
667         @$(CC) $(LFLAGS) -o $@ write/write_12.o $(INCPATH) $(LIBS)
668
669 $(BIN_DIR)/write_13:    write/write_13.o
670         @echo Linking $@
671         @$(CC) $(LFLAGS) -o $@ write/write_13.o $(INCPATH) $(LIBS)
672
673 $(BIN_DIR)/read_1:      read/read_1.o
674         @echo Linking $@
675         @$(CC) $(LFLAGS) -o $@ read/read_1.o $(INCPATH) $(LIBS)
676
677 $(BIN_DIR)/read_2:      read/read_2.o
678         @echo Linking $@
679         @$(CC) $(LFLAGS) -o $@ read/read_2.o $(INCPATH) $(LIBS)
680
681 $(BIN_DIR)/read_3:      read/read_3.o
682         @echo Linking $@
683         @$(CC) $(LFLAGS) -o $@ read/read_3.o $(INCPATH) $(LIBS)
684
685 $(BIN_DIR)/read_4:      read/read_4.o
686         @echo Linking $@
687         @$(CC) $(LFLAGS) -o $@ read/read_4.o $(INCPATH) $(LIBS)
688
689 $(BIN_DIR)/read_5:      read/read_5.o
690         @echo Linking $@
691         @$(CC) $(LFLAGS) -o $@ read/read_5.o $(INCPATH) $(LIBS)
692
693 $(BIN_DIR)/read_6:      read/read_6.o
694         @echo Linking $@
695         @$(CC) $(LFLAGS) -o $@ read/read_6.o $(INCPATH) $(LIBS)
696
697 $(BIN_DIR)/read_7:      read/read_7.o
698         @echo Linking $@
699         @$(CC) $(LFLAGS) -o $@ read/read_7.o $(INCPATH) $(LIBS)
700
701 $(BIN_DIR)/read_8:      read/read_8.o
702         @echo Linking $@
703         @$(CC) $(LFLAGS) -o $@ read/read_8.o $(INCPATH) $(LIBS)
704
705 $(BIN_DIR)/read_9:      read/read_9.o
706         @echo Linking $@
707         @$(CC) $(LFLAGS) -o $@ read/read_9.o $(INCPATH) $(LIBS)
708
709 $(BIN_DIR)/read_10:     read/read_10.o
710         @echo Linking $@
711         @$(CC) $(LFLAGS) -o $@ read/read_10.o $(INCPATH) $(LIBS)
712
713 $(BIN_DIR)/read_11:     read/read_11.o
714         @echo Linking $@
715         @$(CC) $(LFLAGS) -o $@ read/read_11.o $(INCPATH) $(LIBS)
716
717 $(BIN_DIR)/read_12:     read/read_12.o
718         @echo Linking $@
719         @$(CC) $(LFLAGS) -o $@ read/read_12.o $(INCPATH) $(LIBS)
720
721 $(BIN_DIR)/read_13:     read/read_13.o
722         @echo Linking $@
723         @$(CC) $(LFLAGS) -o $@ read/read_13.o $(INCPATH) $(LIBS)
724
725 $(BIN_DIR)/chmod_1:     chmod/chmod_1.o
726         @echo Linking $@
727         @dir=$(BIN_DIR) $(MAKEDIR)@
728         @$(CC) $(LFLAGS) -o $@ chmod/chmod_1.o $(INCPATH) $(LIBS)
729
730 $(BIN_DIR)/telldir_1:   telldir/telldir_1.o
731         @echo Linking $@
732         @dir=$(BIN_DIR) $(MAKEDIR)@
733         @$(CC) $(LFLAGS) -o $@ telldir/telldir_1.o $(INCPATH) $(LIBS)
734
735 $(BIN_DIR)/telldir_2:   telldir/telldir_2.o
736         @echo Linking $@
737         @dir=$(BIN_DIR) $(MAKEDIR)@
738         @$(CC) $(LFLAGS) -o $@ telldir/telldir_2.o $(INCPATH) $(LIBS)
739
740 $(BIN_DIR)/telldir_3:   telldir/telldir_3.o
741         @echo Linking $@
742         @dir=$(BIN_DIR) $(MAKEDIR)@
743         @$(CC) $(LFLAGS) -o $@ telldir/telldir_3.o $(INCPATH) $(LIBS)
744
745 $(BIN_DIR)/telldir_4:   telldir/telldir_4.o
746         @echo Linking $@
747         @dir=$(BIN_DIR) $(MAKEDIR)@
748         @$(CC) $(LFLAGS) -o $@ telldir/telldir_4.o $(INCPATH) $(LIBS)
749
750 $(BIN_DIR)/telldir_5:   telldir/telldir_5.o
751         @echo Linking $@
752         @dir=$(BIN_DIR) $(MAKEDIR)@
753         @$(CC) $(LFLAGS) -o $@ telldir/telldir_5.o $(INCPATH) $(LIBS)
754
755 $(BIN_DIR)/print_file_1:        print_file/print_file_1.o
756         @echo Linking $@
757         @dir=$(BIN_DIR) $(MAKEDIR)@
758         @$(CC) $(LFLAGS) -o $@ print_file/print_file_1.o $(INCPATH) $(LIBS)
759
760 $(BIN_DIR)/print_file_2:        print_file/print_file_2.o
761         @echo Linking $@
762         @dir=$(BIN_DIR) $(MAKEDIR)@
763         @$(CC) $(LFLAGS) -o $@ print_file/print_file_2.o $(INCPATH) $(LIBS)
764
765 $(BIN_DIR)/print_file_3:        print_file/print_file_3.o
766         @echo Linking $@
767         @dir=$(BIN_DIR) $(MAKEDIR)@
768         @$(CC) $(LFLAGS) -o $@ print_file/print_file_3.o $(INCPATH) $(LIBS)
769
770 $(BIN_DIR)/print_file_4:        print_file/print_file_4.o
771         @echo Linking $@
772         @dir=$(BIN_DIR) $(MAKEDIR)@
773         @$(CC) $(LFLAGS) -o $@ print_file/print_file_4.o $(INCPATH) $(LIBS)
774
775 $(BIN_DIR)/open_print_job_1:    open_print_job/open_print_job_1.o
776         @echo Linking $@
777         @dir=$(BIN_DIR) $(MAKEDIR)@
778         @$(CC) $(LFLAGS) -o $@ open_print_job/open_print_job_1.o $(INCPATH) $(LIBS)
779
780 $(BIN_DIR)/open_print_job_2:    open_print_job/open_print_job_2.o
781         @echo Linking $@
782         @dir=$(BIN_DIR) $(MAKEDIR)@
783         @$(CC) $(LFLAGS) -o $@ open_print_job/open_print_job_2.o $(INCPATH) $(LIBS)
784
785 $(BIN_DIR)/list_print_jobs_1:   list_print_jobs/list_print_jobs_1.o
786         @echo Linking $@
787         @dir=$(BIN_DIR) $(MAKEDIR)@
788         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_1.o $(INCPATH) $(LIBS)
789
790 $(BIN_DIR)/list_print_jobs_2:   list_print_jobs/list_print_jobs_2.o
791         @echo Linking $@
792         @dir=$(BIN_DIR) $(MAKEDIR)@
793         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_2.o $(INCPATH) $(LIBS)
794
795 $(BIN_DIR)/list_print_jobs_3:   list_print_jobs/list_print_jobs_3.o
796         @echo Linking $@
797         @dir=$(BIN_DIR) $(MAKEDIR)@
798         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_3.o $(INCPATH) $(LIBS)
799
800 $(BIN_DIR)/list_print_jobs_4:   list_print_jobs/list_print_jobs_4.o
801         @echo Linking $@
802         @dir=$(BIN_DIR) $(MAKEDIR)@
803         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_4.o $(INCPATH) $(LIBS)
804
805 $(BIN_DIR)/list_print_jobs_5:   list_print_jobs/list_print_jobs_5.o
806         @echo Linking $@
807         @dir=$(BIN_DIR) $(MAKEDIR)@
808         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_5.o $(INCPATH) $(LIBS)
809
810 $(BIN_DIR)/list_print_jobs_6:   list_print_jobs/list_print_jobs_6.o
811         @echo Linking $@
812         @dir=$(BIN_DIR) $(MAKEDIR)@
813         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_6.o $(INCPATH) $(LIBS)
814
815 $(BIN_DIR)/list_print_jobs_7:   list_print_jobs/list_print_jobs_7.o
816         @echo Linking $@
817         @dir=$(BIN_DIR) $(MAKEDIR)@
818         @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_7.o $(INCPATH) $(LIBS)
819
820 $(BIN_DIR)/unlink_print_job_1:  unlink_print_job/unlink_print_job_1.o
821         @echo Linking $@
822         @dir=$(BIN_DIR) $(MAKEDIR)@
823         @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_1.o $(INCPATH) $(LIBS)
824
825 $(BIN_DIR)/unlink_print_job_2:  unlink_print_job/unlink_print_job_2.o
826         @echo Linking $@
827         @dir=$(BIN_DIR) $(MAKEDIR)@
828         @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_2.o $(INCPATH) $(LIBS)
829
830 $(BIN_DIR)/unlink_print_job_3:  unlink_print_job/unlink_print_job_3.o
831         @echo Linking $@
832         @dir=$(BIN_DIR) $(MAKEDIR)@
833         @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_3.o $(INCPATH) $(LIBS)
834
835 $(BIN_DIR)/unlink_print_job_4:  unlink_print_job/unlink_print_job_4.o
836         @echo Linking $@
837         @dir=$(BIN_DIR) $(MAKEDIR)@
838         @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_4.o $(INCPATH) $(LIBS)
839
840 $(BIN_DIR)/unlink_print_job_5:  unlink_print_job/unlink_print_job_5.o
841         @echo Linking $@
842         @dir=$(BIN_DIR) $(MAKEDIR)@
843         @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_5.o $(INCPATH) $(LIBS)
844
845
846 clean:
847         @for i in $(SUB_DIRS); do \
848                  rm -f $$i/*.o; \
849         done
850
851         @rm -f $(GROUPS)
852         @rm -rf $(BIN_DIR)
853         @echo "Done"
854