]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cwfs/portmkfile
grep: error if sbrk fails
[plan9front.git] / sys / src / cmd / cwfs / portmkfile
1 </$objtype/mkfile
2
3 BIN=/$objtype/bin
4 TARG=cwfs$FS
5 OFILES=\
6         9p2.$O\
7         auth.$O\
8         chk.$O\
9         con.$O\
10         config.$O\
11         console.$O\
12         cw.$O\
13         data.$O\
14         dentry.$O\
15         fworm.$O\
16         iobuf.$O\
17         juke.$O\
18         main.$O\
19         malloc.$O\
20         mworm.$O\
21         net.$O\
22         proc.$O\
23         scsi.$O\
24         sub.$O\
25         time.$O\
26         uidgid.$O\
27         wren.$O\
28         srv.$O\
29
30 HFILES=\
31         ../32bit.h\
32         ../64bit.h\
33         ../64xbit.h\
34         ../all.h\
35         dat.h\
36         ../io.h\
37         ../portdat.h\
38         ../portfns.h\
39
40 # SRC=${OBJ:%.$O=../%.c}
41 CFLAGS=$CFLAGS -I..
42
43 default:V: $O.cwfs$FS
44
45 </sys/src/cmd/mkmany
46
47 %.$O:   ../%.c
48         $CC $CFLAGS ../$stem.c
49 %.$O:   ../%.s
50         $AS $AFLAGS ../$stem.s
51
52 acid: ${OFILES:%.acid=../%.c}
53
54 $O.cwfs$FS: conf.c $OFILES
55         $CC $CFLAGS -DDATE'='`{date -n} conf.c
56         $LD -o $target $OFILES conf.$O
57         size $target
58
59 test:V: 8.cwfs$FS
60         cputype=debug $prereq -a 'tcp!*!1234' </dev/null