48 lines
1.0 KiB
Diff
48 lines
1.0 KiB
Diff
|
chskshsgr must be built for the host.
|
||
|
|
||
|
--- a/src/Makefile
|
||
|
+++ b/src/Makefile
|
||
|
@@ -194,17 +194,22 @@
|
||
|
case_diffb.o: case.h case_diffb.c compile
|
||
|
./compile case_diffb.c
|
||
|
|
||
|
-chkshsgr: chkshsgr.o load
|
||
|
- ./load chkshsgr
|
||
|
+chkshsgr: chkshsgr.o loadhost
|
||
|
+ ./loadhost chkshsgr
|
||
|
|
||
|
-chkshsgr.o: chkshsgr.c compile
|
||
|
- ./compile chkshsgr.c
|
||
|
+chkshsgr.o: chkshsgr.c compilehost
|
||
|
+ ./compilehost chkshsgr.c
|
||
|
|
||
|
choose: choose.sh warn-auto.sh
|
||
|
rm -f choose
|
||
|
cat warn-auto.sh choose.sh >choose
|
||
|
chmod 555 choose
|
||
|
|
||
|
+compilehost:
|
||
|
+ cat warn-auto.sh > compilehost
|
||
|
+ @echo 'exec cc -c $${1+"$$@"}' >> compilehost
|
||
|
+ chmod 555 compilehost
|
||
|
+
|
||
|
coe.o: coe.c coe.h compile
|
||
|
./compile coe.c
|
||
|
|
||
|
@@ -351,6 +356,15 @@
|
||
|
sh print-ld.sh >load
|
||
|
chmod 555 load
|
||
|
|
||
|
+loadhost:
|
||
|
+ rm -f loadhost
|
||
|
+ @echo > loadhost
|
||
|
+ @echo 'systype="`cat systype`"' >> loadhost
|
||
|
+ @echo 'cat warn-auto.sh' >> loadhost
|
||
|
+ @echo 'main="$$1"; shift' >> loadhost
|
||
|
+ @echo 'exec cc -o "$$main" "$$main".o $${1+"$$@"}' >> loadhost
|
||
|
+ chmod 555 loadhost
|
||
|
+
|
||
|
lock_ex.o: compile hasflock.h lock.h lock_ex.c
|
||
|
./compile lock_ex.c
|
||
|
|