21 lines
274 B
Makefile
21 lines
274 B
Makefile
|
CXX = g++
|
||
|
|
||
|
CXXFLAGS = -std=c++11 -Wall
|
||
|
|
||
|
TARGET = FramebufferFun
|
||
|
|
||
|
SRCS = main.cpp framebuffer.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
|