diff --git a/src/sys/graphics/Makefile b/src/sys/graphics/Makefile new file mode 100755 index 0000000..a0089ac --- /dev/null +++ b/src/sys/graphics/Makefile @@ -0,0 +1,43 @@ +# $Id$ +# 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 = main.o objgfx30.o + +# Link the binary +$(BINARY) : $(OBJS) + $(G++) -o $@ $(OBJS) + +# Compile the source files +.C.o: + $(G++) -Wall -O -I./ -c -o $@ $< + +.cc.s: + $(G++) -Wall -fomit-frame-pointer -O -I../../lib/libc/include -S -o $@ $< + +.c.o: + $(GCC) -Wall -O -I../../lib/libc/include -c -o $@ $< + +.c.s: + $(GCC) -Wall -fomit-frame-pointer -O -I../../lib/libc/include -S -o $@ $< + +.S.o: + $(GCC) -Wall -fomit-frame-pointer -c -o $@ $< + +# Clean up the junk +clean: + $(REMOVE) $(OBJS) $(BINARY) diff --git a/src/sys/graphics/makefile b/src/sys/graphics/makefile deleted file mode 100755 index 95a910f..0000000 --- a/src/sys/graphics/makefile +++ /dev/null @@ -1,6 +0,0 @@ -objgfx: main.o objgfx30.o - g++ -o objgfx main.o objgfx30.o -main.o: main.C - g++ -c main.C -objgfx30.o: objgfx30.C objgfx30.h - g++ -c objgfx30.C