Browse Source

Make it easier to change the compiler

Lucas Stadler 9 years ago
parent
commit
9259f920b6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      c/ton/Makefile

+ 3 - 1
c/ton/Makefile

@ -1,8 +1,10 @@
1
CC = clang
2
1 3
JSC_CFLAGS = $(shell pkg-config javascriptcoregtk-4.0 --cflags --libs)
2 4
LIBZIP_CFLAGS = $(shell pkg-config libzip --cflags --libs)
3 5
4 6
ton: *.c
5
	clang $(JSC_CFLAGS) $(LIBZIP_CFLAGS) $^ -o $@
7
	$(CC) $(JSC_CFLAGS) $(LIBZIP_CFLAGS) $^ -o $@
6 8
7 9
jsc-funcs:
8 10
	grep -Rh JS_EXPORT /usr/include/webkitgtk-4.0/JavaScriptCore | sed 's/^JS_EXPORT //' | grep -v '^#' > $@