Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. FLAGS = -g -Wall -pedantic -Wextra
  2. LIBNAME = libmows.a
  3. SAMPLE = example_hello
  4.  
  5. libmows.a:
  6. cc $(FLAGS) -c mows.c http_parser.c
  7. ar rvs $(LIBNAME) *.o
  8.  
  9. sample: libmows.a
  10. cc $(FLAGS) $(SAMPLE).c $(LIBNAME) -o $(SAMPLE) -pthread
  11.  
  12. clean:
  13. rm -f *.o $(LIBNAME)
  14.  
  15. run:
  16. ./$(SAMPLE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement