Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95671262
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
Wed, Dec 18, 05:50
Size
730 B
Mime Type
text/x-makefile
Expires
Fri, Dec 20, 05:50 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
23038363
Attached To
rDLMA Diffusion limited mixed aggregation
Makefile
View Options
IDIR =./include
CXX=g++
#CPPFLAGS=-g -I$(IDIR) -std=c++11 -O3 -w
#LDFLAGS=-g -I$(IDIR) -std=c++11 -O3 -w
CPPFLAGS=-I$(IDIR) -std=c++11 -O3 -w
LDFLAGS=-I$(IDIR) -std=c++11 -O3 -w
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
simulation: $(OBJ_FILES) | $(BIN_DIR)
$(CXX) $(CPPFLAGS) -c -o simulation.o target/simulation.cpp
$(CXX) $(LDFLAGS) -o $(BIN_DIR)/$@ $^ simulation.o
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR)
$(CXX) $(CPPFLAGS) -c -o $@ $<
$(BIN_DIR):
mkdir $(BIN_DIR)
$(OBJ_DIR):
mkdir $(OBJ_DIR)
clean:
rm -rf $(OBJ_DIR)
rm *.o
rm -rf $(BIN_DIR)
Event Timeline
Log In to Comment