-client@PROGRAM_EXT@: client.o ../../lib/@WX_TARGET_LIBRARY@
- $(CC) $(LDFLAGS) -o client@PROGRAM_EXT@ client.o $(LDLIBS)
+sockets_resources.o: sockets.rc
+ $(RESCOMP) -i $< -o $@ $(RESFLAGS)
+
+client@PROGRAM_EXT@: client.o ../../lib/@WX_TARGET_LIBRARY@ sockets_resources.o
+ $(CXX) $(LDFLAGS) -o client@PROGRAM_EXT@ sockets_resources.o client.o $(LDLIBS)