Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojTGN authored May 24, 2024
1 parent d73179f commit a4b75ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ _test: _build
./test/test.exe

rc:
if [ ! -d build ]; then mkdir build; fi
windres ascii.rc -o build/asciirc.o

renderer:
if [ ! -d build ]; then mkdir build; fi
$(CXX) -shared -o build/renderer.dll src/renderer.cpp -Wno-write-strings

_build: clean renderer rc
Expand All @@ -20,6 +22,7 @@ _build: clean renderer rc
$(CC) -o build/ascii.exe build/ascii.o src/main.c -Lbuild -lrenderer build/asciirc.o

clean:
if [ ! -d build ]; then mkdir build; fi
rm -rf build/*.o
rm -rf build/*.exe
rm -rf build/*.dll

0 comments on commit a4b75ef

Please sign in to comment.