]> git.saurik.com Git - wxWidgets.git/blame - utils/ogl/samples/ogledit/makefile.unx
const added to GetBitmap it was my fault.
[wxWidgets.git] / utils / ogl / samples / ogledit / makefile.unx
CommitLineData
f449ef69
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
18OGLDIR = $(WXDIR)/utils/ogl
19OGLINC = $(OGLDIR)/src
20OGLLIB = $(OGLDIR)/lib/libogl$(GUISUFFIX).a
21
22OBJECTS = $(OBJDIR)/ogledit.$(OBJSUFF) $(OBJDIR)/view.$(OBJSUFF) $(OBJDIR)/doc.$(OBJSUFF) $(OBJDIR)/palette.$(OBJSUFF)
23
24LDFLAGS = $(XLIB) -L$(WXDIR)/lib -L$(OGLDIR)/lib -L$(MFDIR)/lib
25
26XVIEWLDLIBS = -logl_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
27MOTIFLDLIBS = -logl_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
28HPLDLIBS = -logl_motif -lwx_hp -lXm -lXt -lX11 -lm $(COMPLIBS)
29
30CPPFLAGS = -I$(OGLINC) -I$(PROLOGINC) -I$(MFINC) $(XINCLUDE) $(INC) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPTIONS) -DPROLOGIO
31
32.SUFFIXES:
33
34all: $(OBJDIR) ogledit$(GUISUFFIX)
35
36wx_motif:
37 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
38
39wx_ol:
40 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
41motif:
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
44xview:
45 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
46
47hp:
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
54ogledit$(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
69clean_motif:
70 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
71
72clean_ol:
73 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
74
75clean_hp:
76 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
77
78cleanany:
79 rm -f $(OBJECTS) ogledit(GUISUFFIX) core