Advertisement
jmacmcnerney

makefile

Apr 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. CXXFLAGS = -Wall -std=c++11
  2. LDLIBS = -lpthread
  3.  
  4. SERVER = smalld
  5. CLIENTS = smallSet smallGet smallDigest
  6. CSAPP = csapp.h csapp.c
  7. LIBSMALL = libsmall.hpp libsmall.cpp
  8.  
  9. all: $(CSAPP) $(SERVER) $(CLIENTS)
  10.  
  11. csapp.h:
  12. wget http://csapp.cs.cmu.edu/2e/ics2/code/include/csapp.h
  13.  
  14. csapp.c:
  15. wget http://csapp.cs.cmu.edu/2e/ics2/code/src/csapp.c
  16.  
  17. csapp.o: csapp.h csapp.c
  18.  
  19. libsmall.o: libsmall.hpp libsmall.cpp
  20.  
  21. $(SERVER): csapp.o libsmall.o
  22. $(CLIENTS): csapp.o libsmall.o
  23.  
  24. .PHONY: clean
  25. clean:
  26. /bin/rm -rf *.o smalld smallSet smallGet smallDigest smallRun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement