-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (44 loc) · 939 Bytes
/
Copy pathMakefile
File metadata and controls
53 lines (44 loc) · 939 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CXX = g++
CXXFLAGS = -g -std=c++11 -lgmpxx -lgmp
INCS = -Iinclude/
BUILDDIR = build
OUTDIR = bin
SRCDIR = src
OBJS = $(addprefix ${BUILDDIR}/, \
KetMap.o \
Ket.o \
Superposition.o \
Functions.o \
Sequence.o \
NewContext.o \
ContextList.o \
Frame.o \
NumericOp.o \
SimpleOp.o \
OpSeq.o \
PoweredOp.o \
SuperpositionIter.o \
SingleOpRule.o \
OpRule.o \
SelfKet.o \
FnOp.o \
BracketOp.o \
Sigmoids.o \
FnMap.o \
main.o \
) # Prepends the BUILDDIR to the OBJS
all: directories $(OUTDIR)/main
$(OUTDIR)/main: $(OBJS)
@echo "LD $@"
@$(CXX) $(CXXFLAGS) -o $@ $^ $(INCS)
$(BUILDDIR)/%.o: $(SRCDIR)/%.cpp
@echo "CXX $<"
@$(CXX) $(CXXFLAGS) -c $< -o $@ $(INCS)
.PHONY: directories clean
directories: $(OUTDIR)/ $(BUILDDIR)/
%/:
@echo "MKDIR $<"
@mkdir -p $@
clean:
@echo "RMDIR ${BUILDDIR} ${OUTDIR}"
@rm $(BUILDDIR)/* $(OUTDIR)/* 2> /dev/null