Kaydet (Commit) b0a48fbb authored tarafından Herbert Dürr's avatar Herbert Dürr

allow building an unchanged binfilter after changes to common header files

Cleanups in header files can result in finding or avoiding errors,
but the binfilter module as a legacy module should not be changed to
adjust for such cleanups.

In order to allow that the binfilter module can stay unaffected
by such changes the compiler macro BINFILTER_COMPAT has been added
to allow cleanups without disturbing binfilter.

When the flag is active header files are compatible to binfilter assumptions.
The flag is for now only active when compiling the binfilter module.

Having a grepable define allows further cleanups when the binfilter
module has been removed for good in a future release.
üst d794e5f9
......@@ -27,6 +27,14 @@ MKFILENAME:=TARGET.MK
# INCLUDE-Path
# ------------------------------------------------------------------
.IF "$(TARGET)"==""
target_empty=warn_target_empty
.ENDIF
.IF "$(PRJNAME)" == "binfilter"
CDEFS+=-DBINFILTER_COMPAT
.ENDIF
.IF "$(STL_OS2_BUILDING)" != ""
CDEFS+=-DSTL_OS2_BUILDING
.ENDIF
......@@ -40,10 +48,6 @@ CFLAGS += -xldscope=hidden
.ENDIF
.ENDIF
.IF "$(TARGET)"==""
target_empty=warn_target_empty
.ENDIF
# all use solarinc
# no standalone -I flags!!
INCEXT*=.
......@@ -63,6 +67,7 @@ INCLUDE!:=-I. $(INCPRE:^"-I":s/-I-I/-I/) -I$(INCLOCAL) -I$(INCPCH) -I$(INC) -I$(
.ENDIF # "$(PRJINC)"!=""
INCLUDE_C=$(subst,/stl$(SPACECHAR),dont_use_stl$(SPACECHAR) $(INCLUDE))
.EXPORT : LIB
# --- Compiler -----------------------------------------------------
.IF "$(RC_SUBDIRS)"!=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment