From 18d52cd2c6846089350132109e94f3266227d1e9 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 1 Jul 2024 11:16:23 +0200 Subject: Add script to generate CFLAGS CLFGAS will be generated based on the OS categories (at the moment, only GNU and BSD). --- scripts/cflags.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/cflags.sh (limited to 'scripts') diff --git a/scripts/cflags.sh b/scripts/cflags.sh new file mode 100755 index 0000000..bc8e3a8 --- /dev/null +++ b/scripts/cflags.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +Linux_cflags() +{ + echo -D_GNU_SOURCE +} + +FreeBSD_cflags() +{ + echo -D_BSD_SOURCE +} + +$(uname)_cflags + -- cgit v1.2.3