diff options
author | anthk <anthk@texto-plano.xyz> | 2021-03-11 09:40:02 +0000 |
---|---|---|
committer | anthk <anthk@texto-plano.xyz> | 2021-03-11 09:40:02 +0000 |
commit | 5b21c81d6870e72629d3b12756e14a60bdc5261b (patch) | |
tree | d617edb6a939a19db9bb57216c380fb8618ebea9 /src/Makefile | |
parent | d252394bc86670e39f8a9c5c52875b13645764af (diff) | |
download | cpulimit-master.tar.gz |
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 8 |
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) |