commit 1d269e9667793cd17c7f1c68469788377a0e5f47
parent 7defa63f4f35d3a318e061d3f8f8649a217eb764
Author: cnlohr <lohr85@gmail.com>
Date: Mon, 25 May 2020 03:10:28 -0700
Closes #68 - updating the way rawdraw works. Also, don't make cnping.exe from makefile anymore.
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -2,7 +2,7 @@ CFLAGS?=-s -Os -I/opt/X11/include -Wall
LDFLAGS?=-s -L/opt/X11/lib/
CC?=gcc
-all : cnping cnping.exe
+all : cnping
#CFLAGS:=$(CFLAGS) -DCNFGOGL
#LDFLAGS:=$(LDFLAGS) -lGL
@@ -34,7 +34,7 @@ resources.o : resources.rc
all : cnping searchnet
cnping : cnping.c ping.c httping.c
- $(CC) $(CFLAGS) -o $@ $^ -lX11 -lm -lpthread $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $@ $^ -lX11 -lm -lpthread -lGL $(LDFLAGS)
cnping_ogl : cnping.c ping.c httping.c
$(CC) $(CFLAGS) -o $@ $^ -DCNFGOGL $(CFLAGS) -s -lX11 -lm -lpthread $(LDFLAGS) -lGL
diff --git a/cnping.c b/cnping.c
@@ -24,6 +24,9 @@
#include <sys/select.h>
#include <netdb.h>
#endif
+
+#define CNFGOGL
+
#define CNFG_IMPLEMENTATION
#include "rawdraw/os_generic.h"
#include "rawdraw/CNFG.h"