Added cb.o to the UDI objects list
[tpg/acess2.git] / Kernel / Makefile
index 427f4e0..1d0f363 100644 (file)
@@ -20,10 +20,10 @@ CFLAGS              += -Wall -Werror -O3 -fno-stack-protector -fno-builtin
 ASFLAGS                += -D ARCH=\"$(ARCH)\"
 LDFLAGS                += -T arch/$(ARCHDIR)/link.ld
 
-if $(KERNEL_DEBUG) != "" then
+ifeq ($(DEBUG_BUILD),yes)
        LDFLAGS += -g
-if $(KERNEL_DEBUG) != "" then
        CFLAGS += -g
+endif
 
 OBJ = $(addprefix arch/$(ARCHDIR)/,$(A_OBJ))
 OBJ += heap.o messages.o debug.o modules.o lib.o syscalls.o system.o threads.o drvutil.o
@@ -84,5 +84,7 @@ include/syscalls.h:   syscalls.lst Makefile
 
 Makefile:      ../Makefile.cfg arch/$(ARCHDIR)/Makefile
 
+drv/proc.o.%: Makefile.BuildNum
+
 # Dependency Files
 -include $(DEPFILES)

UCC git Repository :: git.ucc.asn.au