Kaynağa Gözat

Makefiles of interface module generatrors: do not depend on local include files

Alexander Shiryaev 12 yıl önce
ebeveyn
işleme
216be36875

+ 2 - 2
BlackBox/_Linux_/Lin/Mod/gen-Ioctl/Makefile

@@ -15,8 +15,8 @@ defs-ioctl: mkioctl
 Ioctl.txt: Ioctl.txt.templ ${DEFS}
 	${PY} ./untempl.py Ioctl.txt.templ $@
 
-defs-ioctl1: /usr/include/i386-linux-gnu/bits/ioctl-types.h
-	./dumpdefs.py 3 0 s $^ | grep TIOCM_ > $@
+defs-ioctl1:
+	./dumpdefs.py 3 0 s /usr/include/i386-linux-gnu/bits/ioctl-types.h | grep TIOCM_ > $@
 
 clean:
 	rm -f mkioctl Ioctl.txt ${DEFS}

+ 5 - 5
BlackBox/_Linux_/Lin/Mod/gen-Net/Makefile

@@ -12,12 +12,12 @@ DEFS = defs-socket defs-so
 Net.txt: Net.txt.templ ${DEFS} defs-netdb defs-in defs-sock
 	${PY} ./untempl.py Net.txt.templ $@
 
-defs-socket: /usr/include/i386-linux-gnu/bits/socket.h
-	./dumpdefs.py 3 1 i $^ | grep "	PF_" > $@
-	./dumpdefs.py 3 1 i $^ | grep "	SOMAXCONN" >> $@
+defs-socket:
+	./dumpdefs.py 3 1 i /usr/include/i386-linux-gnu/bits/socket.h | grep "	PF_" > $@
+	./dumpdefs.py 3 1 i /usr/include/i386-linux-gnu/bits/socket.h | grep "	SOMAXCONN" >> $@
 
-defs-so: /usr/include/asm-generic/socket.h
-	./dumpdefs.py 3 1 s $^ | grep "	SO_" > $@
+defs-so:
+	./dumpdefs.py 3 1 s /usr/include/asm-generic/socket.h | grep "	SO_" > $@
 
 clean:
 	rm -f Net.txt ${DEFS} dumphstrerrno

+ 2 - 2
BlackBox/_Linux_/Lin/Mod/gen-Termios/Makefile

@@ -12,8 +12,8 @@ DEFS = defs-termios
 Termios.txt: Termios.txt.templ ${DEFS}
 	${PY} ./untempl.py Termios.txt.templ $@
 
-defs-termios: /usr/include/i386-linux-gnu/bits/termios.h
-	./dumpdefs.py 2 0 i $^ > $@
+defs-termios:
+	./dumpdefs.py 2 0 i /usr/include/i386-linux-gnu/bits/termios.h > $@
 
 clean:
 	rm -f Termios.txt ${DEFS}

+ 2 - 2
BlackBox/_OpenBSD_/Lin/Mod/gen-Ioctl/Makefile

@@ -15,8 +15,8 @@ defs-ioctl: mkioctl
 Ioctl.txt: Ioctl.txt.templ ${DEFS}
 	${PY} ./untempl.py Ioctl.txt.templ ${.TARGET}
 
-defs-ttycom: /usr/include/sys/ttycom.h
-	./dumpdefs.py 3 1 s ${.ALLSRC} | grep TIOCM_ > ${.TARGET}
+defs-ttycom:
+	./dumpdefs.py 3 1 s /usr/include/sys/ttycom.h | grep TIOCM_ > ${.TARGET}
 
 clean:
 	rm -f mkioctl Ioctl.txt ${DEFS}

+ 36 - 40
BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/Makefile

@@ -13,62 +13,58 @@ all: Libc.txt ${DEFS} strerrnocase.txt
 Libc.txt: Libc.txt.templ ${DEFS} libver osname machine custom fields-dirent fields-sigaction fields-siginfo fields-stack fields-stat fields-tm fields-ucontext
 	${PY} ./untempl.py Libc.txt.templ ${.TARGET}
 
-clockspersec: /usr/include/time.h
-	grep CLOCKS_PER_SEC ${.ALLSRC} | head -1 | awk '{print $$3}' | tr -d '\n' > ${.TARGET}
+clockspersec:
+	grep CLOCKS_PER_SEC /usr/include/time.h | head -1 | awk '{print $$3}' | tr -d '\n' > ${.TARGET}
 
-defs-map: /usr/include/sys/mman.h
-	./dumpdefs.py 2 0 s ${.ALLSRC} | grep "	MAP_" > ${.TARGET}
+defs-map:
+	./dumpdefs.py 2 0 s /usr/include/sys/mman.h | grep "	MAP_" > ${.TARGET}
 
-defs-prot: /usr/include/sys/mman.h
-	./dumpdefs.py 2 0 s ${.ALLSRC} | grep "	PROT_" > ${.TARGET}
+defs-prot:
+	./dumpdefs.py 2 0 s /usr/include/sys/mman.h | grep "	PROT_" > ${.TARGET}
 
