Caesar/makefile

22 lines
262 B
Makefile
Raw Normal View History

CXX = g++
CXXFLAGS = -std=c++11 -Wall
TARGET = caesar
SRCS = main.cpp caesar.cpp
OBJS = $(SRCS:.cpp=.o)
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o $(TARGET)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)
.PHONY: clean