commit 6db2c94b4c6f53e76b36ae8cc95d0a6d95fa157e
parent 64e168daba0c9e52efbb298d235df974c14adc7a
Author: David Auer <dreua@posteo.de>
Date: Thu, 26 Sep 2019 22:14:48 +0200
Allow compiler customization
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -3,6 +3,7 @@ all : cnping searchnet
CFLAGS:=$(CFLAGS) -s -Os -I/opt/X11/include -Wall
CXXFLAGS:=$(CFLAGS)
LDFLAGS:=-s -L/opt/X11/lib/
+CC:=gcc
#CFLAGS:=$(CFLAGS) -DCNFGOGL
#LDFLAGS:=$(LDFLAGS) -lGL
@@ -18,13 +19,13 @@ cnping.exe : cnping.c rawdraw/CNFGFunctions.c rawdraw/CNFGWinDriver.c rawdraw/os
$(MINGW32)gcc -g -fno-ident -mwindows -m32 $(CFLAGS) resources.o -o $@ $^ -lgdi32 -lws2_32 -s -D_WIN32_WINNT=0x0600 -DWIN32 -liphlpapi -DMINGW_BUILD $(ADMINFLAGS)
cnping : cnping.o rawdraw/CNFGFunctions.o rawdraw/CNFGXDriver.o rawdraw/os_generic.o ping.o httping.o
- gcc $(CFLAGS) -o $@ $^ -lX11 -lm -lpthread $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $@ $^ -lX11 -lm -lpthread $(LDFLAGS)
cnping_mac : cnping.c rawdraw/CNFGFunctions.c rawdraw/CNFGCocoaCGDriver.m rawdraw/os_generic.c ping.c httping.o
- gcc -o cnping $^ -x objective-c -framework Cocoa -framework QuartzCore -lm -lpthread
+ $(CC) -o cnping $^ -x objective-c -framework Cocoa -framework QuartzCore -lm -lpthread
searchnet : rawdraw/os_generic.o ping.o searchnet.o
- gcc $(CFLAGS) -o $@ $^ -lpthread
+ $(CC) $(CFLAGS) -o $@ $^ -lpthread
linuxinstall : cnping
sudo rm -f /usr/local/bin/cnping