10 # Makefile for scroll 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)/scroll.$(OBJSUFF) $(OBJDIR)/scroll_resources.$(OBJSUFF)
20 all: $(OBJDIR) scroll$(GUISUFFIX)$(EXESUFF)
27 scroll$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
28 $(CC) $(LDFLAGS) -o scroll$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
30 $(OBJDIR)/scroll.$(OBJSUFF): scroll.$(SRCSUFF)
31 $(CC) -c $(CPPFLAGS) -o $@ scroll.$(SRCSUFF)
33 scroll_resources.c: scroll.rc
34 $(RESCOMP) $(RCINPUTSWITCH) scroll.rc $(RCOUTPUTSWITCH) scroll_resources.c $(RESFLAGS)
36 $(OBJDIR)/scroll_resources.$(OBJSUFF): scroll_resources.c
37 $(CC) -c $(CPPFLAGS) -o $@ scroll_resources.c
39 #$(OBJDIR)/scroll_resources.o: scroll.rc
40 # $(RESCOMP) $(RCINPUTSWITCH) scroll.rc $(RCOUTPUTSWITCH) $(OBJDIR)/scroll_resources.o $(RESFLAGS)
43 rm -f $(OBJECTS) scroll$(GUISUFFIX).exe core *.rsc *.res