home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / drawex / Makefile < prev    next >
Makefile  |  1998-12-20  |  2KB  |  73 lines

  1. #=======================================================================
  2. #  Makefile for example V draw program
  3. #  Copyright (C) 1995  Bruce E. Wampler
  4. #
  5. #  This program is part of the V C++ GUI Framework example programs.
  6. #
  7. #  This program is free software; you can redistribute it and/or modify
  8. #  it under the terms of the GNU General Public License as published by
  9. #  the Free Software Foundation; either version 2 of the License, or
  10. #  (at your option) any later version.
  11. #
  12. #  This program is distributed in the hope that it will be useful,
  13. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #  GNU General Public License for more details.
  16. #=======================================================================
  17.  
  18. CONFIG=../Config.mk
  19. include $(CONFIG)
  20.  
  21. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  22.  
  23. PROG=\
  24.     $(Bin)/vdrawex
  25. ifeq ($(Arch),os2)
  26. PROG    =     $(Bin)/vdrawex.exe
  27. endif
  28.  
  29. EXOBJS=\
  30.     $(oDir)/drawapp.o \
  31.     $(oDir)/drawcnv.o \
  32.     $(oDir)/drawcmdw.o
  33.  
  34. ifeq ($(Arch),os2)
  35. EXOBJS += $(oDir)/vos2.res \
  36.       $(HOMEV)/srcos2/vos2.def 
  37. endif
  38.  
  39. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  40.  
  41. .PHONY: default all objs clean cleanobj cleanall
  42.  
  43. default: all
  44.  
  45. all:    $(PROG)
  46.  
  47. clean:
  48.     -rm -f $(CLEANEXTS)
  49.     -rm -f $(EXOBJS)
  50.  
  51. cleanall: clean
  52.     -rm -f $(PROG)
  53.  
  54. objs:    $(EXOBJS)
  55.  
  56. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  57.  
  58. $(PROG):    $(EXOBJS)
  59.     $(LD) -o $@ $(EXOBJS) $(LDFLAGS)
  60.  
  61. $(oDir)/drawcnv.o:    drawcnv.cpp v_defs.h drawcnv.h
  62.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  63.  
  64. $(oDir)/drawcmdw.o:    drawcmdw.cpp v_defs.h drawcmdw.h
  65.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  66.  
  67. $(oDir)/drawapp.o:    drawapp.cpp v_defs.h drawapp.h drawcmdw.h drawcnv.h
  68.     $(CXX) -c $(CFLAGS) -o $@ $<
  69.  
  70. # For os/2 only - compiles resource file
  71. $(oDir)/vos2.res:   $(HOMEV)/srcos2/vos2.rc $(HOMEV)/srcos2/vApp.ico $(HOMEV)/srcos2/collate.bmp
  72.     $(RES) $< $@
  73.