-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
18 lines (12 loc) · 1006 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ODIR=obj
SDIR=src
_DEPS = IndSetExtByTriangulation.h IndSetExtBySeparators.h IndSetScorerByTriangulation.h MinimalSeparatorsEnumerator.h MinimalTriangulationsEnumerator.h GraphReader.h MinimalTriangulator.h Graph.h DataStructures.h SeparatorGraph.h Converter.h SeparatorsScorer.h ChordalGraph.h SubGraph.h ResultsHandler.h SuccinctGraphRepresentation.h IndependentSetExtender.h IndependentSetScorer.h MaximalIndependentSetsEnumerator.h TreeDecomposition.h
_OBJ = IndSetExtByTriangulation.o IndSetExtBySeparators.o IndSetScorerByTriangulation.o MinimalSeparatorsEnumerator.o MinimalTriangulationsEnumerator.o GraphReader.o MinimalTriangulator.o Graph.o DataStructures.o SeparatorGraph.o Converter.o SeparatorsScorer.o ChordalGraph.o SubGraph.o TreeDecomposition.o ResultsHandler.o main.o
CC=g++
CFLAGS=-I$(SDIR)
DEPS = $(patsubst %,$(SDIR)/%,$(_DEPS))
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: $(SDIR)/%.cpp $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
enumerator: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)