Commit | Line | Data |
---|---|---|
d7c6e9aa RS |
1 | AR=ar |
2 | CC=gcc | |
f69bd554 | 3 | CFLAGS=-g -O0 -DAROS=1 -D_U_=" " -DHAVE_SOCKADDR_LEN -I. -Iinclude -Iinclude/nfsc -Iaros -Infs -Imount |
d7c6e9aa RS |
4 | |
5 | OBJS=lib/init.o lib/libnfs.o lib/libnfs-sync.o lib/libnfs-zdr.o lib/pdu.o lib/socket.o | |
6 | OBJS+=mount/mount.o mount/libnfs-raw-mount.o | |
7 | OBJS+=nfs/nfs.o nfs/nfsacl.o nfs/libnfs-raw-nfs.o | |
8 | OBJS+=nlm/nlm.o nlm/libnfs-raw-nlm.o | |
9 | OBJS+=portmap/portmap.o portmap/libnfs-raw-portmap.o | |
10 | OBJS+=rquota/rquota.o rquota/libnfs-raw-rquota.o | |
11 | OBJS+=aros/aros_compat.o | |
12 | ||
3d574b1e | 13 | EXAMPLES=examples/nfsclient-listservers examples/nfsclient-sync examples/nfs-cp examples/nfs-ls |
d7c6e9aa RS |
14 | |
15 | all: lib/libnfs.a $(EXAMPLES) | |
16 | ||
17 | lib/libnfs.a: $(OBJS) | |
18 | $(AR) cru $@ $(OBJS) | |
19 | ||
20 | .c.o: | |
21 | echo $(CC) $(CFLAGS) -c -o $@ $< | |
22 | $(CC) $(CFLAGS) -c -o $@ $< | |
23 | ||
6061db58 RS |
24 | install: all |
25 | cp lib/libnfs.a GCC:lib | |
26 | mkdir -p INCLUDE:nfsc | |
27 | cp include/nfsc/libnfs.h INCLUDE:nfsc | |
28 | cp include/nfsc/libnfs-raw.h INCLUDE:nfsc | |
29 | cp include/nfsc/libnfs-zdr.h INCLUDE:nfsc | |
30 | cp mount/libnfs-raw-mount.h INCLUDE:nfsc | |
31 | cp nlm/libnfs-raw-nlm.h INCLUDE:nfsc | |
32 | cp nfs/libnfs-raw-nfs.h INCLUDE:nfsc | |
33 | cp portmap/libnfs-raw-portmap.h INCLUDE:nfsc | |
34 | cp rquota/libnfs-raw-rquota.h INCLUDE:nfsc | |
35 | ||
d7c6e9aa | 36 | examples/nfsclient-listservers: examples/nfsclient-listservers.c lib/libnfs.a |
a41dbfe2 | 37 | $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a |
d7c6e9aa | 38 | |
a41dbfe2 | 39 | examples/nfsclient-sync: examples/nfsclient-sync.c lib/libnfs.a |
d7c6e9aa RS |
40 | $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a |
41 | ||
3d574b1e RS |
42 | examples/nfs-ls: examples/nfs-ls.c lib/libnfs.a |
43 | $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a | |
44 | ||
45 | examples/nfs-cp: examples/nfs-cp.c lib/libnfs.a | |
46 | $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a |