File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
LearningC/Lessons/00_Start Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ # vim: noexpandtab: ts=8: softtabstop=8
2+ # /*minimal Makefile*/
3+ TARGET = testing_C
4+ PRINTF = format_testing_C
5+ ARGV = arg_testing_C
6+
7+ CC = gcc
8+
9+ $(TARGET ) : minimal.c
10+ $(CC ) minimal.c -o $(TARGET )
11+
12+ $(PRINTF ) : minimal_printf.c
13+ $(CC ) minimal_printf.c -o $(PRINTF )
14+
15+ $(ARGV ) : minimal_w_args.c
16+ $(CC ) minimal_w_args.c -o $(ARGV )
17+ .phony : help run listfiles
18+
19+ help :
20+ @echo " \033[01;43m"
21+ @echo " you can make :"
22+ @echo " run, mini, printf, argv and listfiles"
23+ @echo " \033[00m"
24+
25+ mini : $(TARGET )
26+ @echo " -------------"
27+ @echo target $@ running $<
28+ ./$(TARGET )
29+ @echo " -------------"
30+
31+ printf : $(PRINTF )
32+ @echo " -------------"
33+ @echo target $@ running $<
34+ ./$(PRINTF )
35+ @echo " -------------"
36+
37+ argv : $(ARGV )
38+ @echo " -------------"
39+ @echo target $@ running $<
40+ ./$(ARGV )
41+ @echo " -------------"
42+
43+ run : mini printf argv
44+
45+ listfiles :
46+ ls -lAh
You can’t perform that action at this time.
0 commit comments