-defs-sigmask: /usr/include/sys/signal.h
-	./dumpdefs.py 2 2 i ${.ALLSRC} | grep "	SIG_" > ${.TARGET}
+defs-sigmask:
+	./dumpdefs.py 2 2 i /usr/include/sys/signal.h | grep "	SIG_" > ${.TARGET}
 
-defs-signo: /usr/include/sys/signal.h
-	./dumpdefs.py 2 1 i ${.ALLSRC} | grep "	SIG" > ${.TARGET}
-	./dumpdefs.py 2 2 i ${.ALLSRC} | grep SIGWINCH >> ${.TARGET}
-	./dumpdefs.py 2 2 i ${.ALLSRC} | grep SIGTHR >> ${.TARGET}
+defs-signo:
+	./dumpdefs.py 2 1 i /usr/include/sys/signal.h | grep "	SIG" > ${.TARGET}
+	./dumpdefs.py 2 2 i /usr/include/sys/signal.h | grep SIGWINCH >> ${.TARGET}
+	./dumpdefs.py 2 2 i /usr/include/sys/signal.h | grep SIGTHR >> ${.TARGET}
 
-nsig: /usr/include/sys/signal.h
-	grep "#define _NSIG" ${.ALLSRC} | head -1 | awk '{print $$3}' | tr -d '\n' > ${.TARGET}
+nsig:
+	grep "#define _NSIG" /usr/include/sys/signal.h | head -1 | awk '{print $$3}' | tr -d '\n' > ${.TARGET}
 
-defs-fpe: /usr/include/sys/siginfo.h
-	./dumpdefs.py 2 2 i ${.ALLSRC} | grep FPE_ > ${.TARGET}
+defs-fpe:
+	./dumpdefs.py 2 2 i /usr/include/sys/siginfo.h | grep "	FPE_" > ${.TARGET}
 
-defs-sa: /usr/include/sys/signal.h
-	./dumpdefs.py 2 2 s ${.ALLSRC} | grep "	SA_" > ${.TARGET}
-	./dumpdefs.py 2 3 s ${.ALLSRC} | grep "	SA_" >> ${.TARGET}
+defs-sa:
+	./dumpdefs.py 2 2 s /usr/include/sys/signal.h | grep "	SA_" > ${.TARGET}
+	./dumpdefs.py 2 3 s /usr/include/sys/signal.h | grep "	SA_" >> ${.TARGET}
 
-defs-errno: /usr/include/sys/errno.h
-	./dumpdefs.py 2 0 i ${.ALLSRC} > ${.TARGET}
-	./dumpdefs.py 2 1 i ${.ALLSRC} >> ${.TARGET}
+defs-errno:
+	./dumpdefs.py 2 0 i /usr/include/sys/errno.h > ${.TARGET}
+	./dumpdefs.py 2 1 i /usr/include/sys/errno.h >> ${.TARGET}
 
-namemax: /usr/include/sys/syslimits.h
-	grep "	NAME_MAX	" ${.ALLSRC} | head -1 | awk '{print $$3}' | tr -d '\n' > ${.TARGET}
+namemax:
+	grep "	NAME_MAX	" /usr/include/sys/syslimits.h | head -1 | awk '{print $$3}' | tr -d '\n' > ${.TARGET}
 
-defs-fcntlo: /usr/include/fcntl.h
-	./dumpdefs.py 2 2 s ${.ALLSRC} | grep -v compat | grep "	O_" > ${.TARGET}
-	./dumpdefs.py 2 1 s ${.ALLSRC} | grep "	O_" >> ${.TARGET}
+defs-fcntlo:
+	./dumpdefs.py 2 2 s /usr/include/fcntl.h | grep -v compat | grep "	O_" > ${.TARGET}
+	./dumpdefs.py 2 1 s /usr/include/fcntl.h | grep "	O_" >> ${.TARGET}
 
 defs-basictypes: sizeofs
 	./sizeofs > ${.TARGET}
 
-defs-sc: /usr/include/unistd.h
-	./dumpdefs.py 2 1 i ${.ALLSRC} | grep _SC_ > ${.TARGET}
+defs-sc:
+	./dumpdefs.py 2 1 i /usr/include/unistd.h | grep _SC_ > ${.TARGET}
 
-#defs-siginfo: /usr/include/sys/siginfo.h
-#	./dumpdefs.py 2 1 i ${.ALLSRC} > ${.TARGET}
-#	./dumpdefs.py 2 2 i ${.ALLSRC} >> ${.TARGET}
+#defs-madv:
+#	./dumpdefs.py 2 0 i /usr/include/sys/mman.h | grep MADV > ${.TARGET}
+#	./dumpdefs.py 2 1 i /usr/include/sys/mman.h | grep MADV >> ${.TARGET}
 #
