--- tools/biewhlp/makefile.orig	2002-11-29 23:06:55.000000000 +0600
+++ tools/biewhlp/makefile	2008-06-16 15:34:45.000000000 +0700
@@ -46,9 +46,12 @@
 ifeq ($(findstring qnx,$(TARGET_OS)),qnx)
 include ../../make_qnx.inc
 else
-include ../../makefile.inc
+include ../../config.mak
 endif
 
+CFLAGS = $(CDEFOS) $(CDEFSYS) $(HOST_CFLAGS)
+LDFLAGS = $(OSLDEF) $(HOST_LDFLAGS)
+
 ###########################################################################
 # TARGET: put name of executable image here                               #
 ###########################################################################
