AROS: it is called IoctlSocket/CloseSocket and WaitSelect on AROS.
[deb_libnfs.git] / aros / Makefile.AROS
1 AR=ar
2 CC=gcc
3 CFLAGS=-g -O0 -DAROS=1 -D_U_=" " -DHAVE_SOCKADDR_LEN -I. -Iinclude -Iinclude/nfsc -Iaros -Infs -Imount
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
13 EXAMPLES=examples/nfsclient-listservers
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
24 examples/nfsclient-listservers: examples/nfsclient-listservers.c lib/libnfs.a
25
26 $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a
27