You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.3 KiB

#!/bin/bash
outfile="lite"
compiler="gcc"
cxxcompiler="g++"
INCPATH="-Isrc -Ilib/font_renderer -I/sdk/local/newlib/include/SDL2"
DFLAGS="-D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR -DLITE_USE_SDL_RENDERER"
CFLAGS="-Wall -O3 -std=gnu11 -fno-strict-aliasing"
LFLAGS="-mcrt=newlib -static-libgcc -static-libstdc++ -lauto -lSDL2 -lfontrenderer -lagg -lfreetype -llua -lm -lpthread -athread=native"
echo "compiling lite..."
gcc -c src/fontdesc.c -o fontdesc.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/main.c -o main.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/rencache.c -o rencache.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/renderer.c -o renderer.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/renwindow.c -o renwindow.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/api/api.c -o api.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/api/cp_replace.c -o cp_replace.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/api/renderer.c -o apirenderer.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/api/renderer_font.c -o renderer_font.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/api/system.c -o system.o $CFLAGS $INCPATH $DFLAGS
gcc -c src/platform/amigaos4.c -o amigaos4.o $CFLAGS $INCPATH $DFLAGS
echo "linking..."
g++ -o $outfile *.o $LFLAGS
echo "cleaning up..."
rm *.o
echo "done"