moved PLATFORM and associated definitions from Makefile to kernel/Makefile so the kernel can be built by itself

git-svn-id: svn://anubis/hos/trunk@17 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
josh committed 2009-06-25 18:03:39 +00:00
1 parent 8493002072
commit 1b0da72e5a
3 files changed
+23 -17

No files matched your search

+17
View File
@@ -2,6 +2,23 @@
KERNEL := hos
LDFLAGS := -T link.ld
export PLATFORM := $(shell if [[ `uname` =~ "CYGWIN" ]]; then \
echo cygwin; \
else \
echo unix; \
fi)
ifeq ($(PLATFORM), cygwin)
export LD := i586-elf-ld
export CC := i586-elf-gcc
export CXX := i586-elf-g++
else
export LD := ld
export CC := gcc
export CXX := g++
endif
export NASM := nasm
.PHONY: all
all: $(KERNEL).gz