basic functions to make
This commit is contained in:
parent
1a34e2f64b
commit
a0ad80a375
52 changed files with 2964 additions and 3 deletions
28
libtf/dev/Makefile
Normal file
28
libtf/dev/Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
ALL_BASE=mem str print list error str2 data str3 read mem2
|
||||
ALL_TOTAL=$(ALL_BASE) printf
|
||||
|
||||
COMP=cc -Wall -Werror -Wextra -g -I ../
|
||||
|
||||
help :
|
||||
@echo ""
|
||||
@echo "RULES: all $(ALL_TOTAL)"
|
||||
@echo ""
|
||||
|
||||
../libtf.a :
|
||||
make -C ../ fclean debug
|
||||
|
||||
|
||||
$(ALL_BASE) : ../libtf.a
|
||||
$(COMP) -o $@.out $@.c ../libtf.a
|
||||
|
||||
printf : ../libtf.a
|
||||
$(COMP) -o printf.out -Wno-error=format -Wformat=0 printf.c ../libtf.a
|
||||
|
||||
all : $(ALL_TOTAL)
|
||||
|
||||
clean :
|
||||
rm $(addsuffix .out,$(ALL_TOTAL))
|
||||
|
||||
fclean : clean
|
||||
|
||||
.PHONY : help ../libtf.a $(ALL_TOTAL)
|
||||
Loading…
Add table
Add a link
Reference in a new issue