aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authoranthk <anthk@texto-plano.xyz>2021-03-11 09:40:02 +0000
committeranthk <anthk@texto-plano.xyz>2021-03-11 09:40:02 +0000
commit5b21c81d6870e72629d3b12756e14a60bdc5261b (patch)
treed617edb6a939a19db9bb57216c380fb8618ebea9 /src/Makefile
parentd252394bc86670e39f8a9c5c52875b13645764af (diff)
downloadcpulimit-master.tar.gz
Ajustes olvidadosHEADmaster
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 86fbfbd..863bf23 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,6 @@
-CC?=gcc
-CFLAGS?=-Wall -g -D_GNU_SOURCE
+CC?=clang
+CFLAGS?=-Wall -g -O0 -D_GNU_SOURCE
+LDFLAGS+=-g
TARGETS=cpulimit
LIBS=list.o process_iterator.o process_group.o
@@ -9,6 +10,9 @@ ifeq ($(UNAME), FreeBSD)
LIBS+=-lkvm
endif
+ifeq ($(UNAME), OpenBSD)
+LIBS+=-lkvm -lpthread
+endif
all:: $(TARGETS) $(LIBS)
cpulimit: cpulimit.c $(LIBS)
Un proyecto texto-plano.xyz