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

  1. #=======================================================================
  2. #  Makefile for V Icon Editor 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. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  22.  
  23. ifeq ($(TOOLKIT),Motif)
  24. PROG=\
  25.     $(Bin)/viconedm
  26. else
  27. PROG=\
  28.     $(Bin)/viconed    
  29. endif
  30.  
  31. ifeq ($(Arch),os2)
  32. PROG    =     $(Bin)/viconed.exe
  33. endif
  34.  
  35. EXOBJS=\
  36.     $(oDir)/viedapp.o \
  37.     $(oDir)/viedcnv.o \
  38.     $(oDir)/viedcmdw.o \
  39.     $(oDir)/coldlg.o \
  40.     $(oDir)/brshdlg.o \
  41.     $(oDir)/imageio.o
  42.  
  43. ifeq ($(Arch),gnuwin32)
  44. EXOBJS += $(oDir)/viconrc.o
  45. endif
  46.  
  47. ifeq ($(Arch),os2)
  48. EXOBJS += $(oDir)/vos2.res \
  49.       $(HOMEV)/srcos2/vos2.def 
  50. endif
  51.  
  52. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  53.  
  54. .PHONY: default all objs clean cleanobj cleanall
  55.  
  56. default: all
  57.  
  58. all: $(PROG)
  59.  
  60. clean:
  61.     -rm -f $(CLEANEXTS)
  62.     -rm -f $(EXOBJS)
  63.  
  64. cleanall: clean
  65.     -rm -f $(PROG)
  66.  
  67. objs:    $(EXOBJS)
  68.  
  69. tar: clean
  70.     tar cvfz iconed.tgz Makefile *.cpp *.h *.vbm
  71.  
  72. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  73.  
  74. $(PROG):    $(EXOBJS)
  75.     $(LD) -o $@ $(EXOBJS) $(LDFLAGS)
  76.  
  77. $(oDir)/viconrc.o:    viconed.rc viconed.ico vwindow.ico
  78.     $(RES) viconed.rc $(oDir)/viconrc.o
  79.  
  80. $(oDir)/imageio.o:    imageio.cpp imageio.h
  81.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  82.  
  83. $(oDir)/viedcnv.o:    viedcnv.cpp v_defs.h viedcnv.h viedcmdw.h \
  84.     vprinter.h brshdlg.h coldlg.h paldecla.h
  85.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  86.  
  87. $(oDir)/viedcmdw.o:    viedcmdw.cpp v_defs.h viedcmdw.h viedcnv.h \
  88.     coldlg.h brshdlg.h
  89.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  90.  
  91. $(oDir)/viedapp.o:    viedapp.cpp v_defs.h viedapp.h viedcmdw.h viedcnv.h \
  92.     coldlg.h brshdlg.h
  93.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  94.  
  95. $(oDir)/coldlg.o:    coldlg.cpp v_defs.h coldlg.h viedcmdw.h viedcnv.h palclrs.h
  96.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  97.  
  98. $(oDir)/brshdlg.o:    brshdlg.cpp v_defs.h brshdlg.h viedcmdw.h viedcnv.h
  99.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  100.  
  101. # For os/2 only - compiles resource file
  102. $(oDir)/vos2.res:   $(HOMEV)/srcos2/vos2.rc $(HOMEV)/srcos2/vApp.ico $(HOMEV)/srcos2/collate.bmp
  103.     $(RES) $< $@
  104.