Print this page
XXX Remove nawk(1)


 289         @echo "  .align 4"                      >> $(OBJS_DIR)/fb_swtch.s
 290         @echo "  .globl fb_swtch_size"          >> $(OBJS_DIR)/fb_swtch.s
 291         @echo "fb_swtch_size:"                  >> $(OBJS_DIR)/fb_swtch.s
 292         @echo "  .long . - fb_swtch_image"      >> $(OBJS_DIR)/fb_swtch.s
 293         $(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s
 294 
 295 # ridiculous contortions ---
 296 ATOMIC_SUBDIR_32        = i386
 297 ATOMIC_SUBDIR_64        = amd64
 298 ATOMIC_SUBDIR           = $(ATOMIC_SUBDIR_$(CLASS))
 299 
 300 $(OBJS_DIR)/%.o:                $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
 301         $(COMPILE.s) -o $@ $<
 302 
 303 #
 304 # dtrace stubs
 305 #
 306 
 307 $(OBJS_DIR)/dtracestubs.s:      $(UNIX_O) $(LIBS)
 308         $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
 309             $(UNIQ) | $(NAWK) '{ \
 310             printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
 311             $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
 312 
 313 $(DTRACESTUBS): $(DTRACESTUBS_O)
 314         $(BUILD.SO) $(DTRACESTUBS_O)
 315 
 316 #
 317 #       Section 1b: Lint `object' build rules
 318 #
 319 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/conf/%.c
 320         @($(LHEAD) $(LINT.c) $< $(LTAIL))
 321 
 322 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
 323         @($(LHEAD) $(LINT.c) $< $(LTAIL))
 324 
 325 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/cpu/authenticamd/%.c
 326         @($(LHEAD) $(LINT.c) $< $(LTAIL))
 327 
 328 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
 329         @($(LHEAD) $(LINT.c) $< $(LTAIL))




 289         @echo "  .align 4"                      >> $(OBJS_DIR)/fb_swtch.s
 290         @echo "  .globl fb_swtch_size"          >> $(OBJS_DIR)/fb_swtch.s
 291         @echo "fb_swtch_size:"                  >> $(OBJS_DIR)/fb_swtch.s
 292         @echo "  .long . - fb_swtch_image"      >> $(OBJS_DIR)/fb_swtch.s
 293         $(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s
 294 
 295 # ridiculous contortions ---
 296 ATOMIC_SUBDIR_32        = i386
 297 ATOMIC_SUBDIR_64        = amd64
 298 ATOMIC_SUBDIR           = $(ATOMIC_SUBDIR_$(CLASS))
 299 
 300 $(OBJS_DIR)/%.o:                $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
 301         $(COMPILE.s) -o $@ $<
 302 
 303 #
 304 # dtrace stubs
 305 #
 306 
 307 $(OBJS_DIR)/dtracestubs.s:      $(UNIX_O) $(LIBS)
 308         $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
 309             $(UNIQ) | $(AWK) '{ \
 310             printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
 311             $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
 312 
 313 $(DTRACESTUBS): $(DTRACESTUBS_O)
 314         $(BUILD.SO) $(DTRACESTUBS_O)
 315 
 316 #
 317 #       Section 1b: Lint `object' build rules
 318 #
 319 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/conf/%.c
 320         @($(LHEAD) $(LINT.c) $< $(LTAIL))
 321 
 322 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
 323         @($(LHEAD) $(LINT.c) $< $(LTAIL))
 324 
 325 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/cpu/authenticamd/%.c
 326         @($(LHEAD) $(LINT.c) $< $(LTAIL))
 327 
 328 $(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
 329         @($(LHEAD) $(LINT.c) $< $(LTAIL))