]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/joytest/makefile.unx
flicker reduction on gtk
[wxWidgets.git] / samples / joytest / makefile.unx
index c4156423acf268eeecdb6fd70c0d570d6b5036a4..5e811341af37f003b6f84abf852809213b496988 100644 (file)
@@ -1,55 +1,71 @@
-#
-# File:                makefile.unx
-# Author:      Julian Smart
-# Created:     1993
-# Updated:     
-# Copyright:   (c) 1993, AIAI, University of Edinburgh
-#
-# "%W% %G%"
-#
-# Makefile for joytest example (UNIX).
+# =========================================================================
+#     This makefile was generated by
+#     Bakefile 0.2.0 (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)/joytest.$(OBJSUFF)
+# -------------------------------------------------------------------------
+# These are configurable options:
+# -------------------------------------------------------------------------
 
-.SUFFIXES:
+# C++ compiler 
+CXX = g++
 
-all:    $(OBJDIR) joytest$(GUISUFFIX)
+# Standard flags for C++ 
+CXXFLAGS = 
 
-wx:
-#      cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx
-motif:
-       $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
+# Standard preprocessor flags (common for CC and CXX) 
+CPPFLAGS = 
 
-xview:
-       $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
+# Standard linker flags 
+LDFLAGS = 
 
-hp:
-       $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' WARN='-w' \
-         XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
+# Location and arguments of wx-config script 
+WX_CONFIG = wx-config
 
-$(OBJDIR):
-       mkdir $(OBJDIR)
+# C++ flags to use with wxWidgets code 
+WX_CXXFLAGS = `$(WX_CONFIG) --cxxflags`
 
-joytest$(GUISUFFIX): $(OBJDIR)/joytest.$(OBJSUFF) $(WXLIB)
-       $(CC) $(LDFLAGS) -o joytest$(GUISUFFIX) $(OBJDIR)/joytest.$(OBJSUFF) $(XVIEW_LINK) $(LDLIBS)
 
-$(OBJDIR)/joytest.$(OBJSUFF):        joytest.$(SRCSUFF) joytest.h
-       $(CC) -c $(CPPFLAGS) -o $@ joytest.$(SRCSUFF)
 
-clean_motif:
-       $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
+# -------------------------------------------------------------------------
+# Do not modify the rest of this file!
+# -------------------------------------------------------------------------
 
-clean_ol:
-       $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
+### Variables: ###
 
-clean_hp:
-       $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
+CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD
+JOYTEST_CXXFLAGS =  -I.  $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS)
+JOYTEST_OBJECTS =  \
+       joytest_joytest.o
 
-cleanany:
-       rm -f $(OBJECTS) joytest$(GUISUFFIX) core
+### Conditionally set variables: ###
+
+
+
+### Targets: ###
+
+all: joytest
+
+install: all
+
+uninstall: 
+
+clean: 
+       rm -f ./*.o
+       rm -f ./*.d
+       rm -f joytest
+
+joytest: $(JOYTEST_OBJECTS)
+       $(CXX) -o $@ $(JOYTEST_OBJECTS) $(LDFLAGS)   `$(WX_CONFIG) --libs adv,html,xml,core,base`
+
+joytest_joytest.o: ./joytest.cpp
+       $(CXX) -c -o $@ $(JOYTEST_CXXFLAGS) $(CPPDEPS) $<
+
+.PHONY: all install uninstall clean
+
+
+# Dependencies tracking:
+-include ./*.d