aboutsummaryrefslogtreecommitdiff
path: root/scripts/cflags.sh
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-01 11:16:23 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-01 11:16:23 +0200
commit18d52cd2c6846089350132109e94f3266227d1e9 (patch)
tree9531e24e1214aaaa793d715ed3675ef3f8fd1f4c /scripts/cflags.sh
parentf7f8d17c4a9590fea09120b08c67fcdb0272fd16 (diff)
downloadlog-18d52cd2c6846089350132109e94f3266227d1e9.tar.gz
log-18d52cd2c6846089350132109e94f3266227d1e9.zip
Add script to generate CFLAGS
CLFGAS will be generated based on the OS categories (at the moment, only GNU and BSD).
Diffstat (limited to 'scripts/cflags.sh')
-rwxr-xr-xscripts/cflags.sh14
1 files changed, 14 insertions, 0 deletions
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
+