22 lines
301 B
Makefile
22 lines
301 B
Makefile
binary = sequence-test
|
|
folder = sequences-int
|
|
objects = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
|
|
|
|
run: $(binary)
|
|
./$(binary)
|
|
|
|
$(binary): $(objects)
|
|
g++ -g3 -o $@ $^
|
|
|
|
%.o: %.cpp
|
|
g++ -g3 -c -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.o
|
|
|
|
clear: clean
|
|
rm -f *.zip $(binary)
|
|
|
|
zip: clean
|
|
zip $(folder) Makefile *.cpp *.h
|