6 # Copyright: (c) 1998 Julian Smart
10 # Makefile for wxsocket example (UNIX).
12 top_srcdir = @top_srcdir@
14 program_dir = samples/sockets
15 # the comment at the end of the next line is needed because otherwise autoconf
16 # would remove this line completely - it contains a built-in hack to remove
17 # any VPATH assignment not containing ':'
18 VPATH = @PATH_IFS@$(top_srcdir)/samples/sockets # ':' for autoconf
20 # Clears all default suffixes
21 .SUFFIXES: .o .cpp .c .cxx
24 $(CC) -c $(CPPFLAGS) -o $@ $<
26 # Set defaults from configure
27 include ../../src/make.env
29 all: client@PROGRAM_EXT@ server@PROGRAM_EXT@
31 client@PROGRAM_EXT@: client.o ../../lib/@WX_TARGET_LIBRARY@
32 $(CC) $(LDFLAGS) -o client@PROGRAM_EXT@ client.o $(LDLIBS)
34 server@PROGRAM_EXT@: server.o ../../lib/@WX_TARGET_LIBRARY@
35 $(CC) $(LDFLAGS) -o server@PROGRAM_EXT@ server.o $(LDLIBS)
38 rm -f client@PROGRAM_EXT@ server@PROGRAM_EXT@ client.o server.o core