10 # Makefile for drawing example (UNIX).
14 # All common UNIX compiler flags and options are now in
15 # this central makefile.
16 include $(WXDIR)/src/maketwin.env
18 OBJECTS = $(OBJDIR)/drawing.$(OBJSUFF) $(OBJDIR)/drawing_resources.$(OBJSUFF)
20 all: $(OBJDIR) drawing$(GUISUFFIX)$(EXESUFF)
27 drawing$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
28 $(CC) $(LDFLAGS) -o drawing$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
30 $(OBJDIR)/drawing.$(OBJSUFF): drawing.$(SRCSUFF)
31 $(CC) -c $(CPPFLAGS) -o $@ drawing.$(SRCSUFF)
33 drawing_resources.c: drawing.rc
34 $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) drawing_resources.c $(RESFLAGS)
36 $(OBJDIR)/drawing_resources.$(OBJSUFF): drawing_resources.c
37 $(CC) -c $(CPPFLAGS) -o $@ drawing_resources.c
39 #$(OBJDIR)/drawing_resources.o: drawing.rc
40 # $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) $(OBJDIR)/drawing_resources.o $(RESFLAGS)
43 rm -f $(OBJECTS) drawing$(GUISUFFIX).exe core *.rsc *.res