Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tools: allow overriding the C compiler for distributions like Fedora …

…who can't package clang correctly
  • Loading branch information...
commit 4691fe60593a82b3f9a7a446d927a61c62f49918 1 parent 0b2d12a
@sbourdeauducq sbourdeauducq authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tools/Makefile
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.