aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ08nY2017-02-17 13:14:44 +0100
committerJ08nY2017-02-17 13:14:44 +0100
commit6bd4b524577ff7024dba150bd4f4d3b5d12f5fd6 (patch)
tree60060be104c142f484cb2ebc60c63c1c3751d8af /src
parent2d3bdf774bda6ef898672b408342c475f803c2a7 (diff)
downloadecgen-6bd4b524577ff7024dba150bd4f4d3b5d12f5fd6.tar.gz
ecgen-6bd4b524577ff7024dba150bd4f4d3b5d12f5fd6.tar.zst
ecgen-6bd4b524577ff7024dba150bd4f4d3b5d12f5fd6.zip
Make travis use right CC
Diffstat (limited to 'src')
-rw-r--r--src/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Makefile b/src/Makefile
index 1bd9806..77d9628 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,17 +5,17 @@
#
####
-CC=gcc
-GP2C=gp2c
+CC ?= gcc
+GP2C = gp2c
-CFLAGS=-O3 -Wall
-LDFLAGS=-L../lib
+CFLAGS = -O3 -Wall
+LDFLAGS = -L../lib
-GP_CFLAGS=-O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -fPIC
-GPFLAGS=-g -i4
+GP_CFLAGS = -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -fPIC
+GPFLAGS = -g -i4
-INCLUDES=-I. -I../lib -Icm -Iinvalid -Iio -Irandom -Iexhaustive
-LIBS=-lpari -lparson
+INCLUDES = -I. -I../lib -Icm -Iinvalid -Iio -Irandom -Iexhaustive
+LIBS = -lpari -lparson
####
@@ -44,7 +44,7 @@ $(GPO): $(GPC) $(GPH)
$(CC) $(GP_CFLAGS) $(INCLUDES) -c -o $@ $< $(LDFLAGS) $(LIBS)
%.o: %.c $(GPH)
- $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< $(LDFLAGS) $(LIBS)
+ $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
%.h %.c: %.gp
$(GP2C) $(GPFLAGS) gp/$*.gp 2>/dev/null | clang-format | awk 'BEGIN{print "#ifndef GP_H" > "gp.h"; print "#define GP_H" >> "gp.h";} { if(found) print >> "gp.c"; else print >> "gp.h"} /End of prototype/{found=1; print "#include \"gp.h\"" > "gp.c"; print "#endif //GP_H" >> "gp.h"}'