CB100

Notas, resueltos y tps de la materia Algoritmos y Estructuras de Datos
Index Commits Files Refs README
tps/2/Makefile (282B)
   1 CC := g++
   2 CFLAGS := -Wall -pedantic -ansi -std=c++98 -O3
   3 SRCS := $(wildcard *.cpp)
   4 OBJS := $(SRCS:.cpp=.o)
   5 TARGET := main
   6 
   7 .PHONY: all clean
   8 
   9 all: $(TARGET)
  10 
  11 $(TARGET): $(OBJS)
  12     $(CC) $(CFLAGS) -o $@ $^
  13     rm -f $(OBJS)
  14 
  15 %.o: %.cpp
  16     g++ $(CFLAGS) -c $< -o $@
  17 
  18 clean:
  19     rm -f $(TARGET)