You've already forked ada_libfswatch
mirror of
https://github.com/AdaCore/ada_libfswatch.git
synced 2026-02-12 13:09:18 -08:00
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.
18 lines
443 B
Makefile
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
|