3 # Author: Terry Tompkins
6 # Copyright: (c) 1998, Remstar International
8 # Makefile for wxDB (UNIX).
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/make.env
21 OBJECTS = $(OBJDIR)/$(PROGRAM).$(OBJSUFF) $(OBJDIR)/table.$(OBJSUFF) $(OBJDIR)/db.$(OBJSUFF) $(OBJDIR)/listdb.$(OBJSUFF)
25 all: $(OBJDIR) $(PROGRAM)$(GUISUFFIX)
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=
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)'
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)'
45 $(PROGRAM)$(GUISUFFIX): $(DUMMYOBJ) $(DBLIBS) $(OBJECTS) $(WXLIB)
46 $(CC) $(LDFLAGS) -o $(PROGRAM)$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
48 $(OBJDIR)/$(PROGRAM).$(OBJSUFF): $(PROGRAM).$(SRCSUFF)
49 $(CC) -c $(CPPFLAGS) -o $@ $(PROGRAM).$(SRCSUFF)
51 $(OBJDIR)/table.$(OBJSUFF): table.$(SRCSUFF)
52 $(CC) -c $(CPPFLAGS) -o $@ table.$(SRCSUFF)
54 $(OBJDIR)/db.$(OBJSUFF): db.$(SRCSUFF)
55 $(CC) -c $(CPPFLAGS) -o $@ db.$(SRCSUFF)
57 $(OBJDIR)/listdb.$(OBJSUFF): listdb.$(SRCSUFF)
58 $(CC) -c $(CPPFLAGS) -o $@ listdb.$(SRCSUFF)
61 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
64 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
67 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
70 rm -f $(OBJECTS) $(PROGRAM)$(GUISUFFIX) core