21 lines
385 B
Makefile
21 lines
385 B
Makefile
ECHO = @echo
|
|
GCC = g++
|
|
RM = @rm -f
|
|
CCFLAGS = -c -g -std=c++11 -pedantic -Wall #optimization?
|
|
OBJETS = $(SRC:.cpp=.o)
|
|
SRC = $(wildcard *.cpp)
|
|
EXE = deployer
|
|
LIBRARIES =
|
|
|
|
$(EXE) : $(OBJETS)
|
|
$(ECHO) "-Linking $(EXE)-"
|
|
$(GCC) -o $@ $^ $(LIBRARIES)
|
|
|
|
%.o:%.cpp
|
|
$(ECHO) "-Compilation $<- "
|
|
$(GCC) $(CCFLAGS) -o $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(ECHO) "-Cleaning-"
|
|
$(RM) $(OBJETS) $(EXE)
|