Newer
Older
Scratch / tmpers / src / sys / kernel / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 709 bytes Scratch
#  (C) 2002 The UbixOS Project
#  $Id: Makefile,v 1.7 2002/11/29 22:10:57 reddawg Exp $


#  Compiler
CC = gcc
CPP = g++


#  Linker
LINKER = ld

#  Remove
REMOVE = rm -fr

#  Objects
OBJS = kpanic.o io.o idt.o vitals.o spinlock.o schedule.o message.o exec.o dma.o idlethread.o selftune.o signal.o

all: $(OBJS)

#  Compile Types
.cc.o:
	$(CPP) -Wall -fomit-frame-pointer -O -I../include -c -o $@ $<
.cc.s:
	$(CPP)  -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
.c.o:
	$(CC)  -Wall -fomit-frame-pointer -O -I../include -c -o $@ $<
.c.s:
	$(CC)  -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
.S.o:
	$(CC)  -Wall -fomit-frame-pointer -c -o $@ $<

# Clean up the junk
clean:
	$(REMOVE) $(OBJS)