diff --git a/make/java/nio/Makefile b/make/java/nio/Makefile index b72cfc1eb1ac26583331cda3c28be92bac2993b2..a6308810b25059e33b21531ad83adfa0917f9ca9 100644 --- a/make/java/nio/Makefile +++ b/make/java/nio/Makefile @@ -849,6 +849,7 @@ $(FILES_gensbcs_out): $(GENCSSRC)/SingleByte-X.java.template $(GENCSSRC)/sbcs GENUC_SRC = $(PLATFORM_SRC)/native/sun/nio/fs/genUnixConstants.c +GENUC_OBJ = $(TEMPDIR)/genUnixConstants.o GENUC_EXE = $(TEMPDIR)/genUnixConstants GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \ @@ -856,7 +857,8 @@ GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \ $(GENUC_EXE) : $(GENUC_SRC) $(prep-target) - $(CC) $(CPPFLAGS) -o $@ $(GENUC_SRC) + $(CC) $(CPPFLAGS) -c -o $(GENUC_OBJ) $(GENUC_SRC) + $(CC) $(CPPFLAGS) -o $@ $(GENUC_OBJ) ifdef NIO_PLATFORM_CLASSES_ROOT_DIR $(SFS_GEN)/UnixConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/UnixConstants-$(PLATFORM)-$(ARCH).java @@ -871,6 +873,7 @@ endif GENSC_SRC = $(PLATFORM_SRC)/native/sun/nio/fs/genSolarisConstants.c +GENSC_OBJ = $(TEMPDIR)/genSolarisConstants.o GENSC_EXE = $(TEMPDIR)/genSolarisConstants GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \ @@ -878,7 +881,8 @@ GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \ $(GENSC_EXE) : $(GENSC_SRC) $(prep-target) - $(CC) $(CPPFLAGS) -o $@ $(GENSC_SRC) + $(CC) $(CPPFLAGS) -c -o $(GENSC_OBJ) $(GENSC_SRC) + $(CC) $(CPPFLAGS) -o $@ $(GENSC_OBJ) ifdef NIO_PLATFORM_CLASSES_ROOT_DIR $(SFS_GEN)/SolarisConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/SolarisConstants-$(PLATFORM)-$(ARCH).java diff --git a/make/sun/xawt/Makefile b/make/sun/xawt/Makefile index 460818a8f33fa22b7e1ad6da55ea5e5a48559553..480f40cd896cdc70ab371b100e0ddc0ffd199ab1 100644 --- a/make/sun/xawt/Makefile +++ b/make/sun/xawt/Makefile @@ -251,9 +251,11 @@ XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt $(SIZERS): $(SIZERS_C) $(prep-target) ifndef CROSS_COMPILE_ARCH - $(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).c + $(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c + $(CC) $(CFLAGS_$(subst .,,$(suffix $@))) -o $@ $(CPPFLAGS) $(SIZER)$(suffix $@).o else - $(HOST_CC) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).c + $(HOST_CC) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c + $(HOST_CC) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).o endif $(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)