Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102707082
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
Sun, Feb 23, 09:37
Size
541 B
Mime Type
text/x-makefile
Expires
Tue, Feb 25, 09:37 (2 d)
Engine
blob
Format
Raw Data
Handle
24401125
Attached To
R5521 PH_week6_assign
makefile
View Options
NAME := tableaux
BIN := bin/$(NAME)
CC := g++
INCLUDES := -I include
# other required libraries
LIBS := #add libraries
PLUGIN := -std=c++11
CSOURCES := $(wildcard src/*.cpp)
OBJECTS := $(patsubst src/%.cpp,bin/%.o,$(CSOURCES))
.PHONY: dirs clean install
all: $(BIN)
$(BIN): $(OBJECTS) dirs
$(CC) -o $@ $(OBJECTS) $(INCLUDES) $(LIBS) $(PLUGIN)
$(OBJECTS): bin/%.o : src/%.cpp $(CSOURCES) dirs
@printf "\n"
$(CC) -c $< -o $@ $(INCLUDES) $(PLUGIN)
install:
sudo cp -i bin/$(NAME) /usr/bin
dirs:
mkdir -p bin
clean:
rm -rd bin/*
Event Timeline
Log In to Comment