Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CPP = g++
- FLAGS = -Wall
- LFLAGS = -lsfml-graphics -lsfml-window -lsfml-system
- EXEC = graphics
- OBJS = graphics-window.o
- default: ${EXEC}
- clean:
- rm -f ${EXEC}
- rm -f *.o
- run: ${EXEC}
- ./${EXEC}
- ${EXEC}: ${OBJS}
- ${CPP} -o $@ $^ ${LFLAGS}
- %.o: %.cpp
- ${CPP} ${FLAGS} -o $@ -c $<
- .PHONY: default clean run
- #g++ -c graphics-window.cpp
- #g++ -o graphics graphics-window.o -lsfml-graphics -lsfml-window -lsfml-system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement