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

  1. #===============================================================
  2. #  V test application Makefile - Version 6/25/1996
  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)/v1m
  27. else
  28. PROG=\
  29.     $(Bin)/v1    
  30. endif
  31.  
  32. ifeq ($(Arch),os2)
  33. PROG    =     $(Bin)/test.exe
  34. endif
  35.  
  36. EXOBJS=\
  37.     $(oDir)/testapp.o \
  38.     $(oDir)/vtcanvas.o \
  39.     $(oDir)/vtcmdwin.o \
  40.     $(oDir)/vtcw2.o \
  41.     $(oDir)/vttogdlg.o \
  42.     $(oDir)/vtdialog.o
  43.  
  44. ifeq ($(Arch),os2)
  45. EXOBJS += $(oDir)/vos2.res \
  46.       $(HOMEV)/srcos2/vos2.def 
  47. endif
  48.  
  49. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  50.  
  51. .PHONY: default all objs clean cleanobj cleanall
  52.  
  53. default: all
  54.  
  55. all: $(PROG)
  56.  
  57. relink:
  58.     -rm -f $(PROG)
  59.     make
  60.  
  61. clean:
  62.     -rm -f $(CLEANEXTS)
  63.     -rm -f $(EXOBJS)
  64.  
  65. cleanall: cleanobj
  66.     -rm -f $(PROG)
  67.  
  68. cleanexe:
  69.     -rm -f $(PROG)
  70.  
  71. objs:    $(EXOBJS)
  72.  
  73. rm:
  74.     -rm -f $(PROG)
  75. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  76.  
  77. $(PROG):    $(EXOBJS)
  78.     $(LD) -o $@ $(EXOBJS) $(LDFLAGS)
  79.  
  80. $(oDir)/vtcanvas.o:    vtcanvas.cpp vtcanvas.h vcanvas.h vtextcnv.h vcanvas.h
  81.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  82.  
  83. $(oDir)/vtdialog.o:    vtdialog.cpp vtdialog.h vdialog.h vcolor.h
  84.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  85.  
  86. $(oDir)/vttogdlg.o:    vttogdlg.cpp vttogdlg.h vdialog.h vcolor.h
  87.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  88.  
  89. $(oDir)/vtcmdwin.o:    vtcmdwin.cpp vtcmdwin.h vcmdwin.h bruce.vbm
  90.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  91.  
  92. $(oDir)/vtcw2.o:    vtcw2.cpp vtcw2.h vcmdwin.h
  93.     $(CXX) -c $(CFLAGS) -o $@ $<                     
  94.  
  95. $(oDir)/testapp.o:    testapp.cpp testapp.h v_defs.h vbaseitm.h \
  96.     vbasewin.h vapp.h  vwindow.h vpane.h vcmdwin.h \
  97.     vtcanvas.h vmenu.h vbtncmd.h vcbtncmd.h vlabelc.h \
  98.     vframec.h vchkboxc.h vradioc.h vsliderc.h vtextinc.h vlistc.h vnotice.h \
  99.     vprogrsc.h vfont.h vreply.h vtdialog.h vttogdlg.h vfilesel.h \
  100.     vtextcnv.h vcomboc.h vtextc.h
  101.     $(CXX) -c $(CFLAGS) -o $@ $<
  102.  
  103. # For os/2 only - compiles resource file
  104. $(oDir)/vos2.res:   $(HOMEV)/srcos2/vos2.rc $(HOMEV)/srcos2/vApp.ico $(HOMEV)/srcos2/collate.bmp
  105.     $(RES) $< $@
  106.