X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..7c5190745f8d6362354aa9018a3f0867990c4ac6:/samples/layout/makefile.unx?ds=inline diff --git a/samples/layout/makefile.unx b/samples/layout/makefile.unx index 3f9aad0ac2..f057d69480 100644 --- a/samples/layout/makefile.unx +++ b/samples/layout/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 layout 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)/layout.$(OBJSUFF) +# ------------------------------------------------------------------------- +# These are configurable options: +# ------------------------------------------------------------------------- -.SUFFIXES: +# C++ compiler +CXX = g++ -all: $(OBJDIR) layout$(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! +# ------------------------------------------------------------------------- -layout$(GUISUFFIX): $(OBJDIR)/layout.$(OBJSUFF) $(WXLIB) - $(CC) $(LDFLAGS) -o layout$(GUISUFFIX) $(OBJDIR)/layout.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS) +### Variables: ### -$(OBJDIR)/layout.$(OBJSUFF): layout.$(SRCSUFF) layout.h - $(CC) -c $(CPPFLAGS) -o $@ layout.$(SRCSUFF) +CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD +LAYOUT_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) +LAYOUT_OBJECTS = \ + layout_layout.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) layout$(GUISUFFIX) core +### Targets: ### -wxclean_ol: - cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol +all: layout -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 layout + +layout: $(LAYOUT_OBJECTS) + $(CXX) -o $@ $(LAYOUT_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) --libs core,base` + +layout_layout.o: ./layout.cpp + $(CXX) -c -o $@ $(LAYOUT_CXXFLAGS) $(CPPDEPS) $< + +.PHONY: all install uninstall clean + + +# Dependencies tracking: +-include ./*.d