Skip to content

Commit

Permalink
tools: allow overriding the C compiler for distributions like Fedora …
Browse files Browse the repository at this point in the history
…who can't package clang correctly
  • Loading branch information
Sebastien Bourdeauducq committed Nov 13, 2011
1 parent 0b2d12a commit 4691fe6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/Makefile
@@ -1,12 +1,13 @@
TARGETS=bin2hex mkmmimg flterm makeraw byteswap
COMPILER?=clang

all: $(TARGETS)

%: %.c
clang -O2 -Wall -I. -s -o $@ $<
$(COMPILER) -O2 -Wall -I. -s -o $@ $<

makeraw: makeraw.c
clang -O2 -Wall -s -o $@ $< -lgd
$(COMPILER) -O2 -Wall -s -o $@ $< -lgd

install: mkmmimg flterm
cp mkmmimg /usr/bin
Expand Down

0 comments on commit 4691fe6

Please sign in to comment.