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

  1. #=======================================================================
  2. #  Makefile for V Spinbox (assumes Gnu Make or equivalent)
  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. PROG=$(Bin)/spinbox
  24. ifeq ($(Arch),os2)
  25. PROG    =     $(Bin)/spinbox.exe
  26. endif
  27.  
  28. CFLAGS    += -I$(HOMEV)/vopengl/bounce
  29.  
  30. EXOBJS=\
  31.     $(oDir)/sboxapp.o \
  32.     $(oDir)/sboxcmdw.o \
  33.     $(oDir)/sboxcnv.o 
  34.  
  35. ifeq ($(Arch),os2)
  36. EXOBJS += $(oDir)/vos2.res \
  37.       $(HOMEV)/srcos2/vos2.def 
  38. endif
  39.  
  40.  
  41. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  42.  
  43. .PHONY: default all objs clean cleanobj cleanall
  44.  
  45. default: all
  46.  
  47. all: $(PROG)
  48.  
  49. clean:
  50.     -rm -f $(CLEANEXTS) $(EXOBJS) ./*.o
  51.  
  52. cleanobj: clean
  53.     -rm -f $(EXOBJS)
  54.  
  55. cleanall: cleanobj
  56.     -rm -f $(PROG)
  57.  
  58. cleanexe: cleanbin
  59.  
  60. cleanbin:
  61.     -rm -f $(PROG)
  62.  
  63. objs:    $(EXOBJS)
  64.  
  65. #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  66.  
  67. $(PROG):    $(EXOBJS)
  68.     $(LD) -o $@ $(EXOBJS) $(LDFLAGS)
  69.  
  70. $(oDir)/sboxapp.o:    sboxapp.cpp sboxapp.h
  71.     $(CXX) -c $(CFLAGS) -o $@ $<
  72.  
  73. $(oDir)/sboxcmdw.o:    sboxcmdw.cpp sboxcmdw.h vnotice.h vkeys.h
  74.     $(CXX) -c $(CFLAGS) -o $@ $<
  75.  
  76. $(oDir)/sboxcnv.o:    sboxcnv.cpp sboxcnv.h
  77.     $(CXX) -c $(CFLAGS) -o $@ $<
  78.  
  79. # For os/2 only - compiles resource file
  80. $(oDir)/vos2.res:   $(HOMEV)/srcos2/vos2.rc $(HOMEV)/srcos2/vApp.ico $(HOMEV)/srcos2/collate.bmp
  81.     $(RES) $< $@
  82.  
  83.  
  84.