Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99021956
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 18, 13:10
Size
715 B
Mime Type
text/x-makefile
Expires
Mon, Jan 20, 13:10 (2 d)
Engine
blob
Format
Raw Data
Handle
23688530
Attached To
R8982 phpc_submit_nbody
Makefile
View Options
CXX=g++
CXXFLAGS=-std=c++11 -Wall -O3 -ftree-vectorize
LDFLAGS=
LDLIBS=
TARGET=nbody
DOC = doc
SRCDIR=src
OBJDIR=build
BINDIR=.
CXXFLAGS+= -I./$(SRCDIR)/*.hpp
SOURCES := $(wildcard $(SRCDIR)/*.cpp)
INCLUDES := $(wildcard $(SRCDIR)/*.hpp)
OBJECTS := $(SOURCES:$(SRCDIR)/%.cpp=$(OBJDIR)/%.o)
RM = rm -f
CD = cd doc/
CD_ = cd..
$(BINDIR)/$(TARGET): $(OBJECTS)
$(CXX) $(OBJECTS) $(LDFLAGS) -o $@
@echo "Linking complete!"
$(OBJECTS): $(OBJDIR)/%.o : $(SRCDIR)/%.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
.PHONY: clean
clean:
$(RM) $(OBJECTS)
@echo "Cleaned up objects."
.PHONY: cleanall
cleanall: clean
$(RM) $(BINDIR)/$(TARGET)
@echo "Cleaned up binaries."
.PHONY: doc
doc:
cd $(DOC) && doxygen Doxyfile
Event Timeline
Log In to Comment