# (C) 2002 The UbixOS Project
# $Id: Makefile,v 1.3 2003/03/13 02:02:33 apwillia Exp $
CFLAGS = -fno-builtin
# Compiler
CC = gcc
CPP = g++
# Linker
LINKER = ld
# Remove
REMOVE = rm -fr
# Objects
OBJS = io.o idt.o dma.o drives.o video.o
all: $(OBJS)
# Compile Types
.cc.o:
$(CPP) ${CFLAGS} -Wall -fomit-frame-pointer -O -I../include -c -o $@ $<
.cc.s:
$(CPP) ${CFLAGS} -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
.c.o:
$(CC) ${CFLAGS} -Wall -fomit-frame-pointer -O -I../include -c -o $@ $<
.c.s:
$(CC) ${CFLAGS} -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
.S.o:
$(CC) ${CFLAGS} -Wall -fomit-frame-pointer -c -o $@ $<
# Clean up the junk
clean:
$(REMOVE) $(OBJS)