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

  1. #=======================================================================
  2. #  Makefile for V Text 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. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  22.  
  23. ifeq ($(TOOLKIT),Motif)
  24. PROG=\
  25.     $(Bin)/vedm
  26. else
  27. PROG=\
  28.     $(Bin)/ved    
  29. endif
  30.  
  31. ifeq ($(Arch),os2)
  32. PROG    =     $(Bin)/ved.exe
  33. endif
  34.  
  35. EXOBJS=\
  36.     $(oDir)/vedapp.o \
  37.     $(oDir)/vedcnv.o \
  38.     $(oDir)/vseeci.o \
  39.     $(oDir)/vedcmdw.o
  40.  
  41. ifeq ($(Arch),gnuwin32)
  42. EXOBJS += $(oDir)/vedrc.o
  43. endif
  44.  
  45. ifeq ($(Arch),os2)
  46. EXOBJS += $(oDir)/vos2.res \
  47.       $(HOMEV)/srcos2/vos2.def 
  48. endif
  49.  
  50. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  51.  
  52. .PHONY: default all objs clean cleanobj cleanall
  53.  
  54. default: all
  55.  
  56. all: $(PROG)
  57.  
  58. clean:
  59.     -rm -f $(CLEANEXTS) $(EXOBJS)
  60.  
  61. cleanobj: clean
  62.     -rm -f $(EXOBJS)
  63.  
  64. cleanall: cleanobj
  65.     -rm -f $(PROG)
  66.  
  67. cleanbin:
  68.     -rm -f $(PROG)
  69.  
  70. objs:    $(EXOBJS)
  71.  
  72. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  73.  
  74. $(PROG):    $(EXOBJS)
  75.     $(LD) -o $@ $(EXOBJS) $(LDFLAGS)
  76.  
  77. $(oDir)/vedrc.o:    ved.rc ved.ico vwindow.ico
  78.     $(RES) ved.rc $(oDir)/vedrc.o
  79.  
  80. $(oDir)/vedcnv.o:    vedcnv.cpp v_defs.h vedcnv.h
  81.     $(CXX) -c $(CFLAGS) -o $@ $<
  82.  
  83. $(oDir)/vseeci.o:    vseeci.cpp v_defs.h vseeci.h
  84.     $(CXX) -c $(CFLAGS) -o $@ $<
  85.  
  86. $(oDir)/vedcmdw.o:    vedcmdw.cpp v_defs.h vedcmdw.h
  87.     $(CXX) -c $(CFLAGS) -o $@ $<
  88.  
  89. $(oDir)/vedapp.o:    vedapp.cpp v_defs.h \
  90.     vedapp.h vedcmdw.h
  91.     $(CXX) -c $(CFLAGS) -o $@ $<
  92.  
  93. # For os/2 only - compiles resource file
  94. $(oDir)/vos2.res:   $(HOMEV)/srcos2/vos2.rc $(HOMEV)/srcos2/vApp.ico $(HOMEV)/srcos2/collate.bmp
  95.     $(RES) $< $@
  96.