1 ISO9660FS_DIR
= $(KERNEL_ADDONS_DIR
)/fs
/iso9660
2 ISO9660FS_OBJ_DIR
= $(ISO9660FS_DIR
)/$(OBJ_DIR
)
4 $(ISO9660FS_OBJ_DIR
)/isofs.o
6 DEPS
+= $(ISO9660FS_OBJS
:.o
=.d
)
8 ISO9660FS_ADDON
= $(ISO9660FS_OBJ_DIR
)/iso9660fs
10 KERNEL_ADDONS
+= $(ISO9660FS_ADDON
)
12 $(ISO9660FS_ADDON
): $(ISO9660FS_OBJS
) $(LIBKERNEL
)
13 $(LD
) -Bdynamic
-shared
-T
$(KERNEL_ARCH_DIR
)/addon.
ld -L
$(LIBGCC_PATH
) -L
$(KERNEL_OBJ_DIR
) -o
$@
$(ISO9660FS_OBJS
) $(LIBGCC
) -lsystem
16 rm -f
$(ISO9660FS_OBJS
) $(ISO9660FS_ADDON
)
20 # build prototypes - this covers architecture dependant subdirs
22 $(ISO9660FS_OBJ_DIR
)/%.o
: $(ISO9660FS_DIR
)/%.c
23 @if
[ ! -d
$(ISO9660FS_OBJ_DIR
) ]; then mkdir
-p
$(ISO9660FS_OBJ_DIR
); fi
24 $(CC
) -c
$< $(GLOBAL_CFLAGS
) $(KERNEL_ADDONS_CFLAGS
) $(KERNEL_ADDONS_INCLUDES
) -o
$@
26 $(ISO9660FS_OBJ_DIR
)/%.d
: $(ISO9660FS_DIR
)/%.c
27 @if
[ ! -d
$(ISO9660FS_OBJ_DIR
) ]; then mkdir
-p
$(ISO9660FS_OBJ_DIR
); fi
28 @echo
"making deps for $<..."
29 @
($(ECHO
) -n
$(dir $@
); $(CC
) $(GLOBAL_CFLAGS
) $(KERNEL_ADDONS_CFLAGS
) $(KERNEL_ADDONS_INCLUDES
) -M
-MG
$<) > $@