mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
34 lines
636 B
Makefile
34 lines
636 B
Makefile
PACKAGE=examples
|
|
FILESDIR=${SHAREDIR}/examples/sunrpc/sort
|
|
BIN = rsort sort_svc
|
|
GEN = sort_clnt.c sort_svc.c sort_xdr.c sort.h
|
|
LIB = -lrpclib
|
|
RPCCOM = rpcgen
|
|
|
|
all: $(BIN)
|
|
|
|
rsort: rsort.o sort_clnt.o sort_xdr.o
|
|
$(CC) $(LDFLAGS) -o $@ rsort.o sort_clnt.o sort_xdr.o $(LIB)
|
|
|
|
rsort.o: rsort.c sort.h
|
|
|
|
sort_clnt.c:
|
|
$(RPCCOM) -l sort.x >$@
|
|
|
|
sort_svc: sort_proc.o sort_svc.o sort_xdr.o
|
|
$(CC) $(LDFLAGS) -o $@ sort_proc.o sort_svc.o sort_xdr.o $(LIB)
|
|
|
|
sort_proc.o: sort_proc.c sort.h
|
|
|
|
sort_svc.c:
|
|
$(RPCCOM) -s udp sort.x >$@
|
|
|
|
sort_xdr.c:
|
|
$(RPCCOM) -c sort.x >$@
|
|
|
|
sort.h:
|
|
$(RPCCOM) -h sort.x >$@
|
|
|
|
clean cleanup:
|
|
rm -f $(GEN) *.o $(BIN)
|
|
|