Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/unix/Makefile.static

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



default: it

compile: \
warn-auto.sh conf-cc
	( cat warn-auto.sh; \
	echo exec "`sed 1q conf-cc`" '-c $${1+"$$@"}' \
	) > compile
	chmod 755 compile

preprocess: \
warn-auto.sh conf-cc
	( cat warn-auto.sh; \
	echo exec "`sed 1q conf-cc`" '-E $${1+"$$@"}' \
	) > preprocess
	chmod 755 preprocess

load: \
warn-auto.sh conf-ld
	( cat warn-auto.sh; \
	echo 'main="$$1"; shift'; \
	echo exec "`sed 1q conf-ld`" \
	'-o "$$main" "$$main".o $${1+"$$@"}' \
	) > load
	chmod 755 load

makelib: \
warn-auto.sh systype
	( cat warn-auto.sh; \
	echo 'main="$$1"; shift'; \
	echo 'rm -f "$$main"'; \
	echo 'ar cr "$$main" $${1+"$$@"}'; \
	case "`cat systype`" in \
	sunos-5.*) ;; \
	unix_sv*) ;; \
	irix64-*) ;; \
	irix-*) ;; \
	dgux-*) ;; \
	hp-ux-*) ;; \
	sco*) ;; \
	*) echo 'ranlib "$$main"' ;; \
	esac \
	) > makelib
	chmod 755 makelib

choose: \
warn-auto.sh choose.sh
	cat warn-auto.sh choose.sh \
	> choose
	chmod 755 choose

systype: \
find-systype.sh conf-cc conf-ld trycpp.c x86cpuid.c
	( cat warn-auto.sh; \
	echo CC=\'`sed 1q conf-cc`\'; \
	echo LD=\'`sed 1q conf-ld`\'; \
	cat find-systype.sh; \
	) | sh > systype

clean:
	rm -f `cat TARGETS`

iopause.h: \
choose compile load trypoll.c iopause.h1 iopause.h2
	./choose clr trypoll iopause.h1 iopause.h2 > iopause.h

uint32.h: \
preprocess tryulong.c uint32.h1 uint32.h2
	if test `./preprocess tryulong.c | tail -1` -eq 32; then cat uint32.h2; else cat uint32.h1; fi > uint32.h

uint64.h: \
preprocess tryulong.c uint64.h1 uint64.h2
	if test `./preprocess tryulong.c | tail -1` -eq 64; then cat uint64.h2; else cat uint64.h1; fi > uint64.h

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.