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

  1. #=======================================================================
  2. #  Makefile for V IDE
  3. #  Copyright (C) 1998  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. ifeq ($(TOOLKIT),Motif)
  24. PROG=\
  25.     $(Bin)/videm
  26. else
  27. ifeq ($(Arch),gnuwin32)
  28. PROG=\
  29.     $(Bin)/vide.exe
  30. else
  31. PROG=\
  32.     $(Bin)/vide    
  33. endif
  34. endif
  35.  
  36. ifeq ($(Arch),os2)
  37. PROG    =     $(Bin)/vide.exe
  38. endif
  39.  
  40. CFLAGS    += -DVIDE -I$(HOMEV)/texted -I$(HOMEV)/vide
  41.  
  42. EXOBJS=\
  43.     $(oDir)/videapp.o \
  44.     ./vedcnv.o \
  45.     $(oDir)/vseeci.o \
  46.     $(oDir)/videmake.o \
  47.     $(oDir)/vrundlg.o \
  48.     $(oDir)/videcmdw.o \
  49.     $(oDir)/mmaker.o\
  50.     $(oDir)/projdlg.o
  51.  
  52. ifeq ($(Arch),gnuwin32)
  53. EXOBJS += $(oDir)/viderc.o
  54. endif
  55.  
  56. ifeq ($(Arch),os2)
  57. EXOBJS += $(oDir)/vos2.res \
  58.       $(HOMEV)/srcos2/vos2.def 
  59. endif
  60.  
  61. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  62.  
  63. .PHONY: default all objs clean cleanobj cleanall
  64.  
  65. default: all
  66.  
  67. all: $(PROG)
  68.  
  69. clean:
  70.     -rm -f $(CLEANEXTS) $(EXOBJS) ./*.o
  71.  
  72. cleanobj: clean
  73.     -rm -f $(EXOBJS)
  74.  
  75. cleanall: cleanobj
  76.     -rm -f $(PROG)
  77.  
  78. cleanexe: cleanbin
  79.  
  80. cleanbin:
  81.     -rm -f $(PROG)
  82.  
  83. objs:    $(EXOBJS)
  84.  
  85. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  86.  
  87. $(PROG):    $(EXOBJS)
  88.     $(LD) -o $@ $(EXOBJS) $(LDFLAGS)
  89.  
  90. $(oDir)/viderc.o:    vide.rc vide.ico vwindow.ico
  91.     $(RES) vide.rc $(oDir)/viderc.o
  92.  
  93. # Vedcnv needs to be in . because of conflicts with standard vedcnv.o
  94. ./vedcnv.o:    ../texted/vedcnv.cpp v_defs.h ../texted/vedcnv.h
  95.     $(CXX) -c $(CFLAGS) -o $@ $<
  96.  
  97. $(oDir)/mmaker.o: mmaker.cpp videapp.h projdlg.h mmaker.h
  98.     $(CXX) -c $(CFLAGS) -o $@ $<
  99.  
  100. $(oDir)/projdlg.o: projdlg.cpp projdlg.h mmaker.h
  101.     $(CXX) -c $(CFLAGS) -o $@ $<
  102.  
  103. $(oDir)/vseeci.o:    ../texted/vseeci.cpp v_defs.h ../texted/vseeci.h
  104.     $(CXX) -c $(CFLAGS) -o $@ $<
  105.  
  106. $(oDir)/videmake.o:    videmake.cpp v_defs.h videmake.h
  107.     $(CXX) -c $(CFLAGS) -o $@ $<
  108.  
  109. $(oDir)/vrundlg.o:    vrundlg.cpp v_defs.h vrundlg.h
  110.     $(CXX) -c $(CFLAGS) -o $@ $<
  111.  
  112. $(oDir)/videcmdw.o:    videcmdw.cpp v_defs.h videcmdw.h
  113.     $(CXX) -c $(CFLAGS) -o $@ $<
  114.  
  115. $(oDir)/videapp.o:    videapp.cpp v_defs.h vapp.h \
  116.     videapp.h videcmdw.h
  117.     $(CXX) -c $(CFLAGS) -o $@ $<
  118.  
  119. # For os/2 only - compiles resource file
  120. $(oDir)/vos2.res:   $(HOMEV)/srcos2/vos2.rc $(HOMEV)/srcos2/vApp.ico $(HOMEV)/srcos2/collate.bmp
  121.     $(RES) $< $@
  122.