-bin/cf: src/cf.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf $<
- @echo ">>> bin/cf command build"
- @echo " "
-
-bin/client: src/client.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client $< $(LIBS)
- @echo ">>> bin/client command built"
- @echo " "
-
-bin/client-gnutls: src/client.c Makefile
- $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls $< -lgnutls -lgcrypt $(LIBS)
- @echo ">>> bin/client-gnutls command built"
- @echo " "
-
-bin/client-ssl: src/client.c Makefile
- $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $< -lssl -lcrypto $(LIBS)
- @echo ">>> bin/client-ssl command built"
- @echo " "
-
-bin/checkaccess:src/checkaccess.c Makefile
- $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $<
- @echo ">>> bin/checkaccess command built"
- @echo " "
-
-bin/fakens: src/fakens.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens $< $(LIBS)
- @echo ">>> bin/fakens command built"
- @echo " "
-
-bin/fd: src/fd.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd $<
- @echo ">>> bin/fd command built"
- @echo " "
-
-bin/iefbr14: src/iefbr14.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 $<
- @echo ">>> bin/iefbr14 command built"
- @echo " "
-
-bin/loaded: src/loaded.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded $<
- @echo ">>> bin/loaded command built"
- @echo " "
-
-bin/mtpscript: src/mtpscript.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript $<
- @echo ">>> bin/mtpscript command built"
- @echo " "
-
-bin/server: src/server.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server $< $(LIBS)
- @echo ">>> bin/server command built"
- @echo " "
-
-bin/showids: src/showids.c Makefile
- $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids $<
- @echo ">>> bin/showids command built"
- @echo " "
-
-clean:; rm -rf bin/*
+bin/cf: $(SRC)/cf.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf $(SRC)/cf.c
+
+bin/client: $(SRC)/client.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client $(SRC)/client.c $(LIBS)
+
+bin/client-gnutls: $(SRC)/client.c Makefile
+ $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls $(SRC)/client.c -lgnutls -lgcrypt $(LIBS)
+
+bin/client-ssl: $(SRC)/client.c Makefile
+ $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $(SRC)/client.c -lssl -lcrypto $(LIBS)
+
+bin/checkaccess:$(SRC)/checkaccess.c Makefile
+ $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $(SRC)/checkaccess.c
+
+bin/fakens: $(SRC)/fakens.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens $(SRC)/fakens.c $(LIBS)
+
+bin/fd: $(SRC)/fd.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd $(SRC)/fd.c
+
+bin/iefbr14: $(SRC)/iefbr14.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 $(SRC)/iefbr14.c
+
+bin/loaded: $(SRC)/loaded.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded $(SRC)/loaded.c
+
+bin/mtpscript: $(SRC)/mtpscript.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript $(SRC)/mtpscript.c
+
+bin/server: $(SRC)/server.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server $(SRC)/server.c $(LIBS)
+
+bin/showids: $(SRC)/showids.c Makefile
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids $(SRC)/showids.c
+
+bin/locate: $(SRC)/locate.sh Makefile
+ cp $(SRC)/locate.pl bin/locate
+ chmod 0755 bin/locate
+
+clean:; rm -rf $(BINARIES) bin.sys
+
+FORCE: