aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6602f8bb2ae89cfeeaab99395ce057ac6a235d60 (plain) (blame)
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
LINK.o = $(LINK.cc)
CXXFLAGS = -ggdb3 -O0 -pedantic -Wall -Werror #-DNOTHREAD
LDFLAGS = -ggdb3 -O0 -Lcmake-build-release #-DNOTHREAD

OUTPUT_OPTION = -MMD -MP -o $@
LDLIBS = -lapi -lpthread

TRGT = metasol
SRC = metasol.cpp
OBJ = $(SRC:.cpp=.o)
DEP = $(SRC:.cpp=.d)

.PHONY: default all run

default: all
all: $(TRGT)
$(TRGT): $(OBJ)

run: $(TRGT)
	./$<

-include $(DEP)

clean:
	$(RM) $(TRGT) $(OBJ) $(DEP)