]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/ogledit/makefile.unx
spurious error messages from wxRegKey::HasValue() suppressed
[wxWidgets.git] / utils / ogl / samples / ogledit / 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 OGLDIR = $(WXDIR)/utils/ogl
19 OGLINC = $(OGLDIR)/src
20 OGLLIB = $(OGLDIR)/lib/libogl$(GUISUFFIX).a
21
22 OBJECTS = $(OBJDIR)/ogledit.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF) $(OBJDIR)/palette.$(OBJSUFF)
23
24 LDFLAGS = $(XLIB) -L$(WXDIR)/lib -L$(OGLDIR)/lib -L$(MFDIR)/lib
25
26 XVIEWLDLIBS = -logl_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
27 MOTIFLDLIBS = -logl_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
28 HPLDLIBS = -logl_motif -lwx_hp -lXm -lXt -lX11 -lm $(COMPLIBS)
29
30 CPPFLAGS = -I$(OGLINC) -I$(PROLOGINC) -I$(MFINC) $(XINCLUDE) $(INC) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPTIONS) -DPROLOGIO
31
32 .SUFFIXES:
33
34 all: $(OBJDIR) ogledit$(GUISUFFIX)
35
36 wx_motif:
37 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
38
39 wx_ol:
40 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
41 motif:
42 $(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=
43
44 xview:
45 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
46
47 hp:
48 $(MAKE) -f makefile,unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='' WARN='-w' \
49 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
50
51 $(OBJDIR):
52 mkdir $(OBJDIR)
53
54 ogledit$(GUISUFFIX): $(OBJECTS) $(WXLIB)
55 $(CC) $(LDFLAGS) -o ogledit$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
56
57 $(OBJDIR)/ogledit.$(OBJSUFF): ogledit.$(SRCSUFF) ogledit.h doc.h view.h palette.h
58 $(CC) -c $(CPPFLAGS) -o $@ ogledit.$(SRCSUFF)
59
60 $(OBJDIR)/doc.$(OBJSUFF): doc.$(SRCSUFF) doc.h
61 $(CC) -c $(CPPFLAGS) -o $@ doc.$(SRCSUFF)
62
63 $(OBJDIR)/view.$(OBJSUFF): view.$(SRCSUFF) view.h
64 $(CC) -c $(CPPFLAGS) -o $@ view.$(SRCSUFF)
65
66 $(OBJDIR)/palette.$(OBJSUFF): palette.$(SRCSUFF) palette.h
67 $(CC) -c $(CPPFLAGS) -o $@ palette.$(SRCSUFF)
68
69 clean_motif:
70 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
71
72 clean_ol:
73 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
74
75 clean_hp:
76 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
77
78 cleanany:
79 rm -f $(OBJECTS) ogledit(GUISUFFIX) core