1 # Purpose: makefile for joytest example (TWIN)
6 # All common UNIX compiler flags and options are now in
7 # this central makefile.
8 include $(WXDIR)/src/maketwin.env
10 OBJECTS = $(OBJDIR)/joytest.$(OBJSUFF) $(OBJDIR)/joytest.$(OBJSUFF)
12 all: $(OBJDIR) joytest$(GUISUFFIX)$(EXESUFF)
19 joytest$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
20 $(CC) $(LDFLAGS) -o joytest$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
22 $(OBJDIR)/joytest.$(OBJSUFF): joytest.$(SRCSUFF)
23 $(CC) -c $(CPPFLAGS) -o $@ joytest.$(SRCSUFF)
26 $(RESCOMP) $(RCINPUTSWITCH) joytest.rc $(RCOUTPUTSWITCH) joytest.c $(RESFLAGS)
28 $(OBJDIR)/joytest.$(OBJSUFF): joytest.c
29 $(CC) -c $(CPPFLAGS) -o $@ joytest.c
31 #$(OBJDIR)/joytest.o: joytest.rc
32 # $(RESCOMP) $(RCINPUTSWITCH) joytest.rc $(RCOUTPUTSWITCH) $(OBJDIR)/joytest.o $(RESFLAGS)
35 rm -f $(OBJECTS) joytest$(GUISUFFIX).exe core *.rsc *.res