summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap
diff options
context:
space:
mode:
authorBryan Henderson1996-11-14 07:33:34 +0000
committerBryan Henderson1996-11-14 07:33:34 +0000
commit902d2b8bac8bf87dae85b865e22ddcae8cd9c670 (patch)
tree314259b128d592db1afe508e12860c0da06fc2cf /src/backend/bootstrap
parentb4d689070e5e0f93d43f2b871e03c1e7009deffe (diff)
Use -Wno-error option only if compiler is gcc.
Diffstat (limited to 'src/backend/bootstrap')
-rw-r--r--src/backend/bootstrap/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/backend/bootstrap/Makefile b/src/backend/bootstrap/Makefile
index beb2756c94e..6702bce1b61 100644
--- a/src/backend/bootstrap/Makefile
+++ b/src/backend/bootstrap/Makefile
@@ -4,7 +4,7 @@
# Makefile for the bootstrap module
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.3 1996/11/09 06:17:44 momjian Exp $
+# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.4 1996/11/14 07:33:20 bryanh Exp $
#
#
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
@@ -18,18 +18,25 @@
#
#-------------------------------------------------------------------------
-SRCDIR = ../..
+SRCDIR= ../..
include ../../Makefile.global
-INCLUDE_OPT = -I.. \
- -I../port/$(PORTNAME) \
- -I../../include
+INCLUDE_OPT= -I.. \
+ -I../port/$(PORTNAME) \
+ -I../../include
-CFLAGS += $(INCLUDE_OPT) -Wno-error
+CFLAGS+= $(INCLUDE_OPT)
-BOOTYACCS = bootstrap_tokens.h bootparse.c
+ifeq ($(CC), gcc)
+# Until we figure out how to get rid of the warnings in this directory,
+# we must turn off any -Werror that is in CFLAGS now. These options only
+# exist for the gcc compiler.
+CFLAGS+= -Wno-error
+endif
+
+BOOTYACCS= bootstrap_tokens.h bootparse.c
-OBJS = bootparse.o bootscanner.o bootstrap.o
+OBJS= bootparse.o bootscanner.o bootstrap.o
all: SUBSYS.o