]> git.saurik.com Git - wxWidgets.git/blob - samples/db/makefile.unx
Added script to help make wxMotif via configure; nativdlg sample works again;
[wxWidgets.git] / samples / db / makefile.unx
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
10 OBJDIR=database
11 OBJSUFF=.o
12 SRCSUFF=.cpp
13 WXDIR = $(WXWIN)
14
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/make.env
18
19 PROGRAM=database
20
21 OBJECTS = $(OBJDIR)/$(PROGRAM).$(OBJSUFF) $(OBJDIR)/table.$(OBJSUFF) $(OBJDIR)/db.$(OBJSUFF) $(OBJDIR)/listdb.$(OBJSUFF)
22
23 .SUFFIXES:
24
25 all: $(OBJDIR) $(PROGRAM)$(GUISUFFIX)
26
27 wx:
28
29
30 motif:
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
33 xview:
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
37 hp:
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
60 clean_motif:
61 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
62
63 clean_ol:
64 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
65
66 clean_hp:
67 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
68
69 cleanany:
70 rm -f $(OBJECTS) $(PROGRAM)$(GUISUFFIX) core
71