2000-03-14 14:06:41 +00:00
|
|
|
# Purpose: makefile for sockets example (Unix)
|
|
|
|
# Created: 2000-03-14
|
|
|
|
# hand hacked from template file by Ron <ron@debian.org>
|
|
|
|
|
2001-11-28 18:10:15 +00:00
|
|
|
CXX = $(shell wx-config --cxx)
|
2000-03-14 14:06:41 +00:00
|
|
|
|
|
|
|
PROGRAMS = client server
|
|
|
|
|
|
|
|
# implementation
|
|
|
|
|
|
|
|
.SUFFIXES: .o .cpp
|
|
|
|
|
|
|
|
.cpp.o :
|
2001-11-28 18:10:15 +00:00
|
|
|
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
2000-03-14 14:06:41 +00:00
|
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
|
|
|
|
client: client.o
|
2001-11-28 18:10:15 +00:00
|
|
|
$(CXX) -o $@ $< `wx-config --libs`
|
2000-03-14 14:06:41 +00:00
|
|
|
|
|
|
|
server: server.o
|
2001-11-28 18:10:15 +00:00
|
|
|
$(CXX) -o $@ $< `wx-config --libs`
|
2000-03-14 14:06:41 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGRAMS)
|