metalsvm/Makefile.example
2010-08-02 09:50:12 +00:00

33 lines
847 B
Text

export TOPDIR = /home/stefan/SCC/MetalSVM
export ARCH = x86
NAME = metalsvm.bin
export LIBNAME = $(TOPDIR)/libmetalsvm.a
export MAKE = make
export ASM = nasm
export ASMFLAGS = -felf32
export INCLUDE = -I$(TOPDIR)/include -I$(TOPDIR)/arch/$(ARCH)/include -I$(TOPDIR)/lwip/src/include -I$(TOPDIR)/lwip/src/include/ipv4
export CC = gcc
export CFLAGS = -m32 -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin $(INCLUDE)
export AR = ar
export ARFLAGS = rsv
export RM = rm -rf
LD = ld
LDFLAGS = -T link.ld
SUBDIRS = lib kernel mm arch #lwip
default:
$(MAKE) all
all:
for i in $(SUBDIRS); do $(MAKE) -C $$i all; done
$(LD) $(LDFLAGS) -o $(NAME) $(LIBNAME)
clean:
$(RM) $(NAME) $(LIBNAME) *~
for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
depend:
for i in $(SUBDIRS); do $(MAKE) -C $$i depend; done