Advertisement
Paszta

Systemy - The Beatles

May 14th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. ONY: clean
  2. all: TheBeatles
  3. TheBeatles: thebeatles.o libjp.a libgr.so
  4.     gcc -o TheBeatles thebeatles.o libjp.a libgr.so
  5. thebeatles.o: thebeatles.c
  6.     gcc -c thebeatles.c
  7. libjp.a: pr.o pp.o
  8.     ar rs libjp.a pr.o pp.o
  9. pr.o: pr.c
  10.     gcc -c pr.c
  11. pp.o: pp.c
  12.     gcc -c pp.c
  13. libgr.so: pj.o pg.o
  14.     gcc -shared -o libgr.so pj.o pg.o
  15. pj.o: pj.c
  16.     gcc -fPIC -c pj.c
  17. pg.o: pg.c
  18.     gcc -fPIC -c pg.c
  19. clean:
  20.     rm -f *.o *.a *.so TheBeatles
  21.  
  22.  
  23.  
  24. .PHONY: clean
  25. all: TheBeatles
  26. TheBeatles: thebeatles.o libjp.a libgr.so
  27.     gcc -o $@ $< libjp.a libgr.so
  28. thebeatles.o: thebeatles.c
  29.     gcc -c $<
  30. libjp.a: pr.o pp.o
  31.     ar rs $@ $^
  32. pr.o: pr.c
  33.     gcc -c $<
  34. pp.o: pp.c
  35.     gcc -c $<
  36. libgr.so: pj.o pg.o
  37.     gcc -shared -o $@ $^
  38. pj.o: pj.c
  39.     gcc -fPIC -c $<
  40. pg.o: pg.c
  41.     gcc -fPIC -c $<
  42. clean:
  43.     rm -f *.o *.a *.so TheBeatles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement