diff --git a/Makefile b/Makefile
index 2b9e77e..51fe9be 100644
--- a/Makefile
+++ b/Makefile
@@ -14,25 +14,25 @@ asm_plotter.c : cn_plot.R.h asm_plotter.h
 hap_plotter.c : hap_plot.R.h hap_plotter.h
 
 HAPmaker: HAPmaker.c libfastk.c
-	gcc $(CFLAGS) -o HAPmaker HAPmaker.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o HAPmaker HAPmaker.c libfastk.c -pthread -lm
 
 CNplot: CNplot.c cn_plotter.c libfastk.c
-	gcc $(CFLAGS) -o CNplot CNplot.c cn_plotter.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o CNplot CNplot.c cn_plotter.c libfastk.c -pthread -lm
 
 ASMplot: ASMplot.c asm_plotter.c libfastk.c
-	gcc $(CFLAGS) -o ASMplot ASMplot.c asm_plotter.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o ASMplot ASMplot.c asm_plotter.c libfastk.c -pthread -lm
 
 HAPplot: HAPplot.c hap_plotter.c libfastk.c
-	gcc $(CFLAGS) -o HAPplot HAPplot.c hap_plotter.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o HAPplot HAPplot.c hap_plotter.c libfastk.c -pthread -lm
 
 MerquryFK: MerquryFK.c cn_plotter.c asm_plotter.c hap_plotter.c blk_plot.R.h libfastk.c
-	gcc $(CFLAGS) -o MerquryFK MerquryFK.c cn_plotter.c asm_plotter.c hap_plotter.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o MerquryFK MerquryFK.c cn_plotter.c asm_plotter.c hap_plotter.c libfastk.c -pthread -lm
 
 KatComp: KatComp.c libfastk.c kx_plot.R.h
-	gcc $(CFLAGS) -o KatComp KatComp.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o KatComp KatComp.c libfastk.c -pthread -lm
 
 KatGC: KatGC.c libfastk.c kgc_plot.R.h
-	gcc $(CFLAGS) -o KatGC KatGC.c libfastk.c -lpthread -lm
+	$(CC) $(CFLAGS) -o KatGC KatGC.c libfastk.c -pthread -lm
 
 clean:
 	rm -f $(ALL)
