7 # Makefile for mdi example (UNIX, TWIN32)
11 # All common UNIX compiler flags and options are now in
12 # this central makefile.
13 include $(WXDIR)/src/maketwin.env
15 OBJECTS = $(OBJDIR)/mdi.$(OBJSUFF) $(OBJDIR)/mdi_resources.$(OBJSUFF)
17 all: $(OBJDIR) mdi$(GUISUFFIX)$(EXESUFF)
24 mdi$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
25 $(CC) $(LDFLAGS) -o mdi$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
27 $(OBJDIR)/mdi.$(OBJSUFF): mdi.$(SRCSUFF)
28 $(CC) -c $(CPPFLAGS) -o $@ mdi.$(SRCSUFF)
30 mdi_resources.c: mdi.rc
31 $(RESCOMP) $(RCINPUTSWITCH) mdi.rc $(RCOUTPUTSWITCH) mdi_resources.c $(RESFLAGS)
33 $(OBJDIR)/mdi_resources.$(OBJSUFF): mdi_resources.c
34 $(CC) -c $(CPPFLAGS) -o $@ mdi_resources.c
37 rm -f $(OBJECTS) mdi.exe core *.rsc *.res