-nitg.types.6.o: nitg.types.6.c
- $(CC) $(CFLAGS) $(CINCL) -D NONITCNI -c -o nitg.types.6.o nitg.types.6.c
-
-nitg.types.7.o: nitg.types.7.c
- $(CC) $(CFLAGS) $(CINCL) -D NONITCNI -c -o nitg.types.7.o nitg.types.7.c
+# does pkg-config exists?
+ifneq ($(shell which pkg-config >/dev/null; echo $$?), 0)
+$(error "Command `pkg-config` not found. Please install it")
+endif
+# Check for library bdw-gc
+ifneq ($(shell pkg-config --exists 'bdw-gc'; echo $$?), 0)
+$(error "pkg-config: package bdw-gc is not found.")
+endif
+time_nit.extern.o: time_nit.c
+ $(CC) $(CFLAGS) -c -o time_nit.extern.o time_nit.c