Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97227891
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
Fri, Jan 3, 15:06
Size
726 B
Mime Type
text/x-makefile
Expires
Sun, Jan 5, 15:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23359306
Attached To
rSTICAZZI yearII_reports
makefile
View Options
NAME := exercice7
BIN := $(NAME)
CC := g++
INCLUDES := -I include
CPP11 := -std=c++17
CONST := -DDEBUG
WARN := -fdiagnostics-color -pedantic -Wall -Wextra -Wcast-qual -Wcast-align -Wpointer-arith -Winit-self -Wshadow -Wswitch-enum -Wredundant-decls -Wfloat-equal -Wundef -Wvla -Wconversion -Wstrict-aliasing
# 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) $(WARN)
$(OBJECTS): bin/%.o : src/%.cpp $(CSOURCES) dirs
@printf "\n"
$(CC) $(CONST) -c $< $(CPP11) -o $@ $(INCLUDES) $(WARN)
dirs:
mkdir -p bin
Event Timeline
Log In to Comment