Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…who can't package clang correctly
  • Loading branch information...
commit 4691fe60593a82b3f9a7a446d927a61c62f49918 1 parent 0b2d12a
Sébastien Bourdeauducq authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  tools/Makefile
5  tools/Makefile
... ...
@@ -1,12 +1,13 @@
1 1
 TARGETS=bin2hex mkmmimg flterm makeraw byteswap
  2
+COMPILER?=clang
2 3
 
3 4
 all: $(TARGETS)
4 5
 
5 6
 %: %.c
6  
-	clang -O2 -Wall -I. -s -o $@ $<
  7
+	$(COMPILER) -O2 -Wall -I. -s -o $@ $<
7 8
 
8 9
 makeraw: makeraw.c
9  
-	clang -O2 -Wall -s -o $@ $< -lgd
  10
+	$(COMPILER) -O2 -Wall -s -o $@ $< -lgd
10 11
 
11 12
 install: mkmmimg flterm
12 13
 	cp mkmmimg /usr/bin

0 notes on commit 4691fe6

Please sign in to comment.
Something went wrong with that request. Please try again.