Guest User

Untitled

a guest
Apr 12th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.67 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. interface.o: interface.c client.h common.h Makefile
  15.     $(CC) $(CFLAGS) -o $@ $<
  16.  
  17. client.o: client.c client.h rpc_client.h common.h Makefile
  18.     $(CC) $(CFLAGS) -o $@ $<
  19.  
  20. rpc_client.o: rpc_client.c rpc_client.h common.h Makefile
  21.     $(CC) $(CFLAGS) -o $@ $<
  22.  
  23. common.o: common.c common.h Makefile
  24.     $(CC) $(CFLAGS) -o $@ $<
  25.  
  26. client: interface.o client.o rpc_client.o common.o Makefile
  27.     $(LD) $(LDFLAGS) -o $@ interface.o client.o rpc_client.o common.o
  28.  
  29.  
  30.  
  31. .PHONY: clean mrproper
  32.  
  33. clean:
  34.     $(RM) interface.o client.o rpc_client.o common.o
  35.  
  36. mrproper: clean
  37.     $(RM) client
Add Comment
Please, Sign In to add comment