]> git.saurik.com Git - wxWidgets.git/blame - samples/memcheck/makefile.unx
fixed arguments to make it wxMSW compatible
[wxWidgets.git] / samples / memcheck / 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 memcheck 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)/memcheck.$(OBJSUFF)
19
20.SUFFIXES:
21
22all: $(OBJDIR) memcheck$(GUISUFFIX)
23
24wxmotif:
25 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)'\
26 DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
27
28
29motif: wxmotif
30 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' WXLIB=$(WXDIR)/lib/libwx_motif.a OPTIONS='$(OPTIONS)'\
31 DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
32
33xview:
34 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
35 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)'\
36 DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
37
38hp:
39 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp
40 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='' WARN='-w' \
41 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
42
43$(OBJDIR):
44 mkdir $(OBJDIR)
45
46memcheck$(GUISUFFIX): $(OBJDIR)/memcheck.$(OBJSUFF) $(WXLIB)
47 $(CC) $(LDFLAGS) -o memcheck$(GUISUFFIX) $(OBJDIR)/memcheck.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
48
49$(OBJDIR)/memcheck.$(OBJSUFF): memcheck.$(SRCSUFF)
50 $(CC) -c $(CPPFLAGS) -o $@ memcheck.$(SRCSUFF)
51
52clean_motif:
53 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
54
55clean_ol:
56 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
57
58clean_hp:
59 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
60
61cleanany:
62 rm -f $(OBJECTS) memcheck$(GUISUFFIX) core