Commit d8017728 authored by Peter Pentchev's avatar Peter Pentchev

Use a different compiler (CC_FOR_BUILD) for bin2c.

This allows hexer to be cross-built.

Submitted by:	Helmut Grohne <>
parent 2215c5e9
Change log for hexer, the multi-view binary editor
1.0.4 not yet ;)
- allow hexer to be cross-built: if CC_FOR_BUILD is defined in
the build environment, use it as the command to build bin2c as
submitted by Helmut Grohne <>.
1.0.3 2016/10/16
- correct a couple of grammatical nits in the README file.
......@@ -30,6 +30,7 @@ CPPFLAGS += $(CPPFLAGS_STD) -DHEXER_VERSION=\"1.0.4\"
# -- Which compiler? --
CC ?= cc
......@@ -71,7 +72,7 @@ $(MYC): calc.c config.h
$(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -DMYCALC=1 -o $@ calc.c -lm
bin2c: bin2c.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ bin2c.c
$(CC_FOR_BUILD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ bin2c.c
helptext.c: help.txt bin2c
./bin2c -n helptext -o $@ help.txt
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