]> git.saurik.com Git - wxWidgets.git/blame - samples/drawing/makefile.twn
fixed memory leak (#817324)
[wxWidgets.git] / samples / drawing / makefile.twn
CommitLineData
410cb77e
JS
1#
2# File: makefile.unx
3# Author: Julian Smart
4# Created: 1993
5# Updated:
f0f7bd8a 6# Copyright:
410cb77e
JS
7#
8# "%W% %G%"
9#
10# Makefile for drawing example (UNIX).
11
12WXDIR = ../..
13
14# All common UNIX compiler flags and options are now in
15# this central makefile.
16include $(WXDIR)/src/maketwin.env
17
18OBJECTS = $(OBJDIR)/drawing.$(OBJSUFF) $(OBJDIR)/drawing_resources.$(OBJSUFF)
19
20all: $(OBJDIR) drawing$(GUISUFFIX)$(EXESUFF)
21
22wx:
23
24$(OBJDIR):
25 mkdir $(OBJDIR)
26
27drawing$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
28 $(CC) $(LDFLAGS) -o drawing$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
29
30$(OBJDIR)/drawing.$(OBJSUFF): drawing.$(SRCSUFF)
31 $(CC) -c $(CPPFLAGS) -o $@ drawing.$(SRCSUFF)
32
33drawing_resources.c: drawing.rc
34 $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) drawing_resources.c $(RESFLAGS)
35
36$(OBJDIR)/drawing_resources.$(OBJSUFF): drawing_resources.c
37 $(CC) -c $(CPPFLAGS) -o $@ drawing_resources.c
38
39#$(OBJDIR)/drawing_resources.o: drawing.rc
40# $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) $(OBJDIR)/drawing_resources.o $(RESFLAGS)
41
42clean:
43 rm -f $(OBJECTS) drawing$(GUISUFFIX).exe core *.rsc *.res