# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" # # libc build rules # # This first rule picks up optimized sources for libc variants. # pics/%.o: $(OPTIMIZED_LIBCBASE)/gen/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/crt/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/crt/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/gen/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/gen/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/gen/%.s $(BUILD.s) $(POST_PROCESS_O) pics/_stack_grow.o: $(LIBCBASE)/../$(TARGET_ARCH)/gen/_stack_grow.s $(BUILD.s) $(LIBCBASE)/../$(TARGET_ARCH)/gen/_stack_grow.s $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/fp/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(MACH)/fp/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/fp/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/fp/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/fp/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/sys/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../common/sys/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/sys/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(MACH)/sys/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/sys/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/sys/%.s $(BUILD.s) $(POST_PROCESS_O) # rules to build large file aware objects (xxx64.o from xxx.s or xxx.c) pics/%64.o: $(LIBCBASE)/../common/sys/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%64.o: $(LIBCBASE)/sys/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%64.o: $(LIBCBASE)/gen/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%64.o: $(LIBCBASE)/../port/gen/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%64.o: $(LIBCBASE)/../port/sys/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%64.o: $(LIBCBASE)/../port/print/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%64.o: $(LIBCBASE)/../port/stdio/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_w.o: $(LIBCBASE)/../port/stdio/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_w.o: $(LIBCBASE)/../port/print/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_pos.o: $(LIBCBASE)/../port/i18n/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_sbyte.o: $(LIBCBASE)/../port/i18n/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_possbyte.o: $(LIBCBASE)/../port/i18n/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_longlong.o: $(LIBCBASE)/../port/i18n/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # libc build rules for objects built from "portable" source in ../port pics/%.o: $(LIBCBASE)/../port/fp/%.c $(COMPILE.c) \ -I$(LIBCBASE)/../port/fp -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../port/i18n/%.c $(COMPILE.c) \ -I$(LIBCBASE)/../port/i18n -o $@ $< $(POST_PROCESS_O) # gen rules pics/%.o %.o: $(LIBCBASE)/../port/gen/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # print rules pics/%.o: $(LIBCBASE)/../port/print/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # regex rules pics/%.o: $(LIBCBASE)/../port/regex/%.c $(COMPILE.c) -DM_I18N_MB -DI18N \ -I$(LIBCBASE)/../port/regex \ -I$(LIBCBASE)/../port/gen -o $@ $< $(POST_PROCESS_O) # stdio rules pics/%.o: $(LIBCBASE)/../port/stdio/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # c89 print, stdio rules pics/%_c89.o: $(LIBCBASE)/../port/print/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%_c89.o: $(LIBCBASE)/../port/stdio/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # aio rules pics/%.o: $(LIBCBASE)/../port/aio/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # rt rules pics/%.o: $(LIBCBASE)/../port/rt/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # tpool rules pics/%.o: $(LIBCBASE)/../port/tpool/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) # threads rules pics/%.o: $(LIBCBASE)/../port/threads/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/threads/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/threads/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/threads/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/threads/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/unwind/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/unwind/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../port/unwind/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../$(MACH)/unwind/%.s $(BUILD.s) $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../port/sys/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/../../common/common/%.c $(COMPILE.c) -o $@ $< $(POST_PROCESS_O) pics/%.o: $(LIBCBASE)/$(CRTSRCS)/%.s $(BUILD.s) $(POST_PROCESS_O) # $(SRC)/common rules pics/%.o: $(SRC)/common/atomic/$(TARGETMACH)/%.s $(BUILD.s) $(POST_PROCESS_O) $(COMOBJS:%=pics/%): $(SRC)/common/util/$$(@F:.o=.c) $(COMPILE.c) -o $@ $(SRC)/common/util/$(@F:.o=.c) $(POST_PROCESS_O) # dtrace rules pics/%.o: ../port/threads/%.d $(THREADSOBJS:%=pics/%) $(COMPILE.d) -C -xlazyload -s $< -o $@ $(THREADSOBJS:%=pics/%) $(POST_PROCESS_O) include $(SRC)/lib/Makefile.targ