File: Makefile

package info (click to toggle)
p3nfs 5.3-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 596 kB
  • ctags: 825
  • sloc: ansic: 7,434; makefile: 126; sh: 40
file content (104 lines) | stat: -rw-r--r-- 2,850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Generated automatically from Makefile.in by configure.
SHELL		= /bin/sh

CC		= gcc
LDFLAGS		=  -lnsl 
EXTRA_OBJS	= 
CFLAGS		= -O2 -Wall -I../include

# Default installdirectory applies to local installation at FAU
BINDIR	=	/proj/psion/bin/sun5

#
# Following configurations were tested at least to compile:
# (This section is here for reference only. You should first try to 
# run configure from the toplevel directory.)
#
# GCC: SunOS 4.1.3/4.1.4 or Linux 1.2.13
#CC	=	gcc
#CFLAGS	=	-I../include -O2 -Wall

# Solaris 2.5: SUNWspro C or GCC
#CC	=	cc
#CFLAGS	=	-I../include -xO2 -v
#CC	=	gcc
#CFLAGS	=	-I../include -O2 -Wall
#LDFLAGS =	-L/usr/ucblib -R/usr/ucblib -lrpcsoc -lnsl -lsocket

# Native C compiler on IRIX 5.3, HP-UX 9.01, HP-UX 10.10 or SunOS 4.1.3
#CC	=	cc
#CFLAGS	=	-I../include -O


# For AIX3.2.5 (Not tested with p3nfsd 2.0 or newer)
#AIXLIBS  =	-lbsd
#EXTRA_OBJS =	mount_aix.o



### no need to change anything below this line ###

MOBJS	= 	mp_main.o mp_mount.o nfs_prot_svc.o nfs_prot_xdr.o \
		mp_pfs_ops.o mp_serial.o mp_inode.o mp_xmit.o crc.o pty.o
PROGRAM	=	p3nfsd

OBJS	=	$(MOBJS) $(EXTRA_OBJS)


all: $(PROGRAM)

$(PROGRAM): $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)

nfsc_S3.opl: nfsc.opl
	@rm -f $@
	echo >  $@ 'REM nfsc_S3 -- automatically created from nfsc -- do not edit
' 
	sed >> $@ < $? -e 's/\(rsset:[        ]*([    ]*\)16,/\115,/' \
	    -e 's/uadd[     ]*(/myuadd%:(/g' 
	@chmod a-w $@
	@touch .$?

.nfsc.opl: nfsc_S3.opl
	@echo ERROR: $? has been modified. Please transfer 
	@echo ERROR: your changes back to `echo $@ | sed -e 's/^\.//'`
	@exit 1

opl: nfsc_S3.opl .nfsc.opl

install:$(PROGRAM)
	rm $(BINDIR)/$(PROGRAM)
	install -o root -g i4psion -m 04110 $(PROGRAM) $(BINDIR)

zoo dist tar:
	cd ..; $(MAKE) $@

tags:
	ctags -tvs *.c *.h

clean celan:
	rm -f $(PROGRAM) $(OBJS) *pure_* .pure *.orig

distclean: clean
	rm -f Makefile ../include/config.h ../include/*.orig

../include/cnv.h: ../nfsc/src/cnv.h
	sed -e 's/
//' < ../nfsc/src/cnv.h > $@

### Dependencies, generated by :.,$!gcc -MM -I../include *.c
crc.o: crc.c
mount_aix.o: mount_aix.c ../include/misc-aix3.h ../include/os-aix3.h
mp_inode.o: mp_inode.c ../include/nfs_prot.h ../include/mp.h \
 ../include/cnv.h
mp_main.o: mp_main.c ../include/nfs_prot.h ../include/mp.h \
 ../include/version.h ../include/config.h
mp_mount.o: mp_mount.c ../include/config.h ../include/nfs_prot.h \
 ../include/mp.h
mp_pfs_ops.o: mp_pfs_ops.c ../include/nfs_prot.h ../include/mp.h
mp_serial.o: mp_serial.c ../include/nfs_prot.h ../include/mp.h \
 ../include/config.h
mp_xmit.o: mp_xmit.c ../include/nfs_prot.h ../include/mp.h \
 ../include/config.h
mtab_aix.o: mtab_aix.c
nfs_prot_svc.o: nfs_prot_svc.c ../include/nfs_prot.h ../include/mp.h
nfs_prot_xdr.o: nfs_prot_xdr.c ../include/nfs_prot.h
pty.o: pty.c ../include/config.h ../include/nfs_prot.h ../include/mp.h