Newer
Older
ubix / src / lib / libc / generic / Makefile
# $Id$
# 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 = getcwd.o
#Output
OUTPUT = libc.so

$(OUTPUT): $(OBJS)

# Compile the source files
.cc.o:
	$(G++) $(CFLAGS) -Wall -nostdlib -O -I../include -c -o $@ $<
 
.cc.s:
	$(G++) $(CFLAGS) -Wall -nostdlib -O -I../include -S -o $@ $<
 
.c.o:
	$(GCC) $(CFLAGS) -Wall -nostdlib -O -I../include -c $<

.c.s:
	$(GCC) $(CFLAGS) -Wall -nostdlib -O -I../include -S -o $@ $<
 
.S.o:
	$(GCC) $(CFLAGS) -Wall -nostdlib -c -o $@ $<
 
# Clean up the junk
clean:
	$(REMOVE) $(OBJS) $(OUTPUT)