]> git.saurik.com Git - wxWidgets.git/blame - samples/db/makefile.unx
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / db / makefile.unx
CommitLineData
108106cf
JS
1#
2# File: makefile.unx
3# Author: Terry Tompkins
4# Created: 1998
5# Updated:
6# Copyright: (c) 1998, Remstar International
7#
8# Makefile for wxDB (UNIX).
9
10OBJDIR=database
11OBJSUFF=.o
12SRCSUFF=.cpp
13WXDIR = $(WXWIN)
14
15# All common UNIX compiler flags and options are now in
16# this central makefile.
17include $(WXDIR)/src/make.env
18
19PROGRAM=database
20
21OBJECTS = $(OBJDIR)/$(PROGRAM).$(OBJSUFF) $(OBJDIR)/table.$(OBJSUFF) $(OBJDIR)/db.$(OBJSUFF) $(OBJDIR)/listdb.$(OBJSUFF)
22
23.SUFFIXES:
24
25all: $(OBJDIR) $(PROGRAM)$(GUISUFFIX)
26
27wx:
28
29
30motif:
31 $(MAKE) -f makefile.unx 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=
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)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
36
37hp:
38 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp
39 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \
40 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
41
42$(OBJDIR):
43 mkdir $(OBJDIR)
44
45$(PROGRAM)$(GUISUFFIX): $(DUMMYOBJ) $(DBLIBS) $(OBJECTS) $(WXLIB)
46 $(CC) $(LDFLAGS) -o $(PROGRAM)$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
47
48$(OBJDIR)/$(PROGRAM).$(OBJSUFF): $(PROGRAM).$(SRCSUFF)
49 $(CC) -c $(CPPFLAGS) -o $@ $(PROGRAM).$(SRCSUFF)
50
51$(OBJDIR)/table.$(OBJSUFF): table.$(SRCSUFF)
52 $(CC) -c $(CPPFLAGS) -o $@ table.$(SRCSUFF)
53
54$(OBJDIR)/db.$(OBJSUFF): db.$(SRCSUFF)
55 $(CC) -c $(CPPFLAGS) -o $@ db.$(SRCSUFF)
56
57$(OBJDIR)/listdb.$(OBJSUFF): listdb.$(SRCSUFF)
58 $(CC) -c $(CPPFLAGS) -o $@ listdb.$(SRCSUFF)
59
60clean_motif:
61 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
62
63clean_ol:
64 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
65
66clean_hp:
67 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
68
69cleanany:
70 rm -f $(OBJECTS) $(PROGRAM)$(GUISUFFIX) core
71