Newer
Older
Scratch / ubix3 / src / sys / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 966 bytes Scratch
# $Id: Makefile,v 1.23 2002/04/29 23:34:56 reddawg Exp $
#Makefile For UbOS Kernel


#Compiler
GCC = gcc 
G++ = gcc

#Linker
LD = ld

#Kernel File Name
KERNEL = kernel.elf

#Delete Program
REMOVE = rm -f

#Objects
OBJS = vsprintf.o io.o video.o 8259.o idt.o keyboard.o string.o math.o pit.o version.o dma.o exec.o schedule.o sysCall.o delay.o tempthreads.o tempshell.o

# Link the kernel statically with fixed text+data address @1M
$(KERNEL) : $(OBJS)
	$(LD)  -o $@ ../init/main.o $(OBJS) ../mm/*.o ../ubixfs/*.o ../drivers/*.o -Ttext 0x10000  #../gui/*.o

# Compile the source files
.cc.o:
	$(G++)  -Wall -fomit-frame-pointer -O -I../include -c -o $@ $<
 
.cc.s:
	$(G++)  -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
 
.c.o:
	$(GCC)  -Wall -O -I../include  -c -o $@ $<
 
.c.s:
	$(GCC)  -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
 
.S.o:
	$(GCC)  -Wall -fomit-frame-pointer -c -o $@ $<
 
# Clean up the junk
clean:
	$(REMOVE) $(OBJS) $(KERNEL)