-#defs-madv: /usr/include/sys/mman.h
-#	./dumpdefs.py 2 0 i ${.ALLSRC} | grep MADV > ${.TARGET}
-#	./dumpdefs.py 2 1 i ${.ALLSRC} | grep MADV >> ${.TARGET}
-#
-#defs-siginfo1: /usr/include/sys/siginfo.h
-#	./dumpdefs.py 2 2 i ${.ALLSRC} | grep ILL_ >> ${.TARGET}
-#	./dumpdefs.py 2 2 i ${.ALLSRC} | grep SEGV_ >> ${.TARGET}
-#	./dumpdefs.py 2 2 i ${.ALLSRC} | grep BUS_ >> ${.TARGET}
+#defs-siginfo1:
+#	./dumpdefs.py 2 2 i /usr/include/sys/siginfo.h | grep ILL_ >> ${.TARGET}
+#	./dumpdefs.py 2 2 i /usr/include/sys/siginfo.h | grep SEGV_ >> ${.TARGET}
+#	./dumpdefs.py 2 2 i /usr/include/sys/siginfo.h | grep BUS_ >> ${.TARGET}
 
 dumpstrerrno.c: defs-errno
 	grep -v ERESTART ${.ALLSRC} | grep -v EJUSTRETURN | ./mkdumpstrerrno.py > ${.TARGET}

+ 12 - 12
BlackBox/_OpenBSD_/Lin/Mod/gen-Net/Makefile

@@ -12,20 +12,20 @@ DEFS = defs-socket defs-in defs-netdb
 Net.txt: Net.txt.templ ${DEFS}
 	${PY} ./untempl.py Net.txt.templ ${.TARGET}
 
-defs-socket: /usr/include/sys/socket.h
-	./dumpdefs.py 3 1 i ${.ALLSRC} | grep "	SOCK_" > ${.TARGET}
-	./dumpdefs.py 3 1 i ${.ALLSRC} | grep "	AF_" >> ${.TARGET}
-	./dumpdefs.py 3 1 i ${.ALLSRC} | grep "	SHUT_" >> ${.TARGET}
-	./dumpdefs.py 3 1 i ${.ALLSRC} | grep "	SOMAXCONN" >> ${.TARGET}
-	./dumpdefs.py 3 1 s ${.ALLSRC} | grep "	SO_" >> ${.TARGET}
-	./dumpdefs.py 3 1 i ${.ALLSRC} | grep "	SOL_" >> ${.TARGET}
-	./dumpdefs.py 3 1 s ${.ALLSRC} | grep "	MSG_" >> ${.TARGET}
+defs-socket:
+	./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "	SOCK_" > ${.TARGET}
+	./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "	AF_" >> ${.TARGET}
+	./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "	SHUT_" >> ${.TARGET}
+	./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "	SOMAXCONN" >> ${.TARGET}
+	./dumpdefs.py 3 1 s /usr/include/sys/socket.h | grep "	SO_" >> ${.TARGET}
+	./dumpdefs.py 3 1 i /usr/include/sys/socket.h | grep "	SOL_" >> ${.TARGET}
+	./dumpdefs.py 3 1 s /usr/include/sys/socket.h | grep "	MSG_" >> ${.TARGET}
 
-defs-in: /usr/include/netinet/in.h
-	./dumpdefs.py 3 1 i ${.ALLSRC} | grep "	IPPROTO_" > ${.TARGET}
+defs-in:
+	./dumpdefs.py 3 1 i /usr/include/netinet/in.h | grep "	IPPROTO_" > ${.TARGET}
 
-defs-netdb: /usr/include/netdb.h
-	./dumpdefs.py 3 2 i ${.ALLSRC} > ${.TARGET}
+defs-netdb:
+	./dumpdefs.py 3 2 i /usr/include/netdb.h > ${.TARGET}
 
 clean:
 	rm -f Net.txt ${DEFS} dumphstrerrno

+ 4 - 4
BlackBox/_OpenBSD_/Lin/Mod/gen-Termios/Makefile

@@ -12,10 +12,10 @@ DEFS = defs-termios
 Termios.txt: Termios.txt.templ ${DEFS}
 	${PY} ./untempl.py Termios.txt.templ ${.TARGET}
 
-defs-termios: /usr/include/termios.h
-	./dumpdefs.py 2 0 i ${.ALLSRC} > ${.TARGET}
-	./dumpdefs.py 2 1 i ${.ALLSRC} | grep -v compat >> ${.TARGET}
-	./dumpdefs.py 2 2 i ${.ALLSRC} | grep -v compat | grep -v CHWFLOW >> ${.TARGET}
+defs-termios:
+	./dumpdefs.py 2 0 i /usr/include/termios.h > ${.TARGET}
+	./dumpdefs.py 2 1 i /usr/include/termios.h | grep -v compat >> ${.TARGET}
+	./dumpdefs.py 2 2 i /usr/include/termios.h | grep -v compat | grep -v CHWFLOW >> ${.TARGET}
 
 clean:
 	rm -f Termios.txt ${DEFS}