# $Id: Makefile,v 1.10 2002/04/22 23:03:31 reddawg Exp $ #Makefile For UbOS Kernel #Compiler GCC = gcc G++ = gcc #Linker LD = ld #-Bshareable AR = ar #Delete Program REMOVE = rm -f #Objects OBJS = errno.o exit.o string.o vsprintf.o lib.so: $(OBJS) $(LD) -o lib.so $(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) lib.so