]> git.saurik.com Git - wxWidgets.git/blob - samples/joytest/makefile.unx
wxFrame::CreateToolBar() stuff
[wxWidgets.git] / samples / joytest / 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 joytest 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)/joytest.$(OBJSUFF)
19
20 .SUFFIXES:
21
22 all: $(OBJDIR) joytest$(GUISUFFIX)
23
24 wx:
25 # cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx
26 motif:
27 $(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=
28
29 xview:
30 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
31
32 hp:
33 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \
34 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
35
36 $(OBJDIR):
37 mkdir $(OBJDIR)
38
39 joytest$(GUISUFFIX): $(OBJDIR)/joytest.$(OBJSUFF) $(WXLIB)
40 $(CC) $(LDFLAGS) -o joytest$(GUISUFFIX) $(OBJDIR)/joytest.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
41
42 $(OBJDIR)/joytest.$(OBJSUFF): joytest.$(SRCSUFF) joytest.h
43 $(CC) -c $(CPPFLAGS) -o $@ joytest.$(SRCSUFF)
44
45 clean_motif:
46 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
47
48 clean_ol:
49 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
50
51 clean_hp:
52 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
53
54 cleanany:
55 rm -f $(OBJECTS) joytest$(GUISUFFIX) core