]> git.saurik.com Git - wxWidgets.git/blob - samples/event/makefile.twn
CodeWarrior dislikes #include <> syntax for in-tree headers, prefer ""
[wxWidgets.git] / samples / event / makefile.twn
1 # Purpose: makefile for event example (TWIN)
2 # Created: 2001-01-31
3
4 WXDIR = ../..
5
6 # All common UNIX compiler flags and options are now in
7 # this central makefile.
8 include $(WXDIR)/src/maketwin.env
9
10 OBJECTS = $(OBJDIR)/event.$(OBJSUFF) $(OBJDIR)/event.$(OBJSUFF)
11
12 all: $(OBJDIR) event$(GUISUFFIX)$(EXESUFF)
13
14 wx:
15
16 $(OBJDIR):
17 mkdir $(OBJDIR)
18
19 event$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
20 $(CC) $(LDFLAGS) -o event$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
21
22 $(OBJDIR)/event.$(OBJSUFF): event.$(SRCSUFF)
23 $(CC) -c $(CPPFLAGS) -o $@ event.$(SRCSUFF)
24
25 event.c: event.rc
26 $(RESCOMP) $(RCINPUTSWITCH) event.rc $(RCOUTPUTSWITCH) event.c $(RESFLAGS)
27
28 $(OBJDIR)/event.$(OBJSUFF): event.c
29 $(CC) -c $(CPPFLAGS) -o $@ event.c
30
31 #$(OBJDIR)/event.o: event.rc
32 # $(RESCOMP) $(RCINPUTSWITCH) event.rc $(RCOUTPUTSWITCH) $(OBJDIR)/event.o $(RESFLAGS)
33
34 clean:
35 rm -f $(OBJECTS) event$(GUISUFFIX).exe core *.rsc *.res