Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CXXFLAGS = -Wall -std=c++11
- LDLIBS = -lpthread
- SERVER = smalld
- CLIENTS = smallSet smallGet smallDigest
- CSAPP = csapp.h csapp.c
- LIBSMALL = libsmall.hpp libsmall.cpp
- all: $(CSAPP) $(SERVER) $(CLIENTS)
- csapp.h:
- wget http://csapp.cs.cmu.edu/2e/ics2/code/include/csapp.h
- csapp.c:
- wget http://csapp.cs.cmu.edu/2e/ics2/code/src/csapp.c
- csapp.o: csapp.h csapp.c
- libsmall.o: libsmall.hpp libsmall.cpp
- $(SERVER): csapp.o libsmall.o
- $(CLIENTS): csapp.o libsmall.o
- .PHONY: clean
- clean:
- /bin/rm -rf *.o smalld smallSet smallGet smallDigest smallRun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement