# Link stuff together (default target):
notice: notice.o fs_notify.o
	gcc -Wall -g -o notice notice.o fs_notify.o -lports -lpthread

# Compile the C sources:
%.o: %.c
	gcc -Wall -g -c -o $@ $<

# Generate server module for fs_notify interface:
fs_notify.c: /include/hurd/fs_notify.defs
	mig -DSERVERPREFIX=S_ -n -server $@ -imacros mutations.h $<

# Remove stuff we can rebuild:
clean:
	rm -f *.o *~ notice fs_notify.c
