home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / samples / thread / makefile.twn < prev    next >
Makefile  |  2000-03-14  |  963b  |  36 lines

  1. # Purpose: makefile for thread example (TWIN)
  2. # Created: 2000-03-15
  3.  
  4. WXDIR = ../..
  5.  
  6. # All common UNIX compiler flags and options are now in
  7. # this central makefile.
  8. include $(WXDIR)/src/maketwin.env
  9.  
  10. OBJECTS = $(OBJDIR)/thread.$(OBJSUFF) $(OBJDIR)/thread.$(OBJSUFF)
  11.  
  12. all:    $(OBJDIR) thread$(GUISUFFIX)$(EXESUFF)
  13.  
  14. wx:
  15.  
  16. $(OBJDIR):
  17.     mkdir $(OBJDIR)
  18.  
  19. thread$(GUISUFFIX)$(EXESUFF):    $(OBJECTS) $(WXLIB)
  20.     $(CC) $(LDFLAGS) -o thread$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
  21.  
  22. $(OBJDIR)/thread.$(OBJSUFF):    thread.$(SRCSUFF)
  23.     $(CC) -c $(CPPFLAGS) -o $@ thread.$(SRCSUFF)
  24.  
  25. thread.c:  thread.rc
  26.     $(RESCOMP) $(RCINPUTSWITCH) thread.rc $(RCOUTPUTSWITCH) thread.c $(RESFLAGS)
  27.  
  28. $(OBJDIR)/thread.$(OBJSUFF):    thread.c
  29.     $(CC) -c $(CPPFLAGS) -o $@ thread.c
  30.  
  31. #$(OBJDIR)/thread.o:  thread.rc
  32. #    $(RESCOMP) $(RCINPUTSWITCH) thread.rc $(RCOUTPUTSWITCH) $(OBJDIR)/thread.o $(RESFLAGS)
  33.  
  34. clean:
  35.     rm -f $(OBJECTS) thread$(GUISUFFIX).exe core *.rsc *.res
  36.