]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/unix/u9fs/makefile
authsrv: remove unused opasstokey
[plan9front.git] / sys / src / cmd / unix / u9fs / makefile
1 #
2 # The goal is to keep as much per-system stuff autodetected in plan9.h
3 # as possible.  Still, sometimes you can't help it.  Look for your system.
4 #
5
6 # SGI
7 #
8 # To correctly handle 64-bit files and offsets, add -64 to CFLAGS and LDFLAGS
9 # On Irix 5.X, add -DIRIX5X to hack around their own #include problems (see plan9.h).
10 #
11 # SunOS
12 #
13 # SunOS 5.5.1 does not provide inttypes.h; add -lsunos to CFLAGS and
14 # change CC and LD to gcc.  Add -lsocket, -lnsl to LDTAIL.
15 # If you need <inttypes.h> copy sun-inttypes.h to inttypes.h.
16 #
17 #CC=cc
18 CFLAGS=-g -I.
19 LD=cc
20 LDFLAGS=
21 LDTAIL=
22
23 OFILES=\
24         authnone.o\
25         authrhosts.o\
26         authp9any.o\
27         convD2M.o\
28         convM2D.o\
29         convM2S.o\
30         convS2M.o\
31         des.o\
32         dirmodeconv.o\
33         doprint.o\
34         fcallconv.o\
35         oldfcall.o\
36         print.o\
37         random.o\
38         readn.o\
39         remotehost.o\
40         rune.o\
41         safecpy.o\
42         strecpy.o\
43         tokenize.o\
44         u9fs.o\
45         utflen.o\
46         utfrune.o\
47
48 HFILES=\
49         fcall.h\
50         plan9.h
51
52 u9fs: $(OFILES)
53         $(LD) $(LDFLAGS) -o u9fs $(OFILES) $(LDTAIL)
54
55 %.o: %.c $(HFILES)
56         $(CC) $(CFLAGS) -c $*.c
57
58 clean:
59         rm -f *.o u9fs
60
61 install: u9fs
62         cp u9fs ../../bin
63
64 .PHONY: clean install