@@ -28,21 +28,47 @@ toolname = seedtool
2828.PHONY : all
2929all : $(toolname )
3030
31- OBJS = seedtool.o utils.o generators.o params.o input.o output.o random.o randombytes.o hkdf.o
31+ OBJS = \
32+ seedtool.o \
33+ utils.o \
34+ params.o \
35+ random.o \
36+ randombytes.o \
37+ hkdf.o \
38+ format.o \
39+ format-base6.o \
40+ format-base10.o \
41+ format-bip39.o \
42+ format-bits.o \
43+ format-cards.o \
44+ format-dice.o \
45+ format-hex.o \
46+ format-ints.o \
47+ format-random.o \
48+ format-slip39.o
3249
3350LDFLAGS = -lbc-crypto-base -lbc-shamir -lbc-slip39 -lbc-bip39 -largp
3451
3552$(toolname ) : $(OBJS )
3653
37- seedtool.o : generators .h params .h
54+ seedtool.o : params .h format .h
3855utils.o : utils.h
39- input.o : input.h params.h
40- output.o : output.h params.h utils.h
41- params.o : params.h utils.h input.h output.h
42- generators.o : generators.h utils.h
56+ params.o : params.h utils.h random.h formats-all.h
4357random.o : random.h randombytes.h hkdf.h
4458randombytes.o : randombytes.h
4559hkdf.o : hkdf.h
60+ format.o : format.h utils.h
61+ formats-all.h : format-base6.h format-base10.h format-bip39.h format-bits.h format-cards.h format-dice.h format-hex.h format-ints.h format-random.h format-slip39.h
62+ format-base6.o : format-base6.h format.h params.h
63+ format-base10.o : format-base10.h format.h params.h
64+ format-bip39.o : format-bip39.h format.h params.h
65+ format-bits.o : format-bits.h format.h params.h
66+ format-cards.o : format-cards.h format.h params.h
67+ format-dice.o : format-dice.h format.h params.h
68+ format-hex.o : format-hex.h format.h params.h
69+ format-ints.o : format-ints.h format.h params.h
70+ format-random.o : format-random.h random.h format.h params.h
71+ format-slip39.o : format-slip39.h format.h params.h
4672
4773bindir = $(DESTDIR ) /$(prefix ) /bin
4874
@@ -62,7 +88,7 @@ check: $(toolname)
6288
6389.PHONY : clean
6490clean :
65- rm -f $(toolname ) $( OBJS )
91+ rm -f $(toolname ) * .o
6692 rm -rf * .dSYM
6793
6894.PHONY : distclean
0 commit comments