Pierre Pronchery wrote:
The attached patch is for ADLO, but the generic build system would need
to be fixed as well.
Some more trivial Makefile cleanup.
HTH,
--
khorben
Index: Makefile
===================================================================
--- Makefile (revision 3359)
+++ Makefile (working copy)
@@ -31,17 +31,24 @@
bios: rombios.bin
-rombios.bin: rombios.c
- gcc -E -P $< > _rombios_.c
- bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
- sed -e 's/^.text//' -e 's/^.data//' rombios.s > _rombios_.s
+rombios.bin: rombios.s
as86 _rombios_.s -b rombios.bin -u- -w- -g -0 -j -O -l rombios.txt
ls -l rombios.bin
+_rombios_.s: rombios.s
+ sed -e 's/^.text//' -e 's/^.data//' rombios.s > _rombios_.s
+
+rombios.s: _rombios_.c
+ bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
+
+_rombios_.c: rombios.c
+ gcc -E -P $< > _rombios_.c
+
# -----------------------------------------------------------------
clean:
- rm -f *.s
+ rm -f _rombios_.s
+ rm -f rombios.s
rm -f _rombios_.c
rm -f rombios.txt
rm -f rombios.bin