]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/validate/makefile.unx
use wxDC::GetMultiLineTextExtent() instead of duplicating its code in wxButton::DoGet...
[wxWidgets.git] / samples / validate / makefile.unx
index fd12e5ba03262837c08e6297f515a202a55c41d5..ab717a272570cb47e92f31c0bd934927990d0e62 100644 (file)
@@ -1,17 +1,23 @@
-#
-# File:                makefile.unx
-# Author:      Julian Smart
-# Created:     1998
-# Updated:     
-# Copyright:   (c) 1998 Julian Smart
-#
-# "%W% %G%"
-#
-# Makefile for validate example (UNIX).
+# Purpose: makefile for validate example (Unix)
+# Created: 2000-03-14
 
 
-PROGRAM=validate
+CXX = $(shell wx-config --cxx)
 
 
-OBJECTS=$(PROGRAM).o
+PROGRAM = validate
 
 
-include ../../src/makeprog.env
+OBJECTS = $(PROGRAM).o
 
 
+# implementation
+
+.SUFFIXES:     .o .cpp
+
+.cpp.o :
+       $(CXX) -c `wx-config --cxxflags` -o $@ $<
+
+all:    $(PROGRAM)
+
+$(PROGRAM):    $(OBJECTS)
+       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+
+clean:
+       rm -f *.o $(PROGRAM)