Advertisement
Guest User

Untitled

a guest
May 9th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.42 KB | None | 0 0
  1. #TODO - Add variables here - compiler, flags...
  2. BINDIR:=bin
  3. SRCDIR:=src
  4. OBJDIR:=obj
  5. DSTDIR:=..
  6.  
  7. all: build install
  8.  
  9. build: $(OBJDIR)/libPrint.o
  10.     ar -rvs libPrint.a $<
  11.    
  12.  
  13. $(OBJDIR)/%.o: $(SRCDIR)/%.cpp | $(OBJDIR) $(BINDIR)
  14.     $(CC) $(CCFLAGS) -c $< -o $@
  15.  
  16. install: $(DSTDIR)/libPrint.a
  17.  
  18. $(DSTDIR)/libPrint.a: $(OBJDIR)/libPrint.o
  19.     cp libPrint.a ..
  20.  
  21.  
  22. clean:
  23.     #TODO - FILL ME! Add removal of .o files and ./bin/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement