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

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