aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbhackerozzo <bhackerozzo@3b445381-d045-0410-9223-e17ecdb95f4b>2008-08-29 21:45:04 +0000
committerbhackerozzo <bhackerozzo@3b445381-d045-0410-9223-e17ecdb95f4b>2008-08-29 21:45:04 +0000
commit794f9410a52b21e8bcedeecedc7f8737daee5418 (patch)
treed6a8a5f585110b64167fe4f38d1de248a657c3b3 /Makefile
parent83bce718d6f49760463e973759ab575f8573f297 (diff)
downloadcpulimit-794f9410a52b21e8bcedeecedc7f8737daee5418.tar.gz
experimental support for OS X
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 6f820cf..4492d9d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,17 @@
CC?=gcc
CFLAGS?=-Wall -O2
-CFLAGS+=-D_GNU_SOURCE
-TARGETS=cpulimit ptest
+TARGETS=cpulimit
LIBS=process.o procutils.o list.o
+OSXFLAGS=-framework Carbon
+
+ifeq ($(OS), APPLE)
+CFLAGS+=-framework Carbon
+endif
all:: $(TARGETS)
cpulimit: cpulimit.c $(LIBS)
- $(CC) -o cpulimit cpulimit.c $(LIBS) -lrt $(CFLAGS)
+ $(CC) -o cpulimit cpulimit.c $(LIBS) $(CFLAGS)
process.o: process.c process.h
$(CC) -c process.c $(CFLAGS)
@@ -18,9 +22,6 @@ procutils.o: procutils.c procutils.h
list.o: list.c list.h
$(CC) -c list.c $(CFLAGS)
-ptest: ptest.c
- $(CC) -o ptest ptest.c -lrt $(CFLAGS)
-
clean:
rm -f *~ *.o $(TARGETS)
Un proyecto texto-plano.xyz