-$(TPROG): $(TPROG).o $(LIB)
- $(CC) $(CFLAGS) -o $(TPROG) $(TPROG).o $(LIB) ../lib/bfile.a ../lib/util.a
+alll: $(LIB) $(TPROG1) $(TPROG2)
+
+$(TPROG1): $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/zebrautl.a ../lib/dfa.a
+ $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
+ ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a $(YAZLIB)
+
+$(TPROG2): $(TPROG2).o $(LIB) ../lib/zebrautl.a
+ $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o ../lib/zebrautl.a $(YAZLIB)