Changeset 2421 for trunk/Config.kmk


Ignore:
Timestamp:
Oct 17, 2010, 11:27:53 PM (15 years ago)
Author:
bird
Message:

OpenBSD hacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2413 r2421  
    9696PATH_GNUMAKE_SRC ?= $(PATH_ROOT)/src/kmk
    9797
     98
     99#
     100# Various platform specific hacks.
     101#
     102ifn1of ($(KBUILD_TARGET), openbsd)
     103 GCC_Wextra = -Wextra
     104endif
     105if1of ($(KBUILD_TARGET), openbsd)
     106 TOOL_FLEX_LEX = gflex
     107endif
    98108
    99109#
     
    179189# Template for building commandline tools.
    180190#
    181 TEMPLATE_BIN = Commandline binary
     191TEMPLATE_BIN = Command line binary
    182192
    183193TEMPLATE_BIN_INCS               = $(PATH_ROOT)/src/lib
     
    224234 TEMPLATE_BIN_CFLAGS            = -g -mmacosx-version-min=10.$(KBUILD_MACOSX_TARGET_VERSION) -isysroot $(KBUILD_MACOSX_SDK)
    225235 ifeq ($(USER),bird)
    226   TEMPLATE_BIN_CFLAGS          += -Wall -Wextra -pedantic -Wno-unused-parameter
     236  TEMPLATE_BIN_CFLAGS          += -Wall $(GCC_Wextra) -pedantic -Wno-unused-parameter
    227237  TEMPLATE_BIN_DEFS            += NO_ENUM_BITFIELDS
    228238 endif
     
    285295 TEMPLATE_BIN_CFLAGS            = -g
    286296 ifeq ($(USER),bird)
    287   TEMPLATE_BIN_CFLAGS          += -Wall -Wextra -pedantic -Wno-unused-parameter
     297  TEMPLATE_BIN_CFLAGS          += -Wall $(GCC_Wextra) -pedantic -Wno-unused-parameter
    288298  TEMPLATE_BIN_DEFS            += NO_ENUM_BITFIELDS
    289299 endif
     
    317327
    318328#
     329# Template for building threaded binaries.
     330#
     331TEMPLATE_BIN-THREADED = Threaded command line binary
     332TEMPLATE_BIN-THREADED_EXTENDS = BIN
     333TEMPLATE_BIN-THREADED_EXTENDS_BY = appending
     334if1of ($(KBUILD_TARGET), dragonfly freebsd openbsd)
     335 TEMPLATE_BIN-THREADED_LIBS = pthread
     336endif
     337
     338#
    319339# Template for building libraries for the tools.
    320340#
Note: See TracChangeset for help on using the changeset viewer.