diff options
author | bhackerozzo <bhackerozzo@3b445381-d045-0410-9223-e17ecdb95f4b> | 2008-08-29 21:45:04 +0000 |
---|---|---|
committer | bhackerozzo <bhackerozzo@3b445381-d045-0410-9223-e17ecdb95f4b> | 2008-08-29 21:45:04 +0000 |
commit | 794f9410a52b21e8bcedeecedc7f8737daee5418 (patch) | |
tree | d6a8a5f585110b64167fe4f38d1de248a657c3b3 /Makefile | |
parent | 83bce718d6f49760463e973759ab575f8573f297 (diff) | |
download | cpulimit-794f9410a52b21e8bcedeecedc7f8737daee5418.tar.gz |
experimental support for OS X
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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) |