Browse Source

define platform-identification CPP macros

IOSAD-230
Luca Saiu 7 months ago
parent
commit
aafc16f449
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      Makefile.conf

+ 11
- 0
Makefile.conf View File

@ -87,6 +87,7 @@ endif
# Are we wiping this on purpose?
LDLIBS=
# Define compiler.
ifeq ($(BUILD_FOR),OS/390)
CC=xlclang
else ifeq ($(BUILD_FOR),Linux)
@ -95,6 +96,16 @@ else ifeq ($(BUILD_FOR),Darwin)
CC=clang
endif
# Define platform-identification feature macros.
ifeq ($(BUILD_FOR),Linux)
CPPFLAGS+= -DUNIX
else ifeq ($(BUILD_FOR),Darwin)
CPPFLAGS+= -DUNIX -DDARWIN
else ifeq ($(BUILD_FOR),OS/390)
CPPFLAGS+= -DZOS
endif
# Add platform-specific compilation options.
ifeq ($(BUILD_FOR),OS/390)
CFLAGS= -Wno-gnu-include-next -qnosearch -I$(HERE) -I.
CFLAGS+= -I/usr/include


Loading…
Cancel
Save