summaryrefslogtreecommitdiff
path: root/Makefile
blob: aff6045e56bd86298fe6c32809740fa088ade9f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++11 -g -fwrapv -I$(HOME)/prefix/include
LDFLAGS = -L$(HOME)/prefix/lib -ltermio
TARGET = ede

.PHONY: all clean remake

all: $(TARGET)

clean:
	rm -f *.o $(TARGET)
	rm -rf *.dSYM

remake: clean
	make all


$(TARGET): $(patsubst %.cpp,%.o,$(wildcard *.cpp))
	$(CXX) $^ -o $@ $(LDFLAGS)

%.o: %.cpp $(wildcard *.h)
	$(CXX) $(CXXFLAGS) -c -o $@ $<