makefile.bc
上传用户:cnxinhai
上传日期:2013-08-06
资源大小:265k
文件大小:8k
源码类别:

DVD

开发平台:

Visual C++

  1. # Makefile for compiling/building FreeBurn.
  2. # For use with Borland C++ Builder 3, or (Borland C++ 5.5) or later
  3. #
  4. # run "make -f makefile.bc all" to create the application
  5. #     "make -f makefile.bc cleanup" to clean up files from
  6. #          building the application, but not the executable
  7. #     "make -f makefile.bc clean" to delete everything made
  8. #
  9. # Copyright (C) 2001, 2002 Adam Schlag
  10. # FreeBurn Software License
  11. # (based on the Apache Software License)
  12. # Version 1.1
  13. # Copyright (c) 2001, 2002 The FreeBurn Project. All rights reserved.
  14. # Redistribution and use in source and binary forms, with or without 
  15. # modification, are permitted provided that the following conditions are met:
  16. # 1. Redistributions of source code must retain the above copyright 
  17. # notice, this list of conditions and the following disclaimer.
  18. # 2. Redistributions in binary form must reproduce the above copyright 
  19. # notice, this list of conditions and the following disclaimer in the 
  20. # documentation and/or other materials provided with the distribution.
  21. # 3. The end-user documentation included with the redistribution, if any, must 
  22. # include the following acknowledgment:
  23. #  "This product includes software developed by the FreeBurn 
  24. #     Project (http://freeburn.sourceforge.net/)."
  25. # Alternately, this acknowledgment may appear in the software itself, 
  26. # if and wherever such third-party acknowledgments normally appear.
  27. # 4. The names "FreeBurn" and "FreeBurn Project" must not be 
  28. # used to endorse or promote products derived from this software 
  29. # without prior written permission. For written permission, please 
  30. # contact aschlag@users.sourceforge.net.
  31. # 5. Products derived from this software may not be called "FreeBurn", 
  32. # nor may "FreeBurn" appear in their name, without prior written 
  33. # permission of the FreeBurn Project.
  34. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 
  35. # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
  36. # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
  37. # DISCLAIMED. IN NO EVENT SHALL THE FREEBURN PROJECT OR ITS 
  38. # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
  39. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
  40. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 
  41. # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
  42. # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
  43. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
  44. # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
  45. # SUCH DAMAGE.
  46. # This software consists of voluntary contributions made by many 
  47. # individuals on behalf of the FreeBurn Project. For more 
  48. # information on the FreeBurn Project and FreeBurn, please see 
  49. # <http://freeburn.sourceforge.net/>.
  50. # This software is distributed with software that is released under the GNU 
  51. # General Public License (GPL).  You can find the terms of this license in the
  52. # file GPL.txt distributed in this package.  You can find information on the
  53. # software distributed with this package in the file PROGRAMS.txt.
  54. # basic options
  55. RM         = del
  56. FOXDIR     = C:WINNTProfilesschlagaPersonalfox-borland
  57. # Compiler Options
  58. CXX        = bcc32
  59. CXXFLAGS   = -5 -O2
  60. LIBPNGINC  = C:WINNTProfilesschlagaPersonalpngzlibinclude
  61. INCDIRS    = -I$(FOXDIR)include -I$(LIBPNGINC)
  62. DEFINES    = -DNDEBUG -DFOX_BIGENDIAN=0 -DWIN32 -D_WINDOWS -D__MT__ -DHAVE_PNG_H
  63. # Linker Options
  64. LD        = ilink32
  65. LDFLAGS    = -aa -c
  66. STDOBJS    = c0x32.obj
  67. STDLIBS    = import32.lib cw32mt.lib
  68. ZLIBPATH   = C:WINNTProfilesschlagaPersonalpngzlibborland
  69. ZLIBNAME   = zlib.lib
  70. ZLIB       = $(ZLIBPATH)$(ZLIBNAME)
  71. LIBPNGPATH = C:WINNTProfilesschlagaPersonalpngzlibborland
  72. LIBPNGNAME = libpng.lib
  73. LIBPNG     = $(LIBPNGPATH)$(LIBPNGNAME)
  74. FOXLIB     = $(FOXDIR)srcfox.lib
  75. LIBS       = $(ZLIB) $(LIBPNG) $(FOXLIB) $(STDLIBS)
  76. # Resource Options
  77. RCC        = brcc32
  78. RESFILE    = Freeburn.rc
  79. RESOURCE   = Freeburn.res
  80. # Reswrap/Icon Options
  81. RESWRAP    = $(FOXDIR)utilsreswrap
  82. # Targets
  83. PROGRAM    = FreeBurn.exe
  84. # Objects to build
  85. OBJECTS    = 
  86.         FreeBurn.obj                     
  87.         FreeburnHelper.obj               
  88.         FreeburnText.obj                 
  89.         FreeburnIcons.obj                
  90.         FreeburnAbout.obj                
  91.         FreeburnAboutText.obj            
  92.         FreeburnPreferences.obj          
  93.         FreeburnPreferencesText.obj      
  94.         FreeburnBurnDiscDialog.obj       
  95.         FreeburnBurnDiscDialogText.obj   
  96.         FreeburnDiscImageDialog.obj      
  97.         FreeburnDiscImageDialogText.obj  
  98.         FreeburnCommandDialog.obj        
  99.         FreeburnCommandDialogText.obj    
  100.         FreeburnNewDiscDialog.obj        
  101.         FreeburnNewDiscDialogText.obj    
  102.         FreeburnGlobalTextDialog.obj     
  103.         FreeburnGlobalTextDialogText.obj 
  104.         FreeburnTrackDialog.obj          
  105.         FreeburnTrackDialogText.obj      
  106.         FreeburnTrackTextDialog.obj      
  107.         FreeburnTrackTextDialogText.obj  
  108.         FreeburnHelpText.obj             
  109.         FreeburnDisc.obj                 
  110.         FreeburnTrack.obj                
  111.         HelpWindow.obj                   
  112.         fbspinner.obj                    
  113.         WinProcess.obj                   
  114.         BaseThread.obj
  115. # Images to wrap with reswrap
  116. IMAGES     = 
  117.         fbicon_small_png.png         
  118.         fbicon_big_png.png           
  119.         g_new_png.png                
  120.         g_open_png.png               
  121.         g_save_png.png               
  122.         g_close_png.png              
  123.         g_burncd_png.png             
  124.         g_cdimage_png.png            
  125.         g_preferences_png.png        
  126.         g_help_png.png               
  127.         g_exit_png.png               
  128.         g_find_png.png               
  129.         g_systemset_large_png.png    
  130.         g_theme_preview_png.png      
  131.         k_new_png.png                
  132.         k_open_png.png               
  133.         k_save_png.png               
  134.         k_close_png.png              
  135.         k_burncd_png.png             
  136.         k_cdimage_png.png            
  137.         k_preferences_png.png        
  138.         k_help_png.png               
  139.         k_exit_png.png               
  140.         k_find_png.png               
  141.         k_systemset_large_png.png    
  142.         k_theme_preview_png.png      
  143.         w_new_png.png                
  144.         w_open_png.png               
  145.         w_save_png.png               
  146.         w_close_png.png              
  147.         w_burncd_png.png             
  148.         w_cdimage_png.png            
  149.         w_preferences_png.png        
  150.         w_help_png.png               
  151.         w_exit_png.png               
  152.         w_find_png.png               
  153.         w_systemset_large_png.png    
  154.         w_theme_preview_png.png      
  155.         xp_new_png.png               
  156.         xp_open_png.png              
  157.         xp_save_png.png              
  158.         xp_close_png.png             
  159.         xp_burncd_png.png            
  160.         xp_cdimage_png.png           
  161.         xp_exit_png.png              
  162.         xp_help_png.png              
  163.         xp_preferences_png.png       
  164.         xp_find_png.png              
  165.         xp_systemset_large_png.png   
  166.         xp_theme_preview_png.png     
  167.         preferences_programs_png.png 
  168.         preferences_theme_png.png    
  169.         freeburn_fullsize_png.png  
  170. # make rules
  171. .cpp.obj:
  172. $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp
  173. .rc.res:
  174.     $(RCC) $(RESFILE)
  175. all: $(PROGRAM)
  176.         
  177. FreeBurn.exe: $(RESOURCE) FreeburnIcons.h FreeburnIcons.cpp $(OBJECTS)
  178. $(LD) $(LDFLAGS) $(STDOBJS) $(OBJECTS), $(PROGRAM), ,
  179.         $(LIBS), , $(RESOURCE)
  180.        
  181. FreeburnIcons.h: $(IMAGES)
  182.     $(RESWRAP) -i -o FreeburnIcons.h $**
  183. FreeburnIcons.cpp: $(IMAGES)
  184.     $(RESWRAP) -e -o FreeburnIcons.cpp $**
  185. cleanup:
  186. $(RM) *.obj *.tds *.il? *.map *.res FreeburnIcons.*
  187. clean:
  188.     $(RM) *.obj FreeBurn.exe *.tds *.il? *.map *.res FreeburnIcons.*