You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
6 months ago
|
From 20e1f36e590cfe6a8ad325e3b4ca281353e78465 Mon Sep 17 00:00:00 2001
|
||
6 months ago
|
From: tigro <tigro@msvsphere-os.ru>
|
||
6 months ago
|
Date: Fri, 23 Aug 2024 17:11:44 +0300
|
||
|
Subject: [PATCH 3/3] Use gcc flags
|
||
6 months ago
|
|
||
|
---
|
||
6 months ago
|
Makefile | 12 ++++++------
|
||
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
||
6 months ago
|
|
||
|
diff --git a/Makefile b/Makefile
|
||
6 months ago
|
index 7d14ee3..8cb2475 100644
|
||
6 months ago
|
--- a/Makefile
|
||
|
+++ b/Makefile
|
||
|
@@ -1,5 +1,5 @@
|
||
|
CC=gcc
|
||
|
-OPT=$(CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
||
|
+OPT=$(CFLAGS) $(CPPFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $(LDFLAGS)
|
||
|
OPT_MOD=-D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
|
||
|
#LD_MOD=-r
|
||
|
prefix = /usr
|
||
6 months ago
|
@@ -24,19 +24,19 @@ sdel-mod.o: sdel-mod.c
|
||
|
$(CC) $(OPT) $(OPT_MOD) $(LD_MOD) -I/lib/modules/`uname -r`/build/include -c sdel-mod.c
|
||
|
|
||
|
sdel-lib.o: sdel-lib.c
|
||
|
- $(CC) $(OPT) -c sdel-lib.c
|
||
|
+ $(CC) $(OPT) -c sdel-lib.c -lm
|
||
6 months ago
|
|
||
|
srm: srm.c sdel-lib.o
|
||
|
- $(CC) $(OPT) -o srm srm.c sdel-lib.o
|
||
|
+ $(CC) $(OPT) -o srm srm.c sdel-lib.o -lm
|
||
6 months ago
|
-strip srm
|
||
6 months ago
|
sfill: sfill.c sdel-lib.o
|
||
|
- $(CC) $(OPT) -o sfill sfill.c sdel-lib.o
|
||
|
+ $(CC) $(OPT) -o sfill sfill.c sdel-lib.o -lm
|
||
6 months ago
|
-strip sfill
|
||
6 months ago
|
sswap: sswap.c sdel-lib.o
|
||
|
- $(CC) $(OPT) -o sswap sswap.c sdel-lib.o
|
||
|
+ $(CC) $(OPT) -o sswap sswap.c sdel-lib.o -lm
|
||
6 months ago
|
-strip sswap
|
||
6 months ago
|
smem: smem.c sdel-lib.o
|
||
|
- $(CC) $(OPT) -o smem smem.c sdel-lib.o
|
||
|
+ $(CC) $(OPT) -o smem smem.c sdel-lib.o -lm
|
||
6 months ago
|
-strip smem
|
||
6 months ago
|
|
||
|
clean:
|
||
6 months ago
|
--
|
||
|
2.46.0
|
||
|
|