Makefile 471 B

12345678910111213141516171819202122232425262728293031
  1. CPP=g++
  2. IDIR = ../SEAL/SEAL/
  3. LDIR = ../SEAL/bin/
  4. ODIR=obj
  5. BDIR=bin
  6. CFLAGS=-std=c++11 -I. -I$(IDIR) -O3
  7. LIBS=-L$(LDIR) -lseal
  8. _DEPS = pir.hpp
  9. DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
  10. _OBJ = pir.o main.o
  11. OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
  12. $(ODIR)/%.o: %.cpp
  13. @mkdir -p $(@D)
  14. $(CPP) -c -o $@ $< $(CFLAGS)
  15. $(BDIR)/main: $(OBJ)
  16. @mkdir -p $(@D)
  17. $(CPP) -o $@ $^ $(CFLAGS) $(LIBS)
  18. all: main
  19. .PHONY: clean
  20. clean:
  21. rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~ $(BDIR)/*