Репозитории ALT
S: | 24.2-alt3 |
5.1: | 22.7.3-alt6.M51.1 |
4.1: | 22.7.3-alt5 |
4.0: | 22.7.3-alt5 |
3.0: | 22.4.1-alt9 |
Группа :: Система/Ядро и оборудование
Пакет: lilo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: lilo-22.8-owl-makefile.patch
Скачать
Скачать
diff -ur lilo-22.8/Makefile lilo-22.8-owl-makefile/Makefile
--- lilo-22.8/Makefile 2013-08-11 01:15:44.000000000 +0300
+++ lilo-22.8-owl-makefile/Makefile 2013-08-11 01:18:00.000000000 +0300
@@ -116,7 +116,7 @@
NASM=nasm
G=`cat foo1 foo2 | grep version | cut -d " " -f 3`
-CFLAGS=$(OPT) -Wall -g $(PCONFIG)
+CFLAGS=$(OPT) $(PCONFIG)
LDFLAGS=#-Xlinker -qmagic
LIBS=$(DEVMAPPER)
@@ -165,10 +165,11 @@
#
# everything needed to run, just short of installation
#
-all: lilo bootsect.b diag1.img # OBSOLETE: $(BOOTS) edit dparam.com activate
+all: lilo bootsect.b
+extras: diag1.img # OBSOLETE: $(BOOTS) edit dparam.com activate
if [ -x /usr/bin/bcc -o -x /usr/local/bin/bcc ]; then \
- make diagnostic; \
- make dosexe; fi
+ $(MAKE) diagnostic; \
+ $(MAKE) dosexe; fi
#
# everything above plus the statically linked version
@@ -179,7 +180,7 @@
# documentation files
#
docs:
- make -C doc all
+ $(MAKE) -C doc all
#
# if you have the 'bcc' compiler, then you can make the diagnostics, too
@@ -202,13 +203,13 @@
@echo before you proceed from this point.
@echo "Press <Enter> to continue, <^C> to abort ..."
@read
- @make floppy1
+ @$(MAKE) floppy1
@echo Done.
@echo
@echo Remove the floppy from the drive. Label it "\"1.6\""
@echo "Press <Enter> to continue, <^C> to abort ..."
@read
- @make floppy2
+ @$(MAKE) floppy2
@echo Done.
@echo
@echo Remove the floppy from the drive. Label it "\"2.4\""
@@ -226,7 +227,7 @@
floppy2: test.img disk.b
@echo
@echo Creating Diagnostic Floppy 2.4
- @make -C diagnose check; make -C diagnose floppy
+ @$(MAKE) -C diagnose check; $(MAKE) -C diagnose floppy
diagnostic: test.img diag2.img diag3.img
dosexe: test.img lilo.com
@@ -254,10 +255,10 @@
dd if=$*.img of=$*.b bs=32 skip=1
activate: activate.c
- $(CC) -Wall -s -O -o activate activate.c $(LDFLAGS)
+ $(CC) $(CFLAGS) -o activate activate.c $(LDFLAGS)
edit: $(EDIT)
- $(CC) -Wall -s -O -DSTANDALONE -o edit $(EDIT) $(LDFLAGS)
+ $(CC) $(CFLAGS) -DSTANDALONE -o edit $(EDIT) $(LDFLAGS)
loader.i: mkloader first.b second.b third.b bitmap.b mbr.b \
chain.b os2_d.b mbr2.b
@@ -321,10 +322,10 @@
pseudo3.b: pseudo3.s
diagnose/test4.com: diagnose/test4.c
- make -C diagnose all
+ $(MAKE) -C diagnose all
diagnose/test5.com: diagnose/test5.c
- make -C diagnose all
+ $(MAKE) -C diagnose all
diag1.img: disk.com pseudo1.b
cat pseudo1.b disk.com >diag1.img
@@ -336,7 +337,7 @@
cat pseudo3.b diagnose/test5.com >diag3.img
dos/lilo.com:
- make -C dos -e CFLAGS="$(PCONFIG)" lilo.com
+ $(MAKE) -C dos -e CFLAGS="$(PCONFIG)" lilo.com
lilo.com: dos/lilo.com
cp -uf $< $@
@@ -479,23 +480,23 @@
tidy:
rm -f core $(LIS) *.shs *.crc $(TMP)*
rm -rf sbin boot usr
- make -C diagnose tidy
- make -C dos tidy
- make -C doc tidy
+ $(MAKE) -C diagnose tidy
+ $(MAKE) -C dos tidy
+ $(MAKE) -C doc tidy
if [ -x lilo ]; then strip lilo; fi
if [ -x lilo.static ]; then strip lilo.static; fi
clean: tidy
rm -f *.o *.s *.i *.img *.b tmp_make version
rm -f lilo lilo.static activate edit mkloader
- make -C diagnose clean
- make -C dos clean
+ $(MAKE) -C diagnose clean
+ $(MAKE) -C dos clean
spotless: clean
rm -f *~ */*~ *.b *.com lilo*tar.gz
- make -C diagnose spotless
- make -C dos spotless
- make -C doc clean
+ $(MAKE) -C diagnose spotless
+ $(MAKE) -C dos spotless
+ $(MAKE) -C doc clean
### Dependencies
activate.o: activate.c