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

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