Skip to content

Commit

Permalink
chore: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyvy-vi committed Oct 22, 2022
1 parent bbdf269 commit d0ce201
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ obj
*.txt
a.out

.vscode
.DS_STORE
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

CC = g++
CFLAGS = -g -Wall -std=c++14
#CPPFLAGS = -I/opt/homebrew/include -L/opt/homebrew/lib

SRC = src
OBJ = obj
SRCS = $(wildcard $(SRC)/*.cpp)
Expand All @@ -25,7 +26,7 @@ $(OBJ)/%.o: $(SRC)/%.cpp
$(CC) $(CFLAGS) -c $< -o $@

$(TEST)/bin/%: $(TEST)/%.cpp
$(CC) $(CFLAGS) $< -o $@ -lcriterion
$(CC) $(CFLAGS) $< -o $@ $(CPPFLAGS) -lcriterion

$(TEST)/bin:
mkdir $@
Expand Down

0 comments on commit d0ce201

Please sign in to comment.