From 0439b27d9c94c5c750b12cce0cc0eb8213e5de18 Mon Sep 17 00:00:00 2001
From: Slaven Rezic <
[email protected]>
Date: Sun, 5 Jan 2014 16:34:04 +0100
Subject: [PATCH] use cc instead of gcc, so compilation works also with clang
---
src/Makefile | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index f220979..0289b13 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -60,28 +60,28 @@ MAN7DIR=$(MANDIR)/man7
all: $(LIBRARY) $(DEMOS)
%.lo: %.c termkey.h termkey-internal.h
- $(LIBTOOL) --mode=compile --tag=CC gcc $(CFLAGS) -o $@ -c $<
+ $(LIBTOOL) --mode=compile --tag=CC cc $(CFLAGS) -o $@ -c $<
$(LIBRARY): $(OBJECTS)
- $(LIBTOOL) --mode=link --tag=CC gcc -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) $(LDFLAGS) -o $@ $^
+ $(LIBTOOL) --mode=link --tag=CC cc -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) $(LDFLAGS) -o $@ $^
demo: $(LIBRARY) demo.lo
- $(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
+ $(LIBTOOL) --mode=link --tag=CC cc -o $@ $^
demo-async: $(LIBRARY) demo-async.lo
- $(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
+ $(LIBTOOL) --mode=link --tag=CC cc -o $@ $^
demo-glib.lo: demo-glib.c termkey.h
- $(LIBTOOL) --mode=compile --tag=CC gcc -o $@ -c $< $(shell pkg-config glib-2.0 --cflags)
+ $(LIBTOOL) --mode=compile --tag=CC cc -o $@ -c $< $(shell pkg-config glib-2.0 --cflags)
demo-glib: $(LIBRARY) demo-glib.lo
- $(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^ $(shell pkg-config glib-2.0 --libs)
+ $(LIBTOOL) --mode=link --tag=CC cc -o $@ $^ $(shell pkg-config glib-2.0 --libs)
t/%.t: t/%.c $(LIBRARY) t/taplib.lo
- $(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
+ $(LIBTOOL) --mode=link --tag=CC cc -o $@ $^
t/taplib.lo: t/taplib.c
- $(LIBTOOL) --mode=compile --tag=CC gcc $(CFLAGS) -o $@ -c $^
+ $(LIBTOOL) --mode=compile --tag=CC cc $(CFLAGS) -o $@ -c $^
.PHONY: test
test: $(TESTFILES)
--
1.8.4.3