Files
ada_libfswatch/Makefile
Nicolas Setton 6ab6448692 Fixes for Windows
Workaround issue when binding time.h under Windows.
Add basic as a main for the examples project.

Add an example of how to stop a monitoring session.
2020-10-16 14:50:00 +01:00

18 lines
443 B
Makefile

all: generated
gprbuild -p -P ada_libfswatch
# warn if libfswatch/ is not populated
libfswatch:
@echo "you need to install the libfswatch library in libfswatch/"
@exit 1
# generate the Ada binding
generated: libfswatch
(mkdir -p generated; cd libfswatch/include/libfswatch/c/ ; \
gcc -C -fdump-ada-spec libfswatch.h -D_TIMEZONE_DEFINED; \
mv *.ads ../../../../generated/)
clean:
gprclean -P ada_libfswatch
rm -rf generated