]>
Commit | Line | Data |
---|---|---|
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 | ||
13 | WXDIR = ../.. | |
14 | ||
15 | # All common UNIX compiler flags and options are now in | |
16 | # this central makefile. | |
17 | include $(WXDIR)/src/makeg95.env | |
18 | ||
19 | WXSOCKDIR = $(WXDIR)/contrib/wxsock | |
20 | WXSOCKLIB = $(WXSOCKDIR)/libwxsock.a | |
21 | ||
22 | OBJECTS = $(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 | ||
29 | TESTOBJECTS = $(OBJDIR)/test.$(OBJSUFF) | |
30 | TESTPROGRAM = $(WXSTRINGDIR)/test$(GUISUFFIX) | |
31 | ||
32 | LDFLAGS = $(XLIB) -L$(WXSOCKDIR) -L$(WXDIR)/lib | |
33 | ||
34 | XVIEWLDLIBS = -lwxstring_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS) | |
35 | MOTIFLDLIBS = -lwxstring_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS) | |
36 | HPLDLIBS = -lwxstring_hp -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS) | |
37 | # Default | |
38 | LDLIBS=$(MOTIFLDLIBS) | |
39 | ||
40 | all: $(OBJDIR) $(WXSOCKLIB) | |
41 | ||
42 | demo: $(TESTPROGRAM) | |
43 | ||
44 | .SUFFIXES: | |
45 | ||
46 | # Comment this out if 'say' doesn't speak on your system, or make it beep perhaps! | |
47 | done: | |
48 | say dun | |
49 | ||
50 | wx: | |
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 | ||
73 | clean: | |
74 | rm -f $(OBJECTS) test$(GUISUFFIX) $(WXSTRINGLIB) $(OBJDIR)/test.$(OBJSUFF) core | |
75 |