aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..33c632d
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,22 @@
+CC?=gcc
+CFLAGS?=-Wall -O2
+TARGETS=cpulimit
+LIBS=process.o procutils.o list.o
+
+all:: $(TARGETS)
+
+cpulimit: cpulimit.c $(LIBS)
+ $(CC) -o cpulimit cpulimit.c $(LIBS) $(CFLAGS)
+
+process.o: process.c process.h
+ $(CC) -c process.c $(CFLAGS)
+
+procutils.o: procutils.c procutils.h
+ $(CC) -c procutils.c $(CFLAGS)
+
+list.o: list.c list.h
+ $(CC) -c list.c $(CFLAGS)
+
+clean:
+ rm -f *~ *.o $(TARGETS)
+
Un proyecto texto-plano.xyz