Skip to content

Commit 484af03

Browse files
committed
Makefile: Added make clean
Put in a way to remove the files built by make. Signed-off-by: Steven Rostedt <[email protected]>
1 parent 195e05a commit 484af03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
CC = gcc
22
CFLAGS = -g -Wall
33

4-
all: deadline_test cyclicdeadline
4+
ALL = deadline_test cyclicdeadline
5+
all: ${ALL}
56

67
deadline_test: deadline_test.o
78
$(CC) $^ -o $@ -lpthread -lrt
89

910
cyclicdeadline: cyclicdeadline.o
1011
$(CC) $^ -o $@ -lpthread -lrt
1112

13+
clean:
14+
${RM} *.o ${ALL}

0 commit comments

Comments
 (0)