Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. CC = gcc
  2. CFLAGS = -Wall
  3.  
  4. LDFLAGS = -L.
  5.  
  6. all: main_static
  7.  
  8.  
  9. main_static:
  10. gcc main.c -I. -lhexdump_static
  11.  
  12. libhexdump_static.a:
  13. ar rc libhexdump_static.a hexdump.o sample.o
  14.  
  15.  
  16. main.o: main.c
  17. gcc -c main.c
  18. hexdump.o: hexdump.c
  19. gcc -c hexdump.c
  20. sample.o: sample.c
  21. gcc -c sample.c
  22.  
  23. .PHONY: all clean
  24. clean:
  25. rm -f *.o main_static libhexdump_static.a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement