Patching Dec 9, 2021 6-7a CST- All GitLab services may be unavailable for 5-10 minutes

Commit 88c705d4 authored by Roland Haas's avatar Roland Haas
Browse files

Makefile: use vars for source file names

parent 6e582437
......@@ -5,14 +5,17 @@ CXXFLAGS=-Wall -g3 -O2
export CRAYPE_LINK_TYPE=dynamic
export XTPE_LINK_TYPE=dynamic
SOURCES = mpitar.cc tarentry.cc cmdline.cc async_writer.cc
HEADERS = timer.hh tarentry.hh fileentry.hh cmdline.hh async_writer.hh
.PHONY: clean all
all: mpitar test
mpitar: mpitar.cc timer.hh tarentry.cc tarentry.hh fileentry.hh cmdline.cc cmdline.hh async_writer.cc async_writer.hh
$(CXX) $(LDFLAGS) $(CXXFLAGS) mpitar.cc tarentry.cc cmdline.cc async_writer.cc -o mpitar
mpitar: $(SOURCES) $(HEADERS) Makefile
$(CXX) $(LDFLAGS) $(CXXFLAGS) $(SOURCES) -o mpitar
test: mpitar test.sh
test: mpitar test.sh Makefile
@rm -rf test
./test.sh || cat test/test.log
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment