-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakeUnix.mk
More file actions
40 lines (33 loc) · 1.37 KB
/
makeUnix.mk
File metadata and controls
40 lines (33 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Makefile for Unix/Linux platforms using the SFML Libraries
#
# Created By: David J Tinley
# For: movement-disorders/therappeye application by https://github.com/luisgizirian
#
# Last Updated: 08/09/2023
#
# Variables
CXX = g++
CXX_FLAGS = -g -Wall -std=c++17
LIBRARIES = -lsfml-window -lsfml-graphics -lsfml-system
# Message ##############################################################################
msg:
@echo 'Makefile for Unix based platforms using SFML libraries.'
@echo 'Use command "make therappeye -f makeUnix.mk" to compile therappeye for a Unix based platform.'
@echo 'Use command "make clean -f makeUnix.mk" to clean the project folder.'
#########################################################################################
# Compile therappeye ####################################################################
therappeye: slide.o engine.o main.o
${CXX} ${CXX_FLAGS} slide.o engine.o main.o -o therappeye ${LIBRARIES}
slide.o:
${CXX} ${CXX_FLAGS} -c src/slide.cpp
engine.o:
${CXX} ${CXX_FLAGS} -c src/engine.cpp
main.o:
${CXX} ${CXX_FLAGS} -c src/main.cpp
#########################################################################################
# clean folder ##########################################################################
clean:
rm -f *.o
rm -f therappeye
#########################################################################################