Newer
Older
ubix / src / lib / libc / stdio / Makefile
@apwillia apwillia on 25 Jul 2002 716 bytes Added -fno-builtin flag
# $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 = printf.o vsprintf.o fd.o vfprintf.o fopen.o fwrite.o fgetc.o
#Output
OUTPUT = libc.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)