Make Makefiles OSF-make-friendly.
PR: 3165
(cherry picked from commit d1cf23ac86)
			
			
This commit is contained in:
		@@ -77,7 +77,9 @@ ia64cpuid.s: ia64cpuid.S;	$(CC) $(CFLAGS) -E ia64cpuid.S > $@
 | 
				
			|||||||
ppccpuid.s:	ppccpuid.pl;	$(PERL) ppccpuid.pl $(PERLASM_SCHEME) $@
 | 
					ppccpuid.s:	ppccpuid.pl;	$(PERL) ppccpuid.pl $(PERLASM_SCHEME) $@
 | 
				
			||||||
pariscid.s:	pariscid.pl;	$(PERL) pariscid.pl $(PERLASM_SCHEME) $@
 | 
					pariscid.s:	pariscid.pl;	$(PERL) pariscid.pl $(PERLASM_SCHEME) $@
 | 
				
			||||||
alphacpuid.s:	alphacpuid.pl
 | 
					alphacpuid.s:	alphacpuid.pl
 | 
				
			||||||
	$(PERL) $< | $(CC) -E - | tee $@ > /dev/null
 | 
						(preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
 | 
				
			||||||
 | 
						$(PERL) alphacpuid.pl > $$preproc && \
 | 
				
			||||||
 | 
						$(CC) -E $$preproc > $@ && rm $$preproc)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
testapps:
 | 
					testapps:
 | 
				
			||||||
	[ -z "$(THIS)" ] || (	if echo $(SDIRS) | fgrep ' des '; \
 | 
						[ -z "$(THIS)" ] || (	if echo $(SDIRS) | fgrep ' des '; \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -125,7 +125,9 @@ ppc-mont.s:	asm/ppc-mont.pl;$(PERL) asm/ppc-mont.pl $(PERLASM_SCHEME) $@
 | 
				
			|||||||
ppc64-mont.s:	asm/ppc64-mont.pl;$(PERL) asm/ppc64-mont.pl $(PERLASM_SCHEME) $@
 | 
					ppc64-mont.s:	asm/ppc64-mont.pl;$(PERL) asm/ppc64-mont.pl $(PERLASM_SCHEME) $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alpha-mont.s:	asm/alpha-mont.pl
 | 
					alpha-mont.s:	asm/alpha-mont.pl
 | 
				
			||||||
	$(PERL) $< | $(CC) -E - | tee $@ > /dev/null
 | 
						(preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
 | 
				
			||||||
 | 
						$(PERL) asm/alpha-mont.pl > $$preproc && \
 | 
				
			||||||
 | 
						$(CC) -E $$preproc > $@ && rm $$preproc)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# GNU make "catch all"
 | 
					# GNU make "catch all"
 | 
				
			||||||
%-mont.s:	asm/%-mont.pl;	$(PERL) $< $(PERLASM_SCHEME) $@
 | 
					%-mont.s:	asm/%-mont.pl;	$(PERL) $< $(PERLASM_SCHEME) $@
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,7 +67,7 @@ files:
 | 
				
			|||||||
links:
 | 
					links:
 | 
				
			||||||
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
 | 
						@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
 | 
				
			||||||
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
 | 
						@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
 | 
				
			||||||
	[ ! -f $(TESTDATA) ] || cp $(TESTDATA) ../../test
 | 
						@[ -f $(TESTDATA) ] && cp $(TESTDATA) ../../test && echo "$(TESTDATA) -> ../../test/$(TESTDATA)"
 | 
				
			||||||
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
 | 
						@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,7 +53,10 @@ ghash-x86_64.s:	asm/ghash-x86_64.pl
 | 
				
			|||||||
ghash-sparcv9.s:	asm/ghash-sparcv9.pl
 | 
					ghash-sparcv9.s:	asm/ghash-sparcv9.pl
 | 
				
			||||||
	$(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
 | 
						$(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
 | 
				
			||||||
ghash-alpha.s:	asm/ghash-alpha.pl
 | 
					ghash-alpha.s:	asm/ghash-alpha.pl
 | 
				
			||||||
	$(PERL) $< | $(CC) -E - | tee $@ > /dev/null
 | 
						(preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
 | 
				
			||||||
 | 
						$(PERL) asm/ghash-alpha.pl > $$preproc && \
 | 
				
			||||||
 | 
						$(CC) -E $$preproc > $@ && rm $$preproc)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ghash-parisc.s:	asm/ghash-parisc.pl
 | 
					ghash-parisc.s:	asm/ghash-parisc.pl
 | 
				
			||||||
	$(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
 | 
						$(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -60,7 +60,9 @@ sha256-armv4.S: asm/sha256-armv4.pl
 | 
				
			|||||||
	$(PERL) $< $(PERLASM_SCHEME) $@
 | 
						$(PERL) $< $(PERLASM_SCHEME) $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sha1-alpha.s:	asm/sha1-alpha.pl
 | 
					sha1-alpha.s:	asm/sha1-alpha.pl
 | 
				
			||||||
	$(PERL) $< | $(CC) -E - | tee $@ > /dev/null
 | 
						(preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
 | 
				
			||||||
 | 
						$(PERL) asm/sha1-alpha.pl > $$preproc && \
 | 
				
			||||||
 | 
						$(CC) -E $$preproc > $@ && rm $$preproc)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Solaris make has to be explicitly told
 | 
					# Solaris make has to be explicitly told
 | 
				
			||||||
sha1-x86_64.s:	asm/sha1-x86_64.pl;	$(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
 | 
					sha1-x86_64.s:	asm/sha1-x86_64.pl;	$(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -90,4 +90,8 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
cmd="$1${EXE_EXT}"
 | 
					cmd="$1${EXE_EXT}"
 | 
				
			||||||
shift
 | 
					shift
 | 
				
			||||||
exec "$cmd" "$@"
 | 
					if [ $# -eq 0 ]; then
 | 
				
			||||||
 | 
						exec "$cmd"	# old sh, such as Tru64 4.x, fails to expand empty "$@"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
						exec "$cmd" "$@"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user