# $Id: Makefile,v 1.5 2003/04/18 05:35:24 reddawg Exp $
# The System Makefile (C) 2002 The UbixOS Project
CFLAGS = -fno-builtin
#Compiler
GCC = gcc
G++ = gcc
#Linker
LD = ld -Bshareable
AR = ar
#Delete Program
REMOVE = rm -f
#Objects
OBJS = getdrives.o setuid.o setgid.o getuid.o getgid.o exec.o getpid.o fork.o pidstatus.o getpage.o sched.o
#Output
OUTPUT = sys.so
$(OUTPUT): $(OBJS)
# Compile the source files
.cc.o:
$(G++) ${CFLAGS} -Wall -nostdinc -O -I../include -c -o $@ $<
.cc.s:
$(G++) ${CFLAGS} -Wall -nostdinc -O -I../include -S -o $@ $<
.c.o:
$(GCC) ${CFLAGS} -Wall -nostdinc -O -I../include -c $<
.c.s:
$(GCC) ${CFLAGS} -Wall -nostdinc -O -I../include -S -o $@ $<
.S.o:
$(GCC) ${CFLAGS} -Wall -nostdinc -c -o $@ $<
# Clean up the junk
clean:
$(REMOVE) $(OBJS) $(OUTPUT)