jdk/make/java/nio/Makefile
changeset 8796 604a43386301
parent 8583 15dea0fdc2ea
child 10074 d2c097b2d601
equal deleted inserted replaced
8795:d235a77ef918 8796:604a43386301
     1 #
     1 #
     2 # Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
   818 $(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC)
   818 $(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC)
   819 	$(install-file)
   819 	$(install-file)
   820 
   820 
   821 $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
   821 $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
   822 	$(prep-target)
   822 	$(prep-target)
   823 	($(CD) $(TEMPDIR); $(CC) $(CPPFLAGS) $(LDDFLAGS) \
   823 	($(CD) $(TEMPDIR); $(HOST_CC) $(CPPFLAGS) $(LDDFLAGS) \
   824 	   -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
   824 	   -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
   825 
   825 
   826 $(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE)
   826 $(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE)
   827 	$(prep-target)
   827 	$(prep-target)
   828 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@
   828 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@
   849 GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \
   849 GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \
   850 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   850 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   851 
   851 
   852 $(GENUC_EXE) : $(GENUC_SRC)
   852 $(GENUC_EXE) : $(GENUC_SRC)
   853 	$(prep-target)
   853 	$(prep-target)
   854 	$(CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
   854 	$(HOST_CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
   855 
   855 
   856 $(SFS_GEN)/UnixConstants.java: $(GENUC_EXE)
   856 $(SFS_GEN)/UnixConstants.java: $(GENUC_EXE)
   857 	$(prep-target)
   857 	$(prep-target)
   858 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENUC_COPYRIGHT_YEARS)" > $@
   858 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENUC_COPYRIGHT_YEARS)" > $@
   859 	$(GENUC_EXE) >> $@
   859 	$(GENUC_EXE) >> $@
   865 GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \
   865 GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \
   866 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   866 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   867 
   867 
   868 $(GENSC_EXE) : $(GENSC_SRC)
   868 $(GENSC_EXE) : $(GENSC_SRC)
   869 	$(prep-target)
   869 	$(prep-target)
   870 	$(CC) $(CPPFLAGS) -o $@ $(GENSC_SRC)
   870 	$(HOST_CC) $(CPPFLAGS) -o $@ $(GENSC_SRC)
   871 
   871 
   872 $(SFS_GEN)/SolarisConstants.java: $(GENSC_EXE)
   872 $(SFS_GEN)/SolarisConstants.java: $(GENSC_EXE)
   873 	$(prep-target)
   873 	$(prep-target)
   874 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENSC_COPYRIGHT_YEARS)" > $@
   874 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENSC_COPYRIGHT_YEARS)" > $@
   875 	$(GENSC_EXE) >> $@
   875 	$(GENSC_EXE) >> $@