# $Id: Makefile,v 1.2 2003/04/23 21:42:34 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 = strtok.o memcpy.o memset.o memcmp.o strlen.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)