OSDN Git Service

Move yet more stuff into the uClibc_config.h file
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 06:29:14 +0000 (06:29 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 06:29:14 +0000 (06:29 -0000)
Makefile
Rules.mak

index a9c40cd..eaed741 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -147,6 +147,8 @@ uClibc_config.h: Config
        @echo "#if !defined __FEATURES_H && !defined __need_uClibc_config_h" >> uClibc_config.h
        @echo "#error Never include <bits/uClibc_config.h> directly; use <features.h> instead." >> uClibc_config.h
        @echo "#endif" >> uClibc_config.h
+       @echo "#define linux 1" >> uClibc_config.h 
+       @echo "#define __linux_ 1" >> uClibc_config.h 
        @if [ "$(HAS_MMU)" = "true" ] ; then \
            echo "#define __UCLIBC_HAS_MMU__ 1" >> uClibc_config.h ; \
        else \
index 3d9689c..88911d5 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -34,7 +34,7 @@ endif
 
 ARFLAGS=r
 
-CCFLAGS=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) -Dlinux -D__linux__ -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D__LIBC__
+CCFLAGS=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D__LIBC__
 
 CFLAGS=$(ARCH_CFLAGS) $(CCFLAGS) $(DEFS) $(ARCH_CFLAGS2)