about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-07-03 11:08:48 +0300
committerNakidai <nakidai@disroot.org>2025-07-03 11:08:48 +0300
commited6672618383c223a7dd04ad4ed837d250284fd4 (patch)
tree4aa43451f194f400f4211db9ad1455f9376eafc4
parentc07461337363d7c3e28bac53e73c16d038903e87 (diff)
downloadsmalltcp-master.tar.gz
smalltcp-master.zip
ImprOwO EvEn fUwUther HEAD master
Make CFLAGS smaaart so it adds these fancy uwu flags only if you use
fancy uwu modern ahh compiler (clang or gcc)
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 528c21a..86b70cf 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@ RM ?= rm -f
 PREFIX ?= /usr/local/
 BINDIR ?= ${PREFIX}/bin
 
-CC = cc -ansi -fno-builtin
+CFLAGS.veryneeded != [ "${CC}" != tcc ] && echo -ansi -fno-builtin
+CFLAGS += ${CFLAGS.veryneeded}
 
 .PHONY: all
 all: buc bus