Skip to content

Commit

Permalink
🐦 PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeFTN committed Apr 27, 2023
1 parent a23f5e5 commit 899b522
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Game.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
make clean
make

# Library to PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

./bin/Game
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ CFLAGS= -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
OBJECTS=src/main.o src/ball/ball.o src/ball/setter.o src/ball/getter.o src/map/map.o
CFILES=src/main.cpp src/ball/ball.cpp src/ball/setter.cpp src/ball/getter.cpp src/map/map.cpp

# Export to PATH
UNAME := $(shell uname)


ifeq ($(UNAME), Linux)
export LD_LIBRARY_PATH := /usr/local/lib:$(LD_LIBRARY_PATH)
endif

$(BINARY): $(OBJECTS)
mkdir -p bin/
$(CC) $^ -o $@ $(CFLAGS)
Expand Down

0 comments on commit 899b522

Please sign in to comment.