Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Zeitlhofer
ESE_Zeitlhofer_Bajer
Commits
09eb800c
Commit
09eb800c
authored
Apr 23, 2020
by
Thomas Zeitlhofer
Browse files
Commit 02: Erstes Test-Makefile erstellt und Linux am Rechner installiert
parent
f3c4388c
Changes
1
Hide whitespace changes
Inline
Side-by-side
makefile
0 → 100644
View file @
09eb800c
# Makefile
# Version 1.0
# DEFINITIONS
CXX
=
g++
RM
=
rm
TARGET
=
calculator
SCRS
=
$(
wildcard
*
.cpp
)
OBJS
=
$
(
SCRS:%.cpp
=
%.o
)
# COMPILER FLAGS
CFLAGS
=
-g
-std
=
c++17
\
-Wall
\
-Wextra
\
-Werror
# PRE PROCESSOR FLAGS
PFLAGS
=
'-I <>'
# LINKER FLAGS
LFLAGS
=
'-L <>'
# LINKER LIBS
LLIBS
=
-lpthread
# START
$(TARGET)
:
$(OBJS)
$(CXX)
-o
$(CFLAGS)
$(LFLAGS)
$(LLIBS)
%.o
:
%.cpp
$(CXX)
-o
-c
$(CFLAGS)
$(PFLAGS)
.PHONY
:
clean
clean
:
$(RM) $(TARGET) *.o
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment