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