CPPFLAGS cleanup, submited by Toru Nishimura.

This commit is contained in:
phx 2010-05-17 17:50:08 +00:00
parent 6ecd938dbf
commit 870d3a3e4f
2 changed files with 13 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2010/05/02 13:31:14 phx Exp $
# $NetBSD: Makefile,v 1.17 2010/05/17 17:50:08 phx Exp $
S= ${.CURDIR}/../../../..
@ -9,9 +9,8 @@ CLEANFILES+= vers.c vers.o ${PROG} ${PROG}.bin
CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple
CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP
CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
#CPPFLAGS+= -DCONSNAME=\"eumb\" -DCONSPORT=0x4600 -DCONSSPEED=57600
#CPPFLAGS+= -DTICKS_PER_SEC=(133333333/4)
#CPPFLAGS+= -DSTART_DDB_SESSION
CPPFLAGS+= -nostdinc -I. -I${.OBJDIR} -I${S}
DBG= -Os

View File

@ -1,4 +1,4 @@
/* $NetBSD: globals.h,v 1.15 2010/05/16 11:27:49 phx Exp $ */
/* $NetBSD: globals.h,v 1.16 2010/05/17 17:50:08 phx Exp $ */
/* clock feed */
#ifndef EXT_CLK_FREQ
@ -16,6 +16,16 @@ extern int brdtype;
#define BRD_STORCENTER 103
#define BRD_UNKNOWN -1
#ifndef CONSNAME
#define CONSNAME "com"
#endif
#ifndef CONSPORT
#define CONSPORT 0x3f8
#endif
#ifndef CONSSPEED
#define CONSSPEED 115200
#endif
extern char *consname;
extern int consport;
extern int consspeed;