Skip to content

Commit 4691fe6

Browse files
author
Sebastien Bourdeauducq
committedNov 13, 2011
tools: allow overriding the C compiler for distributions like Fedora who can't package clang correctly
1 parent 0b2d12a commit 4691fe6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎tools/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
TARGETS=bin2hex mkmmimg flterm makeraw byteswap
2+
COMPILER?=clang
23

34
all: $(TARGETS)
45

56
%: %.c
6-
clang -O2 -Wall -I. -s -o $@ $<
7+
$(COMPILER) -O2 -Wall -I. -s -o $@ $<
78

89
makeraw: makeraw.c
9-
clang -O2 -Wall -s -o $@ $< -lgd
10+
$(COMPILER) -O2 -Wall -s -o $@ $< -lgd
1011

1112
install: mkmmimg flterm
1213
cp mkmmimg /usr/bin

0 commit comments

Comments
 (0)
Please sign in to comment.