Commit 09eb800c authored by Thomas Zeitlhofer's avatar Thomas Zeitlhofer
Browse files

Commit 02: Erstes Test-Makefile erstellt und Linux am Rechner installiert

parent f3c4388c
# 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment