Guest User

Untitled

a guest
Apr 12th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.58 KB | None | 0 0
  1. CPP=gcc -E
  2. CC=gcc -c
  3. LD=gcc
  4. RM=rm -f
  5.  
  6. CPPFLAGS=
  7. CFLAGS=$(CPPFLAGS)
  8. LDFLAGS=
  9.  
  10.  
  11.  
  12. all: client
  13.  
  14.  
  15. interface.o: interface.c interface.h client.h
  16.     $(CC) $(CFLAGS) -o interface.o interface.c
  17.  
  18. client.o: client.c client.h rpc_client.h
  19.     $(CC) $(CFLAGS) -o client.o client.c
  20.  
  21. rpc_client.o: rpc_client.c rpc_client.h
  22.     $(CC) $(CFLAGS) -o rpc_client.o rpc_client.c
  23.  
  24. client: interface.o client.o rpc_client.o
  25.     $(LD) $(LDFLAGS) -o client interface.o client.o rpc_client.o
  26.  
  27.  
  28.  
  29. .PHONY: clean mrproper
  30.  
  31. clean:
  32.     $(RM) interface.o client.o rpc_client.o
  33.  
  34. mrproper: clean
  35.     $(RM) client
Add Comment
Please, Sign In to add comment