diff --git a/src/sys/Makefile b/src/sys/Makefile index 77bb769..28bfa67 100755 --- a/src/sys/Makefile +++ b/src/sys/Makefile @@ -1,7 +1,7 @@ # $Id$ # Kernel Makefile (C) 2002 The UbixOS Project -all: boot-code init-code kernel-code driver-code deviceman-code vmm-code ubixfs-code graphics-code kernel-img +all: boot-code init-code kernel-code driver-code deviceman-code misc-code vmm-code ubixfs-code graphics-code kernel-img boot-code: boot (cd boot;make) @@ -18,6 +18,9 @@ deviceman-code: deviceman (cd deviceman;make) +misc-code: misc + (cd misc;make) + vmm-code: vmm (cd vmm;make) diff --git a/src/sys/misc/Makefile b/src/sys/misc/Makefile new file mode 100755 index 0000000..e296d03 --- /dev/null +++ b/src/sys/misc/Makefile @@ -0,0 +1,35 @@ +# (C) 2002 The UbixOS Project +# $Id$ + + +# Compiler +CC = gcc +CPP = g++ + + +# Linker +LINKER = ld + +# Remove +REMOVE = rm -fr + +# Objects +OBJS = kernel_string_pool.o misc_bit_array.o + +all: $(OBJS) + +# Compile Types +.cc.o: + $(CPP) -Wall -fomit-frame-pointer -O -I../include -c -o $@ $< +.cc.s: + $(CPP) -Wall -fomit-frame-pointer -O -I../include -S -o $@ $< +.c.o: + $(CC) -Wall -fomit-frame-pointer -O -I../include -c -o $@ $< +.c.s: + $(CC) -Wall -fomit-frame-pointer -O -I../include -S -o $@ $< +.S.o: + $(CC) -Wall -fomit-frame-pointer -c -o $@ $< + +# Clean up the junk +clean: + $(REMOVE) $(OBJS) \ No newline at end of file