X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..7ea70037e0931bcf0895b6a3a453765919e2e1c1:/samples/nativdlg/makefile.unx diff --git a/samples/nativdlg/makefile.unx b/samples/nativdlg/makefile.unx index 1967b5e242..68544f057e 100644 --- a/samples/nativdlg/makefile.unx +++ b/samples/nativdlg/makefile.unx @@ -1,76 +1,71 @@ -# -# File: makefile.unx -# Author: Julian Smart -# Created: 1993 -# Updated: -# Copyright: (c) 1993, AIAI, University of Edinburgh -# -# "%W% %G%" -# -# Makefile for resource example (UNIX). +# ========================================================================= +# This makefile was generated by +# Bakefile 0.2.1 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= -WXDIR = ../.. -# All common UNIX compiler flags and options are now in -# this central makefile. -include $(WXDIR)/src/make.env -OBJECTS=$(OBJDIR)/resource.$(OBJSUFF) +# ------------------------------------------------------------------------- +# These are configurable options: +# ------------------------------------------------------------------------- -.SUFFIXES: +# C++ compiler +CXX = g++ -all: $(OBJDIR) resource$(GUISUFFIX) +# Standard flags for C++ +CXXFLAGS = -wxmotif: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif +# Standard preprocessor flags (common for CC and CXX) +CPPFLAGS = -wxxview: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview +# Standard linker flags +LDFLAGS = -wxhp: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx hp +# Location and arguments of wx-config script +WX_CONFIG = wx-config -# For SGI, include -lPW on your LDLIBS -motif: wxmotif - $(MAKE) -f makefile.unx all 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= +# C++ flags to use with wxWidgets code +WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags` -xview: wxxview - $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' LDLIBS='$(XVIEWLDLIBS)' -hp: wxhp - $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC OPT='' DEBUG='$(DEBUG)' WARN='-w' \ - XINCLUDE='$(HPXINCLUDE)' \ - XLIB='$(HPXLIB)' \ - XVIEW_LINK='' \ - LDLIBS='$(HPLDLIBS)' -$(OBJDIR): - mkdir $(OBJDIR) +# ------------------------------------------------------------------------- +# Do not modify the rest of this file! +# ------------------------------------------------------------------------- -resource$(GUISUFFIX): $(OBJDIR)/resource.$(OBJSUFF) $(WXLIB) - $(CC) $(LDFLAGS) -o resource$(GUISUFFIX) $(OBJDIR)/resource.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS) +### Variables: ### -$(OBJDIR)/resource.$(OBJSUFF): resource.$(SRCSUFF) resource.h - $(CC) -c $(CPPFLAGS) -o $@ resource.$(SRCSUFF) +CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD +NATIVDLG_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) +NATIVDLG_OBJECTS = \ + nativdlg_nativdlg.o -clean_motif: - $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany +### Conditionally set variables: ### -clean_ol: - $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany -clean_hp: - $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany -cleanany: - rm -f $(OBJECTS) resource$(GUISUFFIX) core +### Targets: ### -wxclean_ol: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol +all: nativdlg -wxclean_motif: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif +install: all -wxclean_hp: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp +uninstall: +clean: + rm -f ./*.o + rm -f ./*.d + rm -f nativdlg + +nativdlg: $(NATIVDLG_OBJECTS) + $(CXX) -o $@ $(NATIVDLG_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,base` + +nativdlg_nativdlg.o: ./nativdlg.cpp + $(CXX) -c -o $@ $(NATIVDLG_CXXFLAGS) $(CPPDEPS) $< + +.PHONY: all install uninstall clean + + +# Dependencies tracking: +-include ./*.d