forked from KolibriOS/kolibrios
oops, restore tabulation in Makefile
git-svn-id: svn://kolibrios.org@5084 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0cbc1cfedf
commit
10723a5892
38
kernel/trunk/Makefile
Normal file
38
kernel/trunk/Makefile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
FASM=fasm
|
||||||
|
FLAGS=-m 65536
|
||||||
|
languages=en|ru|ge|et|sp
|
||||||
|
|
||||||
|
.PHONY: all kernel bootloader clean
|
||||||
|
|
||||||
|
all: kernel bootloader
|
||||||
|
|
||||||
|
kernel: check_lang
|
||||||
|
@echo "*** building kernel with language '$(lang)' ..."
|
||||||
|
@mkdir -p bin
|
||||||
|
@echo "lang fix $(lang)" > lang.inc
|
||||||
|
@echo "--- building 'bin/kernel.mnt' ..."
|
||||||
|
@$(FASM) $(FLAGS) kernel.asm bin/kernel.mnt
|
||||||
|
@rm -f lang.inc
|
||||||
|
|
||||||
|
bootloader: check_lang
|
||||||
|
@echo "*** building bootloader with language '$(lang)' ..."
|
||||||
|
@mkdir -p bin
|
||||||
|
@echo "lang fix $(lang)" > lang.inc
|
||||||
|
@echo "--- building 'bin/boot_fat12.bin' ..."
|
||||||
|
@$(FASM) $(FLAGS) bootloader/boot_fat12.asm bin/boot_fat12.bin
|
||||||
|
@rm -f lang.inc
|
||||||
|
|
||||||
|
|
||||||
|
check_lang:
|
||||||
|
@case "$(lang)" in \
|
||||||
|
$(languages)) \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
echo "*** error: language is incorrect or not specified"; \
|
||||||
|
exit 1; \
|
||||||
|
;; \
|
||||||
|
esac
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf bin
|
||||||
|
rm -f lang.inc
|
@ -1,38 +0,0 @@
|
|||||||
FASM=fasm
|
|
||||||
FLAGS=-m 65536
|
|
||||||
languages=en|ru|ge|et|sp
|
|
||||||
|
|
||||||
.PHONY: all kernel bootloader clean
|
|
||||||
|
|
||||||
all: kernel bootloader
|
|
||||||
|
|
||||||
kernel: check_lang
|
|
||||||
@echo "*** building kernel with language '$(lang)' ..."
|
|
||||||
@mkdir -p bin
|
|
||||||
@echo "lang fix $(lang)" > lang.inc
|
|
||||||
@echo "--- building 'bin/kernel.mnt' ..."
|
|
||||||
@$(FASM) $(FLAGS) kernel.asm bin/kernel.mnt
|
|
||||||
@rm -f lang.inc
|
|
||||||
|
|
||||||
bootloader: check_lang
|
|
||||||
@echo "*** building bootloader with language '$(lang)' ..."
|
|
||||||
@mkdir -p bin
|
|
||||||
@echo "lang fix $(lang)" > lang.inc
|
|
||||||
@echo "--- building 'bin/boot_fat12.bin' ..."
|
|
||||||
@$(FASM) $(FLAGS) bootloader/boot_fat12.asm bin/boot_fat12.bin
|
|
||||||
@rm -f lang.inc
|
|
||||||
|
|
||||||
|
|
||||||
check_lang:
|
|
||||||
@case "$(lang)" in \
|
|
||||||
$(languages)) \
|
|
||||||
;; \
|
|
||||||
*) \
|
|
||||||
echo "*** error: language is incorrect or not specified"; \
|
|
||||||
exit 1; \
|
|
||||||
;; \
|
|
||||||
esac
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf bin
|
|
||||||
rm -f lang.inc
|
|
Loading…
Reference in New Issue
Block a user