Newer
Older
ubixos / src / lib / libc / stdio / Makefile
@reddawg reddawg on 28 May 2002 641 bytes Its Been lots of work
# $Id$
# The System Makefile (C) 2002 The UbixOS Project


#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
#Output
OUTPUT = libc.so

$(OUTPUT): $(OBJS)

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

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