| 
            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:
            666 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | # Makefile
 | 
|---|
| 2 | 
 | 
|---|
| 3 | include ../../../make.inc
 | 
|---|
| 4 | include ../mmprog.inc
 | 
|---|
| 5 | 
 | 
|---|
| 6 | OBJECTS =       $(LIBDIR)/message.obj \
 | 
|---|
| 7 |                 $(LIBDIR)/helper.obj \
 | 
|---|
| 8 |                 $(LIBDIR)/menu_funcs.obj \
 | 
|---|
| 9 |                 $(LIBDIR)/sys_funcs.obj
 | 
|---|
| 10 | OBJS2           =        customprocs.obj playaudio.obj display.obj
 | 
|---|
| 11 | 
 | 
|---|
| 12 | 
 | 
|---|
| 13 | all:    mmplayer.exe
 | 
|---|
| 14 | 
 | 
|---|
| 15 | 
 | 
|---|
| 16 | mmplayer.exe:   mmplayer.c $(OBJECTS) $(OBJS2) makefile def.tpl
 | 
|---|
| 17 |         cmd /C $(TOOLDIR)\create_def.cmd mmplayer.def
 | 
|---|
| 18 | #Use this command to link dynamicaly
 | 
|---|
| 19 |         $(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) mmpm2.lib mmplayer.def
 | 
|---|
| 20 |         rc mmplayer.rc mmplayer.exe
 | 
|---|
| 21 | 
 | 
|---|
| 22 | 
 | 
|---|
| 23 | clean:
 | 
|---|
| 24 |         -rm *.exe
 | 
|---|
| 25 |         -rm *.dll
 | 
|---|
| 26 |         -rm *.obj
 | 
|---|
| 27 |         -rm *.RES
 | 
|---|
| 28 |         -rm *.ini
 | 
|---|
| 29 |         -rm *.def
 | 
|---|
| 30 | 
 | 
|---|
| 31 | cleaner:
 | 
|---|
| 32 |         -rm *.*~
 | 
|---|
| 33 |         -rm *.flc
 | 
|---|
| 34 | 
 | 
|---|
| 35 | distribution:
 | 
|---|
| 36 |         
 | 
|---|
| 37 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.