From 6ca8ed226186256b5e016a0fbcdacc5abe79ece4 Mon Sep 17 00:00:00 2001 From: leeffo Date: Mon, 13 Mar 2023 17:50:03 +0800 Subject: [PATCH] change compile option --- cli/Makefile | 2 +- kernelmod/Makefile | 2 +- library/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/Makefile b/cli/Makefile index 3aaa54e..66b8cee 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -1,4 +1,4 @@ -CFLAGS := -std=gnu99 -Wall -I../library/inc -I../library/inc/index -I../kernelmod -Iinc +CFLAGS := -g -std=gnu99 -Wall -I../library/inc -I../library/inc/index -I../kernelmod -Iinc LDFLAG := -lpthread -lanything all: release debug diff --git a/kernelmod/Makefile b/kernelmod/Makefile index ae4fd62..dc39a01 100644 --- a/kernelmod/Makefile +++ b/kernelmod/Makefile @@ -1,6 +1,6 @@ obj-m += vfs_monitor.o vfs_monitor-objs := vfs_utils.o arg_extractor.o vfs_change.o vfs_kretprobes.o -ccflags-y := -std=gnu99 -Wno-declaration-after-statement -O3 +ccflags-y := -g -std=gnu99 -Wno-declaration-after-statement -O3 cwd := $(shell pwd) kdir := /lib/modules/$(shell uname -r)/build diff --git a/library/Makefile b/library/Makefile index b9308ee..50b99b5 100644 --- a/library/Makefile +++ b/library/Makefile @@ -1,5 +1,5 @@ CC := gcc -CFLAGS := -std=gnu99 -Wall -Wl,--no-undefined -Iinc -Iinc/index -shared -fPIC -fvisibility=hidden +CFLAGS := -g -std=gnu99 -Wall -Wl,--no-undefined -Iinc -Iinc/index -shared -fPIC -fvisibility=hidden LDFLAG := -lpthread all: release debug -- 2.20.1