-# WXXT base directory
-WXBASEDIR=@WXBASEDIR@
-
-# set the OS type for compilation
-OS=@OS@
-# compile a library only
-RULE=bin2
-
-# define library name
-BIN_TARGET=client
-BIN2_TARGET=server
-# define library sources
-BIN_SRC= client.cpp
-BIN2_SRC= server.cpp
-
-#define library objects
-BIN_OBJ= client.o
-BIN2_OBJ= server.o
-
-# additional things needed to link
-BIN_LINK=
-BIN2_LINK=
-
-# additional things needed to compile
-ADD_COMPILE=
-
-# include the definitions now
-include ../../../template.mak
+#
+# File: Makefile.in
+# Author: Julian Smart
+# Created: 1998
+# Updated:
+# Copyright: (c) 1998 Julian Smart
+#
+# "%W% %G%"
+#
+# Makefile for wxsocket example (UNIX).
+
+top_srcdir = @top_srcdir@
+top_builddir = ../..
+program_dir = samples/wxsocket
+VPATH = :$(top_srcdir)/samples/wxsocket
+
+# Clears all default suffixes
+.SUFFIXES: .o .cpp .c .cxx
+
+.cpp.o :
+ $(CC) -c $(CPPFLAGS) -o $@ $<
+
+# Set defaults from configure
+include ../../src/make.env
+
+all: client server
+
+client: client.o ../../lib/@WX_TARGET_LIBRARY@
+ $(CC) $(LDFLAGS) -o client client.o $(LDLIBS)
+
+server: server.o ../../lib/@WX_TARGET_LIBRARY@
+ $(CC) $(LDFLAGS) -o server server.o $(LDLIBS)
+
+clean:
+ rm -f $(OBJECTS) $(PROGRAM) core
+