]> git.saurik.com Git - wxWidgets.git/blame - samples/wxsocket/makefile.g95
* Added wxsocket lib and sample (I hope I don't forget some file)
[wxWidgets.git] / samples / wxsocket / makefile.g95
CommitLineData
f4ada568
GL
1#
2# File: makefile.unx
3# Author: Stefan Hammes
4# Created: 1995
5# Updated:
6# Copyright: (c) 1995
7#
8# "%W% %G%"
9#
10# Makefile for wxString example (UNIX).
11# Change the WXDIR directory, and CPPFLAGS and LDFLAGS, for your system.
12
13WXDIR = ../..
14
15# All common UNIX compiler flags and options are now in
16# this central makefile.
17include $(WXDIR)/src/makeg95.env
18
19WXSOCKDIR = $(WXDIR)/contrib/wxsock
20WXSOCKLIB = $(WXSOCKDIR)/libwxsock.a
21
22OBJECTS = $(OBJDIR)/wx_sock.$(OBJSUFF) $(OBJDIR)/wx_addr.$(OBJSUFF) \
23 $(OBJDIR)/wx_pkman.$(OBJSUFF) $(OBJDIR)/wx_skflt.$(OBJSUFF) \
24 $(OBJDIR)/wx_lzw.$(OBJSUFF) \
25 $(OBJDIR)/wx_url.$(OBJSUFF) $(OBJDIR)/wx_ftp.$(OBJSUFF) \
26 $(OBJDIR)/wx_file.$(OBJSUFF) $(OBJDIR)/wx_nipc.$(OBJSUFF) \
27 $(OBJDIR)/wx_wipc.$(OBJSUFF) $(OBJDIR)/wx_sipc.$(OBJSUFF)
28
29TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF)
30TESTPROGRAM = $(WXSTRINGDIR)/test$(GUISUFFIX)
31
32LDFLAGS = $(XLIB) -L$(WXSOCKDIR) -L$(WXDIR)/lib
33
34XVIEWLDLIBS = -lwxstring_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
35MOTIFLDLIBS = -lwxstring_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
36HPLDLIBS = -lwxstring_hp -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS)
37# Default
38LDLIBS=$(MOTIFLDLIBS)
39
40all: $(OBJDIR) $(WXSOCKLIB)
41
42demo: $(TESTPROGRAM)
43
44.SUFFIXES:
45
46# Comment this out if 'say' doesn't speak on your system, or make it beep perhaps!
47done:
48 say dun
49
50wx:
51 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx GUI=$(GUI)
52
53$(OBJDIR):
54 mkdir $(OBJDIR)
55
56$(WXSOCKLIB): $(OBJECTS)
57 rm -f $@
58 ar $(AROPTIONS) libwxsock.a $(OBJECTS)
59 $(RANLIB) libwxsock.a
60
61$(OBJDIR)/wx_sock.$(OBJSUFF): wx_sock.$(SRCSUFF) wx_sock.h
62 $(CC) -c $(CPPFLAGS) -o $@ wx_sock.$(SRCSUFF)
63
64$(OBJDIR)/wx_addr.$(OBJSUFF): wx_addr.$(SRCSUFF) wx_addr.h
65 $(CC) -c $(CPPFLAGS) -o $@ wx_addr.$(SRCSUFF)
66
67$(OBJDIR)/test.$(OBJSUFF): test.$(SRCSUFF)
68 $(CC) -c $(CPPFLAGS) -o $@ test.$(SRCSUFF)
69
70$(TESTPROGRAM): $(OBJDIR)/test.$(OBJSUFF) $(WXLIB) $(WXSOCKLIB)
71 $(CC) $(CPPFLAGS) $(LDFLAGS) -o test$(GUISUFFIX) $(OBJDIR)/test.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
72
73clean:
74 rm -f $(OBJECTS) test$(GUISUFFIX) $(WXSTRINGLIB) $(OBJDIR)/test.$(OBJSUFF) core
75