Source

toybox / c++ / learning / Makefile

Full commit
CXXFLAGS=-Wall -Werror -pedantic

EXAMPLES=temperature template_foo boost_erf
all: $(EXAMPLES)

temperature: temperature.o
	$(CXX) $(CXXFLAGS) -o $@ $^

template_foo: template_foo.o
	$(CXX) $(CXXFLAGS) -o $@ $^

boost_erf: boost_erf.o
	$(CXX) $(CXXFLAGS) -o $@ $^

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