# $Id: Makefile,v 1.9 2003/04/13 14:25:19 flameshadow Exp $ # Kernel Makefile (C) 2002 The UbixOS Project #Compiler GCC = gcc G++ = g++ #Linker LD = ld #Binary File Name BINARY = objgfx #Delete Program REMOVE = rm -f #Objects OBJS = objgfx30.o ogFont.o ogSprite.o ogBlit.o vWidget.o vWindow.o #Include INCLUDE = -I./include -I../../lib/libc/include -I../../lib/libcpp/include # Link the binary $(BINARY) : $(OBJS) # $(G++) -o $@ $(OBJS) # Compile the source files .cpp.o: $(G++) -Wall -g -fno-builtin -fno-rtti -fno-exceptions -DNOBOOL $(INCLUDE) -c -o $@ $< .cc.s: $(G++) -Wall -fomit-frame-pointer -O $(INCLUDE) -S -o $@ $< .c.o: $(GCC) -Wall -O $(INCLUDE) -c -o $@ $< .c.s: $(GCC) -Wall -fomit-frame-pointer -O $(INCLUDE) -S -o $@ $< .S.o: $(GCC) -Wall -fomit-frame-pointer -c -o $@ $< # Clean up the junk clean: $(REMOVE) $(OBJS) $(BINARY) *.core