Skip to content

Commit

Permalink
make a makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
counter185 committed Sep 15, 2024
1 parent 73cddb9 commit a28eedc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gcc-build/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CXX = g++-13
CPPFLAGS = -std=c++20 -Wl,-rpath,. -Wl,-Bstatic -lpthread -lz -lpng -Wl,-Bdynamic -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -static-libstdc++ -static-libgcc
CPPFILES = ../freesprite/*.cpp ../freesprite/pugixml/*.cpp ../freesprite/zip/*.c ../freesprite/easybmp/*.cpp ../freesprite/astc_dec/*.cpp
CPPOUTNAME = ./build/voidsprite.x86_64

build: make_build_dir unzip_devlibs
$(CXX) $(CPPFILES) $(CPPFLAGS) -o $(CPPOUTNAME)

make_build_dir:
mkdir -p build

unzip_devlibs:
unzip -q -n devlibs_linux.zip *.a -d .
unzip -q -n devlibs_linux.zip *.so.* -d build
rm build/libSDL2-2.0.so.0
#FOR NOW UNTIL I FIGURE OUT WHAT ITS PROBLEM IS

0 comments on commit a28eedc

Please sign in to comment.