pam_winbind: use libwbclient for WINBINDD_INFO.
[Samba.git] / testsuite / libsmbclient / src / Makefile
blob8b4658f7db396fc46c8ed407c20fe9db892cbeba
1 CC = gcc
2 CFLAGS = -Wall -W -O2 -g -I../../../source/include
3 LFLAGS = -L../../../source/bin
5 LIBS= -L/usr/lib -lsmbclient
6 INCPATH= -I. -I/usr/include -I./include
7 BIN_DIR=bin
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
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
21 G_INIT = $(BIN_DIR)/init_1 \
22 $(BIN_DIR)/init_2 \
23 $(BIN_DIR)/init_3 \
24 $(BIN_DIR)/init_4
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
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
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
53 G_CLOSE = $(BIN_DIR)/close_1 \
54 $(BIN_DIR)/close_2
56 G_OPENDIR = $(BIN_DIR)/opendir_1 \
57 $(BIN_DIR)/opendir_2 \
58 $(BIN_DIR)/opendir_3 \
59 $(BIN_DIR)/opendir_4
61 G_CLOSEDIR = $(BIN_DIR)/closedir_1 \
62 $(BIN_DIR)/closedir_2 \
63 $(BIN_DIR)/closedir_3 \
64 $(BIN_DIR)/closedir_4
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
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
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
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
104 G_GETDENTS = $(BIN_DIR)/getdents_1 \
105 $(BIN_DIR)/getdents_2 \
106 $(BIN_DIR)/getdents_3 \
107 $(BIN_DIR)/getdents_4 \
108 $(BIN_DIR)/getdents_5
110 G_CREAT = $(BIN_DIR)/creat_1 \
111 $(BIN_DIR)/creat_2 \
112 $(BIN_DIR)/creat_3
114 G_READ = $(BIN_DIR)/read_1 \
115 $(BIN_DIR)/read_2 \
116 $(BIN_DIR)/read_3 \
117 $(BIN_DIR)/read_4 \
118 $(BIN_DIR)/read_5 \
119 $(BIN_DIR)/read_6 \
120 $(BIN_DIR)/read_7 \
121 $(BIN_DIR)/read_8 \
122 $(BIN_DIR)/read_9 \
123 $(BIN_DIR)/read_10 \
124 $(BIN_DIR)/read_11 \
125 $(BIN_DIR)/read_12 \
126 $(BIN_DIR)/read_13
128 G_MKDIR = $(BIN_DIR)/mkdir_1 \
129 $(BIN_DIR)/mkdir_2 \
130 $(BIN_DIR)/mkdir_3 \
131 $(BIN_DIR)/mkdir_4
133 G_RMDIR = $(BIN_DIR)/rmdir_1 \
134 $(BIN_DIR)/rmdir_2 \
135 $(BIN_DIR)/rmdir_3 \
136 $(BIN_DIR)/rmdir_4 \
137 $(BIN_DIR)/rmdir_5 \
138 $(BIN_DIR)/rmdir_6
140 G_READDIR = $(BIN_DIR)/readdir_1 \
141 $(BIN_DIR)/readdir_2 \
142 $(BIN_DIR)/readdir_3 \
143 $(BIN_DIR)/readdir_4 \
144 $(BIN_DIR)/readdir_5
146 G_WRITE = $(BIN_DIR)/write_1 \
147 $(BIN_DIR)/write_2 \
148 $(BIN_DIR)/write_3 \
149 $(BIN_DIR)/write_4 \
150 $(BIN_DIR)/write_5 \
151 $(BIN_DIR)/write_6 \
152 $(BIN_DIR)/write_7 \
153 $(BIN_DIR)/write_8 \
154 $(BIN_DIR)/write_9 \
155 $(BIN_DIR)/write_10 \
156 $(BIN_DIR)/write_11 \
157 $(BIN_DIR)/write_12 \
158 $(BIN_DIR)/write_13
160 G_TELLDIR = $(BIN_DIR)/telldir_1 \
161 $(BIN_DIR)/telldir_2 \
162 $(BIN_DIR)/telldir_3 \
163 $(BIN_DIR)/telldir_4 \
164 $(BIN_DIR)/telldir_5
166 G_CHMOD = $(BIN_DIR)/chmod_1
168 G_CHOWN = $(BIN_DIR)/chown_1
170 G_PRINT_FILE = $(BIN_DIR)/print_file_1 \
171 $(BIN_DIR)/print_file_2 \
172 $(BIN_DIR)/print_file_3 \
173 $(BIN_DIR)/print_file_4
175 G_OPEN_PRINT_JOB = $(BIN_DIR)/open_print_job_1 \
176 $(BIN_DIR)/open_print_job_2
178 G_LIST_PRINT_JOBS = $(BIN_DIR)/list_print_jobs_1 \
179 $(BIN_DIR)/list_print_jobs_2 \
180 $(BIN_DIR)/list_print_jobs_3 \
181 $(BIN_DIR)/list_print_jobs_4 \
182 $(BIN_DIR)/list_print_jobs_5 \
183 $(BIN_DIR)/list_print_jobs_6 \
184 $(BIN_DIR)/list_print_jobs_7
186 G_UNLINK_PRINT_JOB = $(BIN_DIR)/unlink_print_job_1 \
187 $(BIN_DIR)/unlink_print_job_2 \
188 $(BIN_DIR)/unlink_print_job_3 \
189 $(BIN_DIR)/unlink_print_job_4 \
190 $(BIN_DIR)/unlink_print_job_5
192 GROUPS= $(G_CHMOD) $(G_CHOWN) $(G_CLOSE) $(G_CLOSEDIR) $(G_CREAT) $(G_FSTAT)\
193 $(G_GETDENTS) $(G_INIT) $(G_LIST_PRINT_JOBS) $(G_LSEEK) $(G_LSEEKDIR) \
194 $(G_MKDIR) $(G_OPEN) $(G_OPENDIR) $(G_OPEN_PRINT_JOB) $(G_PRINT_FILE)\
195 $(G_READ) $(G_READDIR) $(G_RENAME) $(G_RMDIR) $(G_STAT) $(G_TELLDIR) $(G_UNLINK) \
196 $(G_UNLINK_PRINT_JOB) $(G_WRITE)
198 .c.o:
199 @echo Compiling $*.c
200 @$(CC) -c $(CFLAGS) -o $@ $(INCPATH) $<
203 all: $(GROUPS)
205 init: $(G_INIT)
206 fstat: $(G_FSTAT)
207 open: $(G_OPEN)
208 unlink: $(G_UNLINK)
209 chown: $(G_CHOWN)
210 close: $(G_CLOSE)
211 opendir: $(G_OPENDIR)
212 closedir: $(G_CLOSEDIR)
213 rename: $(G_RENAME)
214 readdir: $(G_READDIR)
215 lseek: $(G_LSEEK)
216 lseekdir: $(G_LSEEKDIR)
217 stat: $(G_STAT)
218 getdents: $(G_GETDENTS)
219 creat: $(G_CREAT)
220 read: $(G_READ)
221 mkdir: $(G_MKDIR)
222 rmdir: $(G_RMDIR)
223 write: $(G_WRITE)
224 chmod: $(G_CHMOD)
225 telldir: $(G_TELLDIR)
226 print_file: $(G_PRINT_FILE)
227 open_print_job: $(G_OPEN_PRINT_JOB)
228 list_print_jobs: $(G_LIST_PRINT_JOBS)
229 unlink_print_job: $(G_UNLINK_PRINT_JOB)
232 $(BIN_DIR)/testsmbc: testsmbc.o
233 @echo Linking $@
234 @$(CC) $(LFLAGS) -o $@ testsmbc.o $(INCPATH) $(LIBS)
236 $(BIN_DIR)/init_1: init/init_1.o
237 @echo Linking $@
238 @$(CC) $(LFLAGS) -o $@ init/init_1.o $(INCPATH) $(LIBS)
240 $(BIN_DIR)/init_2: init/init_2.o
241 @echo Linking $@
242 @$(CC) $(LFLAGS) -o $@ init/init_2.o $(INCPATH) $(LIBS)
244 $(BIN_DIR)/init_3: init/init_3.o
245 @echo Linking $@
246 @$(CC) $(LFLAGS) -o $@ init/init_3.o $(INCPATH) $(LIBS)
248 $(BIN_DIR)/init_4: init/init_4.o
249 @echo Linking $@
250 @$(CC) $(LFLAGS) -o $@ init/init_4.o $(INCPATH) $(LIBS)
252 $(BIN_DIR)/fstat_1: fstat/fstat_1.o
253 @echo Linking $@
254 @$(CC) $(LFLAGS) -o $@ fstat/fstat_1.o $(INCPATH) $(LIBS)
256 $(BIN_DIR)/fstat_2: fstat/fstat_2.o
257 @echo Linking $@
258 @$(CC) $(LFLAGS) -o $@ fstat/fstat_2.o $(INCPATH) $(LIBS)
260 $(BIN_DIR)/fstat_3: fstat/fstat_3.o
261 @echo Linking $@
262 @$(CC) $(LFLAGS) -o $@ fstat/fstat_3.o $(INCPATH) $(LIBS)
264 $(BIN_DIR)/fstat_4: fstat/fstat_4.o
265 @echo Linking $@
266 @$(CC) $(LFLAGS) -o $@ fstat/fstat_4.o $(INCPATH) $(LIBS)
268 $(BIN_DIR)/fstat_5: fstat/fstat_5.o
269 @echo Linking $@
270 @$(CC) $(LFLAGS) -o $@ fstat/fstat_5.o $(INCPATH) $(LIBS)
272 $(BIN_DIR)/fstat_6: fstat/fstat_6.o
273 @echo Linking $@
274 @$(CC) $(LFLAGS) -o $@ fstat/fstat_6.o $(INCPATH) $(LIBS)
276 $(BIN_DIR)/open_1: open/open_1.o
277 @echo Linking $@
278 @$(CC) $(LFLAGS) -o $@ open/open_1.o $(INCPATH) $(LIBS)
280 $(BIN_DIR)/open_2: open/open_2.o
281 @echo Linking $@
282 @$(CC) $(LFLAGS) -o $@ open/open_2.o $(INCPATH) $(LIBS)
284 $(BIN_DIR)/open_3: open/open_3.o
285 @echo Linking $@
286 @$(CC) $(LFLAGS) -o $@ open/open_3.o $(INCPATH) $(LIBS)
288 $(BIN_DIR)/open_4: open/open_4.o
289 @echo Linking $@
290 @$(CC) $(LFLAGS) -o $@ open/open_4.o $(INCPATH) $(LIBS)
292 $(BIN_DIR)/open_5: open/open_5.o
293 @echo Linking $@
294 @$(CC) $(LFLAGS) -o $@ open/open_5.o $(INCPATH) $(LIBS)
296 $(BIN_DIR)/unlink_1: unlink/unlink_1.o
297 @echo Linking $@
298 @$(CC) $(LFLAGS) -o $@ unlink/unlink_1.o $(INCPATH) $(LIBS)
300 $(BIN_DIR)/unlink_2: unlink/unlink_2.o
301 @echo Linking $@
302 @$(CC) $(LFLAGS) -o $@ unlink/unlink_2.o $(INCPATH) $(LIBS)
304 $(BIN_DIR)/unlink_3: unlink/unlink_3.o
305 @echo Linking $@
306 @$(CC) $(LFLAGS) -o $@ unlink/unlink_3.o $(INCPATH) $(LIBS)
308 $(BIN_DIR)/unlink_4: unlink/unlink_4.o
309 @echo Linking $@
310 @$(CC) $(LFLAGS) -o $@ unlink/unlink_4.o $(INCPATH) $(LIBS)
312 $(BIN_DIR)/unlink_5: unlink/unlink_5.o
313 @echo Linking $@
314 @$(CC) $(LFLAGS) -o $@ unlink/unlink_5.o $(INCPATH) $(LIBS)
316 $(BIN_DIR)/unlink_6: unlink/unlink_6.o
317 @echo Linking $@
318 @$(CC) $(LFLAGS) -o $@ unlink/unlink_6.o $(INCPATH) $(LIBS)
320 $(BIN_DIR)/unlink_7: unlink/unlink_7.o
321 @echo Linking $@
322 @$(CC) $(LFLAGS) -o $@ unlink/unlink_7.o $(INCPATH) $(LIBS)
324 $(BIN_DIR)/unlink_8: unlink/unlink_8.o
325 @echo Linking $@
326 @$(CC) $(LFLAGS) -o $@ unlink/unlink_8.o $(INCPATH) $(LIBS)
328 $(BIN_DIR)/unlink_9: unlink/unlink_9.o
329 @echo Linking $@
330 @$(CC) $(LFLAGS) -o $@ unlink/unlink_9.o $(INCPATH) $(LIBS)
332 $(BIN_DIR)/unlink_10: unlink/unlink_10.o
333 @echo Linking $@
334 @$(CC) $(LFLAGS) -o $@ unlink/unlink_10.o $(INCPATH) $(LIBS)
336 $(BIN_DIR)/unlink_11: unlink/unlink_11.o
337 @echo Linking $@
338 @$(CC) $(LFLAGS) -o $@ unlink/unlink_11.o $(INCPATH) $(LIBS)
340 $(BIN_DIR)/unlink_12: unlink/unlink_12.o
341 @echo Linking $@
342 @$(CC) $(LFLAGS) -o $@ unlink/unlink_12.o $(INCPATH) $(LIBS)
344 $(BIN_DIR)/chown_1: chown/chown_1.o
345 @echo Linking $@
346 @$(CC) $(LFLAGS) -o $@ chown/chown_1.o $(INCPATH) $(LIBS)
348 $(BIN_DIR)/close_1: close/close_1.o
349 @echo Linking $@
350 @$(CC) $(LFLAGS) -o $@ close/close_1.o $(INCPATH) $(LIBS)
352 $(BIN_DIR)/close_2: close/close_2.o
353 @echo Linking $@
354 @$(CC) $(LFLAGS) -o $@ close/close_2.o $(INCPATH) $(LIBS)
356 $(BIN_DIR)/opendir_1: opendir/opendir_1.o
357 @echo Linking $@
358 @$(CC) $(LFLAGS) -o $@ opendir/opendir_1.o $(INCPATH) $(LIBS)
360 $(BIN_DIR)/opendir_2: opendir/opendir_2.o
361 @echo Linking $@
362 @$(CC) $(LFLAGS) -o $@ opendir/opendir_2.o $(INCPATH) $(LIBS)
364 $(BIN_DIR)/opendir_3: opendir/opendir_3.o
365 @echo Linking $@
366 @$(CC) $(LFLAGS) -o $@ opendir/opendir_3.o $(INCPATH) $(LIBS)
368 $(BIN_DIR)/opendir_4: opendir/opendir_4.o
369 @echo Linking $@
370 @$(CC) $(LFLAGS) -o $@ opendir/opendir_4.o $(INCPATH) $(LIBS)
372 $(BIN_DIR)/closedir_1: closedir/closedir_1.o
373 @echo Linking $@
374 @$(CC) $(LFLAGS) -o $@ closedir/closedir_1.o $(INCPATH) $(LIBS)
376 $(BIN_DIR)/closedir_2: closedir/closedir_2.o
377 @echo Linking $@
378 @$(CC) $(LFLAGS) -o $@ closedir/closedir_2.o $(INCPATH) $(LIBS)
380 $(BIN_DIR)/closedir_3: closedir/closedir_3.o
381 @echo Linking $@
382 @$(CC) $(LFLAGS) -o $@ closedir/closedir_3.o $(INCPATH) $(LIBS)
384 $(BIN_DIR)/closedir_4: closedir/closedir_4.o
385 @echo Linking $@
386 @$(CC) $(LFLAGS) -o $@ closedir/closedir_4.o $(INCPATH) $(LIBS)
388 $(BIN_DIR)/rename_1: rename/rename_1.o
389 @echo Linking $@
390 @$(CC) $(LFLAGS) -o $@ rename/rename_1.o $(INCPATH) $(LIBS)
392 $(BIN_DIR)/rename_2: rename/rename_2.o
393 @echo Linking $@
394 @$(CC) $(LFLAGS) -o $@ rename/rename_2.o $(INCPATH) $(LIBS)
396 $(BIN_DIR)/rename_3: rename/rename_3.o
397 @echo Linking $@
398 @$(CC) $(LFLAGS) -o $@ rename/rename_3.o $(INCPATH) $(LIBS)
400 $(BIN_DIR)/rename_4: rename/rename_4.o
401 @echo Linking $@
402 @$(CC) $(LFLAGS) -o $@ rename/rename_4.o $(INCPATH) $(LIBS)
404 $(BIN_DIR)/rename_5: rename/rename_5.o
405 @echo Linking $@
406 @$(CC) $(LFLAGS) -o $@ rename/rename_5.o $(INCPATH) $(LIBS)
408 $(BIN_DIR)/rename_6: rename/rename_6.o
409 @echo Linking $@
410 @$(CC) $(LFLAGS) -o $@ rename/rename_6.o $(INCPATH) $(LIBS)
412 $(BIN_DIR)/rename_7: rename/rename_7.o
413 @echo Linking $@
414 @$(CC) $(LFLAGS) -o $@ rename/rename_7.o $(INCPATH) $(LIBS)
416 $(BIN_DIR)/rename_8: rename/rename_8.o
417 @echo Linking $@
418 @$(CC) $(LFLAGS) -o $@ rename/rename_8.o $(INCPATH) $(LIBS)
420 $(BIN_DIR)/rename_9: rename/rename_9.o
421 @echo Linking $@
422 @$(CC) $(LFLAGS) -o $@ rename/rename_9.o $(INCPATH) $(LIBS)
424 $(BIN_DIR)/rename_10: rename/rename_10.o
425 @echo Linking $@
426 @$(CC) $(LFLAGS) -o $@ rename/rename_10.o $(INCPATH) $(LIBS)
428 $(BIN_DIR)/rename_11: rename/rename_11.o
429 @echo Linking $@
430 @$(CC) $(LFLAGS) -o $@ rename/rename_11.o $(INCPATH) $(LIBS)
432 $(BIN_DIR)/rename_12: rename/rename_12.o
433 @echo Linking $@
434 @$(CC) $(LFLAGS) -o $@ rename/rename_12.o $(INCPATH) $(LIBS)
436 $(BIN_DIR)/rename_13: rename/rename_13.o
437 @echo Linking $@
438 @$(CC) $(LFLAGS) -o $@ rename/rename_13.o $(INCPATH) $(LIBS)
440 $(BIN_DIR)/rename_14: rename/rename_14.o
441 @echo Linking $@
442 @$(CC) $(LFLAGS) -o $@ rename/rename_14.o $(INCPATH) $(LIBS)
444 $(BIN_DIR)/lseek_1: lseek/lseek_1.o
445 @echo Linking $@
446 @$(CC) $(LFLAGS) -o $@ lseek/lseek_1.o $(INCPATH) $(LIBS)
448 $(BIN_DIR)/lseek_2: lseek/lseek_2.o
449 @echo Linking $@
450 @$(CC) $(LFLAGS) -o $@ lseek/lseek_2.o $(INCPATH) $(LIBS)
452 $(BIN_DIR)/lseek_3: lseek/lseek_3.o
453 @echo Linking $@
454 @$(CC) $(LFLAGS) -o $@ lseek/lseek_3.o $(INCPATH) $(LIBS)
456 $(BIN_DIR)/lseek_4: lseek/lseek_4.o
457 @echo Linking $@
458 @$(CC) $(LFLAGS) -o $@ lseek/lseek_4.o $(INCPATH) $(LIBS)
460 $(BIN_DIR)/lseek_5: lseek/lseek_5.o
461 @echo Linking $@
462 @$(CC) $(LFLAGS) -o $@ lseek/lseek_5.o $(INCPATH) $(LIBS)
464 $(BIN_DIR)/lseek_6: lseek/lseek_6.o
465 @echo Linking $@
466 @$(CC) $(LFLAGS) -o $@ lseek/lseek_6.o $(INCPATH) $(LIBS)
468 $(BIN_DIR)/lseek_7: lseek/lseek_7.o
469 @echo Linking $@
470 @$(CC) $(LFLAGS) -o $@ lseek/lseek_7.o $(INCPATH) $(LIBS)
472 $(BIN_DIR)/lseek_8: lseek/lseek_8.o
473 @echo Linking $@
474 @$(CC) $(LFLAGS) -o $@ lseek/lseek_8.o $(INCPATH) $(LIBS)
476 $(BIN_DIR)/lseekdir_1: lseekdir/lseekdir_1.o
477 @echo Linking $@
478 @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_1.o $(INCPATH) $(LIBS)
480 $(BIN_DIR)/lseekdir_2: lseekdir/lseekdir_2.o
481 @echo Linking $@
482 @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_2.o $(INCPATH) $(LIBS)
484 $(BIN_DIR)/lseekdir_3: lseekdir/lseekdir_3.o
485 @echo Linking $@
486 @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_3.o $(INCPATH) $(LIBS)
488 $(BIN_DIR)/lseekdir_4: lseekdir/lseekdir_4.o
489 @echo Linking $@
490 @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_4.o $(INCPATH) $(LIBS)
492 $(BIN_DIR)/lseekdir_5: lseekdir/lseekdir_5.o
493 @echo Linking $@
494 @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_5.o $(INCPATH) $(LIBS)
496 $(BIN_DIR)/lseekdir_6: lseekdir/lseekdir_6.o
497 @echo Linking $@
498 @$(CC) $(LFLAGS) -o $@ lseekdir/lseekdir_6.o $(INCPATH) $(LIBS)
500 $(BIN_DIR)/stat_1: stat/stat_1.o
501 @echo Linking $@
502 @$(CC) $(LFLAGS) -o $@ stat/stat_1.o $(INCPATH) $(LIBS)
504 $(BIN_DIR)/stat_2: stat/stat_2.o
505 @echo Linking $@
506 @$(CC) $(LFLAGS) -o $@ stat/stat_2.o $(INCPATH) $(LIBS)
508 $(BIN_DIR)/stat_3: stat/stat_3.o
509 @echo Linking $@
510 @$(CC) $(LFLAGS) -o $@ stat/stat_3.o $(INCPATH) $(LIBS)
512 $(BIN_DIR)/stat_4: stat/stat_4.o
513 @echo Linking $@
514 @$(CC) $(LFLAGS) -o $@ stat/stat_4.o $(INCPATH) $(LIBS)
516 $(BIN_DIR)/stat_5: stat/stat_5.o
517 @echo Linking $@
518 @$(CC) $(LFLAGS) -o $@ stat/stat_5.o $(INCPATH) $(LIBS)
520 $(BIN_DIR)/stat_6: stat/stat_6.o
521 @echo Linking $@
522 @$(CC) $(LFLAGS) -o $@ stat/stat_6.o $(INCPATH) $(LIBS)
524 $(BIN_DIR)/getdents_1: getdents/getdents_1.o
525 @echo Linking $@
526 @$(CC) $(LFLAGS) -o $@ getdents/getdents_1.o $(INCPATH) $(LIBS)
528 $(BIN_DIR)/getdents_2: getdents/getdents_2.o
529 @echo Linking $@
530 @$(CC) $(LFLAGS) -o $@ getdents/getdents_2.o $(INCPATH) $(LIBS)
532 $(BIN_DIR)/getdents_3: getdents/getdents_3.o
533 @echo Linking $@
534 @$(CC) $(LFLAGS) -o $@ getdents/getdents_3.o $(INCPATH) $(LIBS)
536 $(BIN_DIR)/getdents_4: getdents/getdents_4.o
537 @echo Linking $@
538 @$(CC) $(LFLAGS) -o $@ getdents/getdents_4.o $(INCPATH) $(LIBS)
540 $(BIN_DIR)/getdents_5: getdents/getdents_5.o
541 @echo Linking $@
542 @$(CC) $(LFLAGS) -o $@ getdents/getdents_5.o $(INCPATH) $(LIBS)
544 $(BIN_DIR)/creat_1: creat/creat_1.o
545 @echo Linking $@
546 @$(CC) $(LFLAGS) -o $@ creat/creat_1.o $(INCPATH) $(LIBS)
548 $(BIN_DIR)/creat_2: creat/creat_2.o
549 @echo Linking $@
550 @$(CC) $(LFLAGS) -o $@ creat/creat_2.o $(INCPATH) $(LIBS)
552 $(BIN_DIR)/creat_3: creat/creat_3.o
553 @echo Linking $@
554 @$(CC) $(LFLAGS) -o $@ creat/creat_3.o $(INCPATH) $(LIBS)
556 $(BIN_DIR)/mkdir_1: mkdir/mkdir_1.o
557 @echo Linking $@
558 @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_1.o $(INCPATH) $(LIBS)
560 $(BIN_DIR)/mkdir_2: mkdir/mkdir_2.o
561 @echo Linking $@
562 @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_2.o $(INCPATH) $(LIBS)
564 $(BIN_DIR)/mkdir_3: mkdir/mkdir_3.o
565 @echo Linking $@
566 @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_3.o $(INCPATH) $(LIBS)
568 $(BIN_DIR)/mkdir_4: mkdir/mkdir_4.o
569 @echo Linking $@
570 @$(CC) $(LFLAGS) -o $@ mkdir/mkdir_4.o $(INCPATH) $(LIBS)
572 $(BIN_DIR)/readdir_1: readdir/readdir_1.o
573 @echo Linking $@
574 @$(CC) $(LFLAGS) -o $@ readdir/readdir_1.o $(INCPATH) $(LIBS)
576 $(BIN_DIR)/readdir_2: readdir/readdir_2.o
577 @echo Linking $@
578 @$(CC) $(LFLAGS) -o $@ readdir/readdir_2.o $(INCPATH) $(LIBS)
580 $(BIN_DIR)/readdir_3: readdir/readdir_3.o
581 @echo Linking $@
582 @$(CC) $(LFLAGS) -o $@ readdir/readdir_3.o $(INCPATH) $(LIBS)
584 $(BIN_DIR)/readdir_4: readdir/readdir_4.o
585 @echo Linking $@
586 @$(CC) $(LFLAGS) -o $@ readdir/readdir_4.o $(INCPATH) $(LIBS)
588 $(BIN_DIR)/readdir_5: readdir/readdir_5.o
589 @echo Linking $@
590 @$(CC) $(LFLAGS) -o $@ readdir/readdir_5.o $(INCPATH) $(LIBS)
592 $(BIN_DIR)/rmdir_1: rmdir/rmdir_1.o
593 @echo Linking $@
594 @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_1.o $(INCPATH) $(LIBS)
596 $(BIN_DIR)/rmdir_2: rmdir/rmdir_2.o
597 @echo Linking $@
598 @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_2.o $(INCPATH) $(LIBS)
600 $(BIN_DIR)/rmdir_3: rmdir/rmdir_3.o
601 @echo Linking $@
602 @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_3.o $(INCPATH) $(LIBS)
604 $(BIN_DIR)/rmdir_4: rmdir/rmdir_4.o
605 @echo Linking $@
606 @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_4.o $(INCPATH) $(LIBS)
608 $(BIN_DIR)/rmdir_5: rmdir/rmdir_5.o
609 @echo Linking $@
610 @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_5.o $(INCPATH) $(LIBS)
612 $(BIN_DIR)/rmdir_6: rmdir/rmdir_6.o
613 @echo Linking $@
614 @$(CC) $(LFLAGS) -o $@ rmdir/rmdir_6.o $(INCPATH) $(LIBS)
616 $(BIN_DIR)/write_1: write/write_1.o
617 @echo Linking $@
618 @$(CC) $(LFLAGS) -o $@ write/write_1.o $(INCPATH) $(LIBS)
620 $(BIN_DIR)/write_2: write/write_2.o
621 @echo Linking $@
622 @$(CC) $(LFLAGS) -o $@ write/write_2.o $(INCPATH) $(LIBS)
624 $(BIN_DIR)/write_3: write/write_3.o
625 @echo Linking $@
626 @$(CC) $(LFLAGS) -o $@ write/write_3.o $(INCPATH) $(LIBS)
628 $(BIN_DIR)/write_4: write/write_4.o
629 @echo Linking $@
630 @$(CC) $(LFLAGS) -o $@ write/write_4.o $(INCPATH) $(LIBS)
632 $(BIN_DIR)/write_5: write/write_5.o
633 @echo Linking $@
634 @$(CC) $(LFLAGS) -o $@ write/write_5.o $(INCPATH) $(LIBS)
636 $(BIN_DIR)/write_6: write/write_6.o
637 @echo Linking $@
638 @$(CC) $(LFLAGS) -o $@ write/write_6.o $(INCPATH) $(LIBS)
640 $(BIN_DIR)/write_7: write/write_7.o
641 @echo Linking $@
642 @$(CC) $(LFLAGS) -o $@ write/write_7.o $(INCPATH) $(LIBS)
644 $(BIN_DIR)/write_8: write/write_8.o
645 @echo Linking $@
646 @$(CC) $(LFLAGS) -o $@ write/write_8.o $(INCPATH) $(LIBS)
648 $(BIN_DIR)/write_9: write/write_9.o
649 @echo Linking $@
650 @$(CC) $(LFLAGS) -o $@ write/write_9.o $(INCPATH) $(LIBS)
652 $(BIN_DIR)/write_10: write/write_10.o
653 @echo Linking $@
654 @$(CC) $(LFLAGS) -o $@ write/write_10.o $(INCPATH) $(LIBS)
656 $(BIN_DIR)/write_11: write/write_11.o
657 @echo Linking $@
658 @$(CC) $(LFLAGS) -o $@ write/write_11.o $(INCPATH) $(LIBS)
660 $(BIN_DIR)/write_12: write/write_12.o
661 @echo Linking $@
662 @$(CC) $(LFLAGS) -o $@ write/write_12.o $(INCPATH) $(LIBS)
664 $(BIN_DIR)/write_13: write/write_13.o
665 @echo Linking $@
666 @$(CC) $(LFLAGS) -o $@ write/write_13.o $(INCPATH) $(LIBS)
668 $(BIN_DIR)/read_1: read/read_1.o
669 @echo Linking $@
670 @$(CC) $(LFLAGS) -o $@ read/read_1.o $(INCPATH) $(LIBS)
672 $(BIN_DIR)/read_2: read/read_2.o
673 @echo Linking $@
674 @$(CC) $(LFLAGS) -o $@ read/read_2.o $(INCPATH) $(LIBS)
676 $(BIN_DIR)/read_3: read/read_3.o
677 @echo Linking $@
678 @$(CC) $(LFLAGS) -o $@ read/read_3.o $(INCPATH) $(LIBS)
680 $(BIN_DIR)/read_4: read/read_4.o
681 @echo Linking $@
682 @$(CC) $(LFLAGS) -o $@ read/read_4.o $(INCPATH) $(LIBS)
684 $(BIN_DIR)/read_5: read/read_5.o
685 @echo Linking $@
686 @$(CC) $(LFLAGS) -o $@ read/read_5.o $(INCPATH) $(LIBS)
688 $(BIN_DIR)/read_6: read/read_6.o
689 @echo Linking $@
690 @$(CC) $(LFLAGS) -o $@ read/read_6.o $(INCPATH) $(LIBS)
692 $(BIN_DIR)/read_7: read/read_7.o
693 @echo Linking $@
694 @$(CC) $(LFLAGS) -o $@ read/read_7.o $(INCPATH) $(LIBS)
696 $(BIN_DIR)/read_8: read/read_8.o
697 @echo Linking $@
698 @$(CC) $(LFLAGS) -o $@ read/read_8.o $(INCPATH) $(LIBS)
700 $(BIN_DIR)/read_9: read/read_9.o
701 @echo Linking $@
702 @$(CC) $(LFLAGS) -o $@ read/read_9.o $(INCPATH) $(LIBS)
704 $(BIN_DIR)/read_10: read/read_10.o
705 @echo Linking $@
706 @$(CC) $(LFLAGS) -o $@ read/read_10.o $(INCPATH) $(LIBS)
708 $(BIN_DIR)/read_11: read/read_11.o
709 @echo Linking $@
710 @$(CC) $(LFLAGS) -o $@ read/read_11.o $(INCPATH) $(LIBS)
712 $(BIN_DIR)/read_12: read/read_12.o
713 @echo Linking $@
714 @$(CC) $(LFLAGS) -o $@ read/read_12.o $(INCPATH) $(LIBS)
716 $(BIN_DIR)/read_13: read/read_13.o
717 @echo Linking $@
718 @$(CC) $(LFLAGS) -o $@ read/read_13.o $(INCPATH) $(LIBS)
720 $(BIN_DIR)/chmod_1: chmod/chmod_1.o
721 @echo Linking $@
722 @dir=$(BIN_DIR) $(MAKEDIR)@
723 @$(CC) $(LFLAGS) -o $@ chmod/chmod_1.o $(INCPATH) $(LIBS)
725 $(BIN_DIR)/telldir_1: telldir/telldir_1.o
726 @echo Linking $@
727 @dir=$(BIN_DIR) $(MAKEDIR)@
728 @$(CC) $(LFLAGS) -o $@ telldir/telldir_1.o $(INCPATH) $(LIBS)
730 $(BIN_DIR)/telldir_2: telldir/telldir_2.o
731 @echo Linking $@
732 @dir=$(BIN_DIR) $(MAKEDIR)@
733 @$(CC) $(LFLAGS) -o $@ telldir/telldir_2.o $(INCPATH) $(LIBS)
735 $(BIN_DIR)/telldir_3: telldir/telldir_3.o
736 @echo Linking $@
737 @dir=$(BIN_DIR) $(MAKEDIR)@
738 @$(CC) $(LFLAGS) -o $@ telldir/telldir_3.o $(INCPATH) $(LIBS)
740 $(BIN_DIR)/telldir_4: telldir/telldir_4.o
741 @echo Linking $@
742 @dir=$(BIN_DIR) $(MAKEDIR)@
743 @$(CC) $(LFLAGS) -o $@ telldir/telldir_4.o $(INCPATH) $(LIBS)
745 $(BIN_DIR)/telldir_5: telldir/telldir_5.o
746 @echo Linking $@
747 @dir=$(BIN_DIR) $(MAKEDIR)@
748 @$(CC) $(LFLAGS) -o $@ telldir/telldir_5.o $(INCPATH) $(LIBS)
750 $(BIN_DIR)/print_file_1: print_file/print_file_1.o
751 @echo Linking $@
752 @dir=$(BIN_DIR) $(MAKEDIR)@
753 @$(CC) $(LFLAGS) -o $@ print_file/print_file_1.o $(INCPATH) $(LIBS)
755 $(BIN_DIR)/print_file_2: print_file/print_file_2.o
756 @echo Linking $@
757 @dir=$(BIN_DIR) $(MAKEDIR)@
758 @$(CC) $(LFLAGS) -o $@ print_file/print_file_2.o $(INCPATH) $(LIBS)
760 $(BIN_DIR)/print_file_3: print_file/print_file_3.o
761 @echo Linking $@
762 @dir=$(BIN_DIR) $(MAKEDIR)@
763 @$(CC) $(LFLAGS) -o $@ print_file/print_file_3.o $(INCPATH) $(LIBS)
765 $(BIN_DIR)/print_file_4: print_file/print_file_4.o
766 @echo Linking $@
767 @dir=$(BIN_DIR) $(MAKEDIR)@
768 @$(CC) $(LFLAGS) -o $@ print_file/print_file_4.o $(INCPATH) $(LIBS)
770 $(BIN_DIR)/open_print_job_1: open_print_job/open_print_job_1.o
771 @echo Linking $@
772 @dir=$(BIN_DIR) $(MAKEDIR)@
773 @$(CC) $(LFLAGS) -o $@ open_print_job/open_print_job_1.o $(INCPATH) $(LIBS)
775 $(BIN_DIR)/open_print_job_2: open_print_job/open_print_job_2.o
776 @echo Linking $@
777 @dir=$(BIN_DIR) $(MAKEDIR)@
778 @$(CC) $(LFLAGS) -o $@ open_print_job/open_print_job_2.o $(INCPATH) $(LIBS)
780 $(BIN_DIR)/list_print_jobs_1: list_print_jobs/list_print_jobs_1.o
781 @echo Linking $@
782 @dir=$(BIN_DIR) $(MAKEDIR)@
783 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_1.o $(INCPATH) $(LIBS)
785 $(BIN_DIR)/list_print_jobs_2: list_print_jobs/list_print_jobs_2.o
786 @echo Linking $@
787 @dir=$(BIN_DIR) $(MAKEDIR)@
788 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_2.o $(INCPATH) $(LIBS)
790 $(BIN_DIR)/list_print_jobs_3: list_print_jobs/list_print_jobs_3.o
791 @echo Linking $@
792 @dir=$(BIN_DIR) $(MAKEDIR)@
793 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_3.o $(INCPATH) $(LIBS)
795 $(BIN_DIR)/list_print_jobs_4: list_print_jobs/list_print_jobs_4.o
796 @echo Linking $@
797 @dir=$(BIN_DIR) $(MAKEDIR)@
798 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_4.o $(INCPATH) $(LIBS)
800 $(BIN_DIR)/list_print_jobs_5: list_print_jobs/list_print_jobs_5.o
801 @echo Linking $@
802 @dir=$(BIN_DIR) $(MAKEDIR)@
803 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_5.o $(INCPATH) $(LIBS)
805 $(BIN_DIR)/list_print_jobs_6: list_print_jobs/list_print_jobs_6.o
806 @echo Linking $@
807 @dir=$(BIN_DIR) $(MAKEDIR)@
808 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_6.o $(INCPATH) $(LIBS)
810 $(BIN_DIR)/list_print_jobs_7: list_print_jobs/list_print_jobs_7.o
811 @echo Linking $@
812 @dir=$(BIN_DIR) $(MAKEDIR)@
813 @$(CC) $(LFLAGS) -o $@ list_print_jobs/list_print_jobs_7.o $(INCPATH) $(LIBS)
815 $(BIN_DIR)/unlink_print_job_1: unlink_print_job/unlink_print_job_1.o
816 @echo Linking $@
817 @dir=$(BIN_DIR) $(MAKEDIR)@
818 @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_1.o $(INCPATH) $(LIBS)
820 $(BIN_DIR)/unlink_print_job_2: unlink_print_job/unlink_print_job_2.o
821 @echo Linking $@
822 @dir=$(BIN_DIR) $(MAKEDIR)@
823 @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_2.o $(INCPATH) $(LIBS)
825 $(BIN_DIR)/unlink_print_job_3: unlink_print_job/unlink_print_job_3.o
826 @echo Linking $@
827 @dir=$(BIN_DIR) $(MAKEDIR)@
828 @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_3.o $(INCPATH) $(LIBS)
830 $(BIN_DIR)/unlink_print_job_4: unlink_print_job/unlink_print_job_4.o
831 @echo Linking $@
832 @dir=$(BIN_DIR) $(MAKEDIR)@
833 @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_4.o $(INCPATH) $(LIBS)
835 $(BIN_DIR)/unlink_print_job_5: unlink_print_job/unlink_print_job_5.o
836 @echo Linking $@
837 @dir=$(BIN_DIR) $(MAKEDIR)@
838 @$(CC) $(LFLAGS) -o $@ unlink_print_job/unlink_print_job_5.o $(INCPATH) $(LIBS)
841 clean:
842 @for i in $(SUB_DIRS); do \
843 rm -f $$i/*.o; \
844 done
846 @rm -f $(GROUPS)
847 @rm -rf $(BIN_DIR)
848 @echo "Done"