Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TODO - Add variables here - compiler, flags...
- BINDIR:=bin
- SRCDIR:=src
- OBJDIR:=obj
- DSTDIR:=..
- all: build install
- build: $(OBJDIR)/libPrint.o
- ar -rvs libPrint.a $<
- $(OBJDIR)/%.o: $(SRCDIR)/%.cpp | $(OBJDIR) $(BINDIR)
- $(CC) $(CCFLAGS) -c $< -o $@
- install: $(DSTDIR)/libPrint.a
- $(DSTDIR)/libPrint.a: $(OBJDIR)/libPrint.o
- cp libPrint.a ..
- clean:
- #TODO - FILL ME! Add removal of .o files and ./bin/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement