Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101216380
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
Thu, Feb 6, 21:58
Size
506 B
Mime Type
text/x-makefile
Expires
Sat, Feb 8, 21:58 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24114293
Attached To
rSTICAZZI yearII_reports
makefile
View Options
NAME := Exercice6
BIN := $(NAME)
CC := g++
INCLUDES := -I include
CPP11 := -std=c++17
CONST := -DDEBUG
# other required libraries
LIBS := #add libraries
CSOURCES := $(wildcard src/*.cpp)
OBJECTS := $(patsubst src/%.cpp,bin/%.o,$(CSOURCES))
.PHONY: dirs clean install
all: $(BIN)
$(BIN): $(OBJECTS) dirs
$(CC) $(CONST) -o $@ $(CPP11) $(OBJECTS) $(INCLUDES) $(LIBS)
$(OBJECTS): bin/%.o : src/%.cpp $(CSOURCES) dirs
@printf "\n"
$(CC) $(CONST) -c $< $(CPP11) -o $@ $(INCLUDES)
dirs:
mkdir -p bin
Event Timeline
Log In to Comment