Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99902167
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
Mon, Jan 27, 05:05
Size
796 B
Mime Type
text/x-makefile
Expires
Wed, Jan 29, 05:05 (2 d)
Engine
blob
Format
Raw Data
Handle
23846408
Attached To
rDLMA Diffusion limited mixed aggregation
Makefile
View Options
IDIR =./include
CXX=g++
CPPFLAGS=-I$(IDIR) -std=c++11 -O3
LDFLAGS=-I$(IDIR) -std=c++11 -O3
SRC_DIR = ./src
OBJ_DIR = ./obj
SRC_FILES = $(wildcard $(SRC_DIR)/*.cpp)
OBJ_FILES = $(patsubst $(SRC_DIR)/%.cpp,$(OBJ_DIR)/%.o,$(SRC_FILES))
BIN_SRC_DIR = ./bin_src
BIN_DIR = ./bin
all: simulation validation
simulation: $(OBJ_FILES) | $(BIN_DIR)
$(CXX) $(CPPFLAGS) -c -o simulation.o target/simulation.cpp
$(CXX) $(LDFLAGS) -o $@ $^ simulation.o
mv simulation ./bin/
validation: $(OBJ_FILES) | $(BIN_DIR)
$(CXX) $(CPPFLAGS) -c -o validation.o target/validation.cpp
$(CXX) $(LDFLAGS) -o $@ $^ validation.o
mv validation ./bin/
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR)
$(CXX) $(CPPFLAGS) -c -o $@ $<
$(BIN_DIR):
mkdir $(BIN_DIR)
$(OBJ_DIR):
mkdir $(OBJ_DIR)
clean:
rm *.o
rm ./bin/*
Event Timeline
Log In to Comment