all: io_uninit_get_matching_services_ool io_uninit_get_matching_service_ool io_uninit_match_property_table_ool \
io_uninit_add_notification_ool iokitUser.c

iokitUser.c:
	mig -DIOKIT -DIOKIT_ALL_IPC device.defs

io_uninit_get_matching_services_ool: io_uninit_get_matching_services_ool.c iokitUser.c
	clang -DIOKIT -o io_uninit_get_matching_services_ool io_uninit_get_matching_services_ool.c iokitUser.c -framework IOKit
	sync

io_uninit_get_matching_service_ool: io_uninit_get_matching_service_ool.c iokitUser.c
	clang -DIOKIT -o io_uninit_get_matching_service_ool io_uninit_get_matching_service_ool.c iokitUser.c -framework IOKit
	sync

io_uninit_match_property_table_ool: io_uninit_match_property_table_ool.c iokitUser.c
	clang -DIOKIT -o io_uninit_match_property_table_ool io_uninit_match_property_table_ool.c iokitUser.c -framework IOKit
	sync

io_uninit_add_notification_ool: io_uninit_add_notification_ool.c iokitUser.c
	clang -DIOKIT -o io_uninit_add_notification_ool io_uninit_add_notification_ool.c iokitUser.c -framework IOKit
	sync

clean:
	rm -rf io_uninit_get_matching_services_ool io_uninit_get_matching_service_ool io_uninit_match_property_table_ool io_uninit_add_notification_ool iokitUser.c
