-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 747 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
IDIR=firnlibs
GPP=g++
CFLAGS=-I$(IDIR) $(shell pkg-config --cflags opencv) -pthread -std=c++14 -O3
ODIR=obj
LDIR=
LIBS=-lgmpxx -lgmp -lmpfr -ljsoncpp $(shell pkg-config --libs opencv) -lcryptopp
_DEPS=complex.hpp mandelbrot.hpp buildimage.hpp colors.hpp workerthread.hpp CyclicVar.hpp saveroutine.hpp cryptozip.hpp halfspan.hpp
DEPS=$(LDEPS)
_LDEPS=
LDEPS=$(patsubst %,$(IDIR)/%,$(_LDEPS))
_OBJ=complex.o mandelbrot.o mandelview.o buildimage.o colors.o workerthread.o saveroutine.o mouseevents.o cryptozip.o halfspan.o
OBJ=$(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.cpp $(DEPS) $(LDEPS)
$(GPP) -c -o $@ $< $(CFLAGS)
mandelview: $(OBJ)
$(GPP) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY:clean
clean:
rm -f $(ODIR)/*.o $(ODIR)/firnlibs/*.o *~