sillymachine/Makefile

24 lines
1.0 KiB
Makefile

default: sillymachine
sillymachine: ./src/sillymachine.adb ./src/*.adb ./src/*.ads ./src/floattobitshelper.h ./src/floattobitshelper.c
gcc -c src/floattobitshelper.c -o floattobitshelper.o
ar -crs floattobitshelper.a floattobitshelper.o
gnatmake ./src/sillymachine.adb -largs -L./ -l:floattobitshelper.a
debug: ./src/sillymachine.adb ./src/*.adb ./src/*.ads ./src/floattobitshelper.h ./src/floattobitshelper.c
gcc -g -c src/floattobitshelper.c -o floattobitshelper.o
ar -crs floattobitshelper.a floattobitshelper.o
gnatmake ./src/sillymachine.adb -o sillymachine-debug -g -largs -L./ -l:floattobitshelper.a
win: ./src/sillymachine.adb ./src/*.adb ./src/*.ads ./src/floattobitshelper.h ./src/floattobitshelper.c
x86_64-w64-mingw32-gcc -c src/floattobitshelper.c -o floatwin.o -lwinmm -lgdi32
ar -crs floatwin.a floatwin.o
x86_64-w64-mingw32-gnatmake src/sillymachine.adb -lwinmm -lgdi32 -largs -L./ -l:floatwin.a
all: sillymachine win
clean:
rm *.o *.ali *.a sillymachine sillymachine.exe sillymachine-debug