Subversion Repositories planix.SVN

Rev

Rev 71 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 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
71 7u83 18
CFLAGS=-g -I. --std=c89 
2 - 19
LD=cc
20
LDFLAGS=
21
LDTAIL=
22
 
74 7u83 23
INSTALLDIR=/usr/local/libexec
24
MANPATH=/usr/local/man
25
 
2 - 26
OFILES=\
27
	authnone.o\
28
	authrhosts.o\
29
	authp9any.o\
30
	convD2M.o\
31
	convM2D.o\
32
	convM2S.o\
33
	convS2M.o\
34
	des.o\
35
	dirmodeconv.o\
36
	doprint.o\
37
	fcallconv.o\
38
	oldfcall.o\
39
	print.o\
40
	random.o\
41
	readn.o\
42
	remotehost.o\
43
	rune.o\
44
	safecpy.o\
45
	strecpy.o\
46
	tokenize.o\
47
	u9fs.o\
48
	utfrune.o
49
 
50
HFILES=\
51
	fcall.h\
52
	plan9.h
53
 
54
u9fs: $(OFILES)
55
	$(LD) $(LDFLAGS) -o u9fs $(OFILES) $(LDTAIL)
56
 
57
%.o: %.c $(HFILES)
58
	$(CC) $(CFLAGS) -c $*.c
59
 
60
clean:
61
	rm -f *.o u9fs
62
 
74 7u83 63
install: u9fs man/u9fs.8.gz
64
	install -d $(INSTALLDIR)
65
	install u9fs $(INSTALLDIR)/u9fs
66
	install -d $(MANPATH)/man8
67
	install man/u9fs.8.gz $(MANPATH)/man8/u9fs.8.gz
2 - 68
 
74 7u83 69
 
70
	#cp u9fs ../../bin
71
 
2 - 72
.PHONY: clean install