2024-07-31 16:38:38 +00:00
|
|
|
ECHO = @echo
|
2024-08-01 14:12:53 +00:00
|
|
|
GCC = g++
|
2024-07-31 16:38:38 +00:00
|
|
|
RM = @rm -f
|
|
|
|
CCFLAGS = -c -g -ansi -pedantic -Wall #optimization?
|
2024-08-01 14:12:53 +00:00
|
|
|
OBJETS = $(SRC:.cpp=.o)
|
|
|
|
SRC = $(wildcard *.cpp)
|
2024-07-31 16:38:38 +00:00
|
|
|
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)
|