35
36 #
37 # All C objects depend on inline files. However, cc(1) doesn't generate
38 # the correct dependency info. Also, these Makefiles don't contain a
39 # separate list of C-derived object files (but it is light weight to
40 # let the assembler files think they depend upon this when they don't).
41 # Fortunately, the inline files won't change very often. So, for now,
42 # all objects depend on the inline files. Remove this when the inliner
43 # is fixed to drop correct dependency information.
44 #
45 $(OBJECTS): $(INLINES)
46
47 #
48 # Partially link .o files to generate the kmod. The fake dependency
49 # on modstubs simplifies things...
50 # ELFSIGN_MOD is defined in the individual KCF plug-in modules Makefiles,
51 # and will sign the ELF objects using elfsign(1).
52 #
53 $(BINARY): $(OBJECTS)
54 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
55 $(CTFMERGE_UNIQUIFY_AGAINST_GENUNIX)
56 $(POST_PROCESS)
57 $(ELFSIGN_MOD)
58
59 #
60 # This target checks each kmod for undefined entry points. It does not
61 # modify the kmod in any way.
62 #
63 $(MODULE).check: FRC
64 @BUILD_TYPE=DBG32 $(MAKE) $(MODULE).check.targ
65
66 $(MODULE).check.targ: $(BINARY) $(OBJECTS) $(EXTRA_CHECK_OBJS) $(UNIX_O) $(MODSTUBS_O) $(GENLIB)
67 $(LD) -o /dev/null $(OBJECTS) $(EXTRA_CHECK_OBJS) $(UNIX_O) $(MODSTUBS_O) $(GENLIB)
68
69 #
70 # Module lint library construction targets.
71 #
72 MOD_LINT_LIB = $(LINT_LIB_DIR)/llib-l$(LINT_MODULE).ln
73
74 $(MOD_LINT_LIB): $(LINT_LIB_DIR) $(LINTS)
75 @-$(ECHO) "\n$(OBJS_DIR)/$(MODULE): (library construction):"
|
35
36 #
37 # All C objects depend on inline files. However, cc(1) doesn't generate
38 # the correct dependency info. Also, these Makefiles don't contain a
39 # separate list of C-derived object files (but it is light weight to
40 # let the assembler files think they depend upon this when they don't).
41 # Fortunately, the inline files won't change very often. So, for now,
42 # all objects depend on the inline files. Remove this when the inliner
43 # is fixed to drop correct dependency information.
44 #
45 $(OBJECTS): $(INLINES)
46
47 #
48 # Partially link .o files to generate the kmod. The fake dependency
49 # on modstubs simplifies things...
50 # ELFSIGN_MOD is defined in the individual KCF plug-in modules Makefiles,
51 # and will sign the ELF objects using elfsign(1).
52 #
53 $(BINARY): $(OBJECTS)
54 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
55 $(CTFMERGE_MODULE)
56 $(POST_PROCESS)
57 $(ELFSIGN_MOD)
58
59 #
60 # This target checks each kmod for undefined entry points. It does not
61 # modify the kmod in any way.
62 #
63 $(MODULE).check: FRC
64 @BUILD_TYPE=DBG32 $(MAKE) $(MODULE).check.targ
65
66 $(MODULE).check.targ: $(BINARY) $(OBJECTS) $(EXTRA_CHECK_OBJS) $(UNIX_O) $(MODSTUBS_O) $(GENLIB)
67 $(LD) -o /dev/null $(OBJECTS) $(EXTRA_CHECK_OBJS) $(UNIX_O) $(MODSTUBS_O) $(GENLIB)
68
69 #
70 # Module lint library construction targets.
71 #
72 MOD_LINT_LIB = $(LINT_LIB_DIR)/llib-l$(LINT_MODULE).ln
73
74 $(MOD_LINT_LIB): $(LINT_LIB_DIR) $(LINTS)
75 @-$(ECHO) "\n$(OBJS_DIR)/$(MODULE): (library construction):"
|