Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • arrumando
  • correcao-erro
  • revert-1e19f075
  • log
5 results

makefile

Blame
  • makefile 295 B
    CC = g++
    CPPFLAGS = -g -std=c++20 
    SRC = $(wildcard src/*.cpp)
    OBJ = $(SRC:.cpp=.o)
    
    # O nome do target deve ser o nome do arquivo principal
    TARGET = exemplo
    
    all: $(TARGET)
    
    $(TARGET): $(OBJ)
    	$(CC) $(CPPFLAGS) -o $(TARGET) $(OBJ)
    
    clean:
    	rm -f src/*.o vgcore* 
    
    purge: clean
    	rm -f $(TARGET)