Changed working directory of the run in Makefile
This commit is contained in:
8
Makefile
8
Makefile
@ -4,11 +4,13 @@ compiler = gcc
|
||||
warningLevel = -Wall
|
||||
sources = *.c
|
||||
linker = -L".\lib"
|
||||
target = bin\Breakout.exe
|
||||
dir = bin
|
||||
target = Breakout.exe
|
||||
args = -o
|
||||
|
||||
all:
|
||||
$(compiler) $(warningLevel) $(includes) $(sources) $(linker) $(libs) $(args) $(target)
|
||||
$(compiler) $(warningLevel) $(includes) $(sources) $(linker) $(libs) $(args) $(dir)\$(target)
|
||||
|
||||
run:
|
||||
$(target)
|
||||
cd $(dir) && \
|
||||
$(target)
|
||||
|
Reference in New Issue
Block a user