Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homework 3 #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Homework 3 #5

wants to merge 3 commits into from

Conversation

jzych
Copy link

@jzych jzych commented Jan 20, 2019

No description provided.

Copy link
Owner

@ziobron ziobron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Powinno działać, aczkolwiek mam parę uwag.
LDFLAGS to flagi linkera, tutaj żadnych nie przekazujemy, bo -Iinc to flaga kompilacji.
CC i CFLAGS zwyczajowo są tak nazywane w języku C. W przypadku C++ nazywa się je odpowiednio CXX i CXXFLAGS.
I możesz też tutaj użyć zmiennych $@ i $<.
Jeśli masz czas to spróbuj poprawić :)

LDFLAGS=-I inc
CXX=g++
CXXFLAGS=-std=c++17 -Wall -Wextra -Wpedantic -Werror
IFLAGS=-I inc
SOURCES=*.cpp

.PHONY: all
all: debug release

debug: $(SOURCES)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jeszcze zapomnieliśmy o plikach nagłówkowych w zależnościach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants