From 5605a5ddf3c77232b04c002a82b91e227c0f27da Mon Sep 17 00:00:00 2001 From: Ren Kararou Date: Sun, 5 Jan 2025 02:29:15 -0600 Subject: builds on illumos, freebsd, and linux --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makefile') 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 -- cgit 1.4.1-2-gfad0