me empecine con el makefile.... make stats :)
[seni.git] / engine / Makefile
blob7fd222d22caef3c5054298d09ceb2909875446b1
1 #Makefile para SENI
2 #SSW Team
4 GPP=g++
5 OPT=-Wall -O3
7 SRC=engine.cpp menu.cpp
8 SRC_ALL=$(SRC) engine.hpp menu.hpp
10 OBJ_OUT=engine.o menu.o
11 LIB_OUT=libseniengine.a
13 .PHONY: engine clean
15 engine: $(LIB_OUT)
17 $(LIB_OUT): $(OBJ_OUT)
18 @echo "Generando ENGINE"
19 @ar -rv $(LIB_OUT) $(OBJ_OUT) && echo -e "\e[1;32mOK\e[0m"
20 # @echo -e "\e[1;34mLineas engine:$(shell wc -l $(SRC_ALL) | grep -w total)\e[0m"
22 .cpp.o:
23 @echo "Compilando $<"
24 @$(GPP) -c $(OPT) -o $@ $< && echo -e "\e[1;32mOK\e[0m"
26 clean:
27 - rm *.a *.o *~