]> git.saurik.com Git - wxWidgets.git/blame - samples/minimal/makefile.unx
disable warning about data truncation (810) for icc (this is a useful warning and...
[wxWidgets.git] / samples / minimal / makefile.unx
CommitLineData
e9093718
RR
1#
2# File: Makefile for samples
3# Author: Robert Roebling
4# Created: 1999
5# Updated:
6# Copyright: (c) 1998 Robert Roebling
7#
8# This makefile requires a Unix version of wxWindows
9# to be installed on your system. This is most often
10# done typing "make install" when using the complete
11# sources of wxWindows or by installing the two
12# RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm
13# under Linux.
e9093718 14
72858fcf
VZ
15# this makefile may also be used as a template for simple makefiles for your
16# own programs, the comments explain which parts of it you may have to modify
17# to use it for your own programs
18
e9093718 19
72858fcf
VZ
20# you may change WX_CONFIG value to use a specific wx-config and to pass it
21# some options, for example "--inplace" to use an uninstalled wxWindows
22# version
23#
24# by default, wx-config from the PATH is used
25WX_CONFIG := wx-config
26
27# set this to the name of the main executable file
e9093718
RR
28PROGRAM = minimal
29
72858fcf
VZ
30# if your program has more than one source file, add more .o files to the line
31# below
e9093718
RR
32OBJECTS = $(PROGRAM).o
33
72858fcf
VZ
34
35# you shouldn't have to edit anything below this line
36CXX = $(shell $(WX_CONFIG) --cxx)
e9093718
RR
37
38.SUFFIXES: .o .cpp
39
40.cpp.o :
72858fcf 41 $(CXX) -c `$(WX_CONFIG) --cxxflags` -o $@ $<
e9093718
RR
42
43all: $(PROGRAM)
44
45$(PROGRAM): $(OBJECTS)
72858fcf 46 $(CXX) -o $(PROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs`
e9093718
RR
47
48clean:
49 rm -f *.o $(PROGRAM)