X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=aros%2FMakefile.AROS;fp=aros%2FMakefile.AROS;h=9c97dc0d1f180469f4ff46cf1b667ae6eb007e4c;hb=ee872606f1e484f684276ec595f1e39d1f95b9a9;hp=0000000000000000000000000000000000000000;hpb=fab61e3d0384e61553b39860b923d41bc0cf17b1;p=deb_libnfs.git diff --git a/aros/Makefile.AROS b/aros/Makefile.AROS new file mode 100755 index 0000000..9c97dc0 --- /dev/null +++ b/aros/Makefile.AROS @@ -0,0 +1,46 @@ +AR=ar +CC=gcc +CFLAGS=-g -O0 -DAROS=1 -D_U_=" " -DHAVE_SOCKADDR_LEN -I. -Iinclude -Iinclude/nfsc -Iaros -Infs -Imount + +OBJS=lib/init.o lib/libnfs.o lib/libnfs-sync.o lib/libnfs-zdr.o lib/pdu.o lib/socket.o +OBJS+=mount/mount.o mount/libnfs-raw-mount.o +OBJS+=nfs/nfs.o nfs/nfsacl.o nfs/libnfs-raw-nfs.o +OBJS+=nlm/nlm.o nlm/libnfs-raw-nlm.o +OBJS+=portmap/portmap.o portmap/libnfs-raw-portmap.o +OBJS+=rquota/rquota.o rquota/libnfs-raw-rquota.o +OBJS+=aros/aros_compat.o + +EXAMPLES=examples/nfsclient-listservers examples/nfsclient-sync examples/nfs-cp examples/nfs-ls + +all: lib/libnfs.a $(EXAMPLES) + +lib/libnfs.a: $(OBJS) + $(AR) cru $@ $(OBJS) + +.c.o: + echo $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) -c -o $@ $< + +install: all + cp lib/libnfs.a GCC:lib + mkdir -p INCLUDE:nfsc + cp include/nfsc/libnfs.h INCLUDE:nfsc + cp include/nfsc/libnfs-raw.h INCLUDE:nfsc + cp include/nfsc/libnfs-zdr.h INCLUDE:nfsc + cp mount/libnfs-raw-mount.h INCLUDE:nfsc + cp nlm/libnfs-raw-nlm.h INCLUDE:nfsc + cp nfs/libnfs-raw-nfs.h INCLUDE:nfsc + cp portmap/libnfs-raw-portmap.h INCLUDE:nfsc + cp rquota/libnfs-raw-rquota.h INCLUDE:nfsc + +examples/nfsclient-listservers: examples/nfsclient-listservers.c lib/libnfs.a + $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a + +examples/nfsclient-sync: examples/nfsclient-sync.c lib/libnfs.a + $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a + +examples/nfs-ls: examples/nfs-ls.c lib/libnfs.a + $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a + +examples/nfs-cp: examples/nfs-cp.c lib/libnfs.a + $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a