about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefile b/makefile
index 696ac71..c7d9caf 100644
--- a/makefile
+++ b/makefile
@@ -2,6 +2,14 @@ CC:=clang
 CFLAGS:=-march=native -O3 -funroll-loops -Wall -Wextra -Werror
 LDFLAGS:=-flto=thin -lpthread
 
+ifeq ($(shell uname),SunOS)
+CC = gcc
+LDFLAGS += -lsocket
+CFLAGS += -std=gnu11
+else
+CFLAGS += -std=c11
+endif
+
 INCLUDES=-Iinc/
 
 OBJECTS=obj/main.o obj/packet.o obj/netascii.o obj/handlers.o