]> git.saurik.com Git - wxWidgets.git/blob - samples/docvwmdi/makefile.unx
Rmoved more wxprop files
[wxWidgets.git] / samples / docvwmdi / makefile.unx
1 #
2 # File: makefile.unx
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile for docview example (UNIX).
11
12 WXDIR = ../..
13
14 # All common UNIX compiler flags and options are now in
15 # this central makefile.
16 include $(WXDIR)/src/make.env
17
18 OBJECTS = $(OBJDIR)/docview.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF)
19
20 .SUFFIXES:
21
22 all: $(OBJDIR) wx$(GUISUFFIX) docview$(GUISUFFIX)
23
24 wx_motif:
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
26
27 wx_ol:
28 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
29 motif:
30 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
31
32 xview:
33 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
34
35 hp:
36 $(MAKE) -f makefile,unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \
37 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
38
39 $(OBJDIR):
40 mkdir $(OBJDIR)
41
42 docview$(GUISUFFIX): $(OBJECTS) $(WXLIB)
43 $(CC) $(LDFLAGS) -o docview$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
44
45 $(OBJDIR)/docview.$(OBJSUFF): docview.$(SRCSUFF) docview.h doc.h view.h
46 $(CC) -c $(CPPFLAGS) -o $@ docview.$(SRCSUFF)
47
48 $(OBJDIR)/doc.$(OBJSUFF): doc.$(SRCSUFF) doc.h
49 $(CC) -c $(CPPFLAGS) -o $@ doc.$(SRCSUFF)
50
51 $(OBJDIR)/view.$(OBJSUFF): view.$(SRCSUFF) view.h
52 $(CC) -c $(CPPFLAGS) -o $@ view.$(SRCSUFF)
53
54 clean_motif:
55 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
56
57 clean_ol:
58 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
59
60 clean_hp:
61 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
62
63 cleanany:
64 rm -f $(OBJECTS) docview$(GUISUFFIX) core