]> git.saurik.com Git - wxWidgets.git/blame - samples/docview/makefile.unx
Added bitmaps and icons to samples
[wxWidgets.git] / samples / docview / makefile.unx
CommitLineData
457814b5
JS
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
12WXDIR = ../..
13
14# All common UNIX compiler flags and options are now in
15# this central makefile.
16include $(WXDIR)/src/make.env
17
18OBJECTS = $(OBJDIR)/docview.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF)
19
20.SUFFIXES:
21
22all: $(OBJDIR) wx$(GUISUFFIX) docview$(GUISUFFIX)
23
24wx_motif:
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
26
27wx_ol:
28 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
29motif:
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
32xview:
33 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
34
35hp:
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
42docview$(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
54clean_motif:
55 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
56
57clean_ol:
58 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
59
60clean_hp:
61 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
62
63cleanany:
64 rm -f $(OBJECTS) docview$(GUISUFFIX) core