| 
            Last change
 on this file was             148, checked in by gyoung, 22 months ago           | 
        
        
          | 
             
Automate building of all def files. Some minor code and makefile cleanup 
 
           | 
        
        
          | 
            File size:
            1.4 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | # Makefile for CWMM resource dll
 | 
|---|
| 2 | 
 | 
|---|
| 3 | include ../../../make.inc
 | 
|---|
| 4 | include ../../../build.inc
 | 
|---|
| 5 | 
 | 
|---|
| 6 | LANGUAGE        =       _fr
 | 
|---|
| 7 | 
 | 
|---|
| 8 | CC           = icc
 | 
|---|
| 9 | CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
 | 
|---|
| 10 | INC     =       ../../inc
 | 
|---|
| 11 | DEFS         =
 | 
|---|
| 12 | #TOOLDIR =      $(BUILD_ROOT)\classes\mm-progs
 | 
|---|
| 13 | OBJDIR  =       ../dll
 | 
|---|
| 14 | 
 | 
|---|
| 15 | OBJECTS =       $(INC)\mmres.h mmres$(LANGUAGE).rc \
 | 
|---|
| 16 |                         audioplayer$(LANGUAGE).dlg audioplayer$(LANGUAGE).rc \
 | 
|---|
| 17 |                         audioconv$(LANGUAGE).dlg audioconv$(LANGUAGE).rc \
 | 
|---|
| 18 |                         volume$(LANGUAGE).rc volume$(LANGUAGE).dlg \
 | 
|---|
| 19 |                         imageconv$(LANGUAGE).dlg imageconv$(LANGUAGE).rc \
 | 
|---|
| 20 |                         cwaudio$(LANGUAGE).rc cwaudio$(LANGUAGE).dlg \
 | 
|---|
| 21 |                         cwimage$(LANGUAGE).rc cwvideo$(LANGUAGE).rc \
 | 
|---|
| 22 |                         mmfind$(LANGUAGE).dlg mmfind$(LANGUAGE).rc
 | 
|---|
| 23 | 
 | 
|---|
| 24 | 
 | 
|---|
| 25 | all:    $(OBJDIR)/mmres$(LANGUAGE).dll
 | 
|---|
| 26 | 
 | 
|---|
| 27 | $(OBJDIR)/mmres$(LANGUAGE).dll: mmres$(LANGUAGE).c $(OBJECTS) 
 | 
|---|
| 28 |                 cmd /C $(TOOLDIR)/create_def.cmd mmres$(LANGUAGE).def
 | 
|---|
| 29 |                 icc $(CPPFLAGS) -I$(INC) /Fe$(OBJDIR)\$@ $< mmres$(LANGUAGE).def
 | 
|---|
| 30 |                 rc -D $(ECS) -i $(INC) mmres$(LANGUAGE).rc $(OBJDIR)/mmres$(LANGUAGE).dll
 | 
|---|
| 31 |                 rc -r -D $(ECS) -i $(INC) mmres$(LANGUAGE).rc $(OBJDIR)/mmres$(LANGUAGE).res
 | 
|---|
| 32 | #               rc  mmres$(LANGUAGE).res $(OBJDIR)/mmres$(LANGUAGE).dll
 | 
|---|
| 33 | 
 | 
|---|
| 34 | #(OBJDIR)/mmres$(LANGUAGE).res: mmres$(LANGUAGE).rc $(OBJECTS)
 | 
|---|
| 35 | #               rc -D $(ECS) -i $(INC) -r mmres$(LANGUAGE).rc
 | 
|---|
| 36 | 
 | 
|---|
| 37 | 
 | 
|---|
| 38 | restest:        
 | 
|---|
| 39 |         echo  $(deftext)> test.def
 | 
|---|
| 40 | 
 | 
|---|
| 41 |                                 
 | 
|---|
| 42 | clean:
 | 
|---|
| 43 |         -rm $(OBJDIR)/*.obj
 | 
|---|
| 44 |         -rm $(OBJDIR)/*.dll
 | 
|---|
| 45 |         -rm $(OBJDIR)/*.res
 | 
|---|
| 46 |         -rm *.*~
 | 
|---|
| 47 |         -rm *.flc
 | 
|---|
| 48 |         -rm *.RES
 | 
|---|
| 49 |         -rm *.obj
 | 
|---|
| 50 |         -rm *.def
 | 
|---|
| 51 | 
 | 
|---|
| 52 | 
 | 
|---|
| 53 |         
 | 
|---|
| 54 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.