summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5bfd9c0fff79af9dfd64c2ac1853c8c20b5f7701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++11 -g -fwrapv
TARGET = squig

.PHONY: all clean remake

all: $(TARGET)

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

remake: clean
	$(MAKE) all


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

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