home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / samples / sockets / makefile.unx < prev    next >
Makefile  |  2001-11-28  |  457b  |  26 lines

  1. # Purpose: makefile for sockets example (Unix)
  2. # Created: 2000-03-14
  3. # hand hacked from template file by Ron <ron@debian.org>
  4.  
  5. CXX = $(shell wx-config --cxx)
  6.  
  7. PROGRAMS = client server
  8.  
  9. # implementation
  10.  
  11. .SUFFIXES:    .o .cpp
  12.  
  13. .cpp.o :
  14.     $(CXX) -c `wx-config --cxxflags` -o $@ $<
  15.  
  16. all: $(PROGRAMS)
  17.  
  18. client: client.o
  19.     $(CXX) -o $@ $< `wx-config --libs`
  20.  
  21. server: server.o
  22.     $(CXX) -o $@ $< `wx-config --libs`
  23.  
  24. clean:
  25.     rm -f *.o $(PROGRAMS)
  26.