]> git.saurik.com Git - wxWidgets.git/blame - samples/nativdlg/makefile.unx
no message
[wxWidgets.git] / samples / nativdlg / makefile.unx
CommitLineData
bbf1f0e5
KB
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 resource 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)/resource.$(OBJSUFF)
19
20.SUFFIXES:
21
22all: $(OBJDIR) resource$(GUISUFFIX)
23
24wxmotif:
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
26
27wxxview:
28 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
29
30wxhp:
31 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp
32
33# For SGI, include -lPW on your LDLIBS
34motif: wxmotif
35 $(MAKE) -f makefile.unx all GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
36
37xview: wxxview
38 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' LDLIBS='$(XVIEWLDLIBS)'
39
40hp: wxhp
41 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC OPT='' DEBUG='$(DEBUG)' WARN='-w' \
42 XINCLUDE='$(HPXINCLUDE)' \
43 XLIB='$(HPXLIB)' \
44 XVIEW_LINK='' \
45 LDLIBS='$(HPLDLIBS)'
46
47$(OBJDIR):
48 mkdir $(OBJDIR)
49
50resource$(GUISUFFIX): $(OBJDIR)/resource.$(OBJSUFF) $(WXLIB)
51 $(CC) $(LDFLAGS) -o resource$(GUISUFFIX) $(OBJDIR)/resource.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
52
53$(OBJDIR)/resource.$(OBJSUFF): resource.$(SRCSUFF) resource.h
54 $(CC) -c $(CPPFLAGS) -o $@ resource.$(SRCSUFF)
55
56clean_motif:
57 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
58
59clean_ol:
60 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
61
62clean_hp:
63 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
64
65cleanany:
66 rm -f $(OBJECTS) resource$(GUISUFFIX) core
67
68wxclean_ol:
69 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol
70
71wxclean_motif:
72 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif
73
74wxclean_hp:
75 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp
76