| 
            Last change
 on this file since 154 was             148, checked in by gyoung, 22 months ago           | 
        
        
          | 
             
Automate building of all def files. Some minor code and makefile cleanup 
 
           | 
        
        
          | 
            File size:
            711 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | # Makefile
 | 
|---|
| 2 | 
 | 
|---|
| 3 | include ../../../make.inc
 | 
|---|
| 4 | 
 | 
|---|
| 5 | # MM-progs specific makefile include
 | 
|---|
| 6 | include ../mmprog.inc
 | 
|---|
| 7 | 
 | 
|---|
| 8 | OBJECTS         =       $(LIBDIR)/message.obj \
 | 
|---|
| 9 |                         $(LIBDIR)/helper.obj \
 | 
|---|
| 10 |                         $(LIBDIR)/menu_funcs.obj \
 | 
|---|
| 11 |                         $(LIBDIR)/sys_funcs.obj
 | 
|---|
| 12 | OBJS2           =       customprocs.obj
 | 
|---|
| 13 | 
 | 
|---|
| 14 | all:    classvol.exe
 | 
|---|
| 15 | 
 | 
|---|
| 16 | classvol.exe:   classvol.c $(OBJECTS) $(OBJS2) makefile def.tpl
 | 
|---|
| 17 |         cmd /C $(TOOLDIR)\create_def.cmd classvolume.def
 | 
|---|
| 18 | #Use this command to link dynamicaly
 | 
|---|
| 19 |         $(CC) $(CPPFLAGS) -I$(INC) classvol.c $(OBJECTS) $(OBJS2) mmpm2.lib classvolume.def
 | 
|---|
| 20 |         rc classvolume.rc classvol.exe
 | 
|---|
| 21 | 
 | 
|---|
| 22 | 
 | 
|---|
| 23 |         
 | 
|---|
| 24 | clean:
 | 
|---|
| 25 |         -rm *.exe
 | 
|---|
| 26 |         -rm *.dll
 | 
|---|
| 27 |         -rm *.obj
 | 
|---|
| 28 |         -rm *.RES
 | 
|---|
| 29 |         -rm *.ini
 | 
|---|
| 30 |         -rm $(LIBDIR)/*.obj
 | 
|---|
| 31 |         -rm *.def
 | 
|---|
| 32 | 
 | 
|---|
| 33 | cleaner:
 | 
|---|
| 34 |         -rm *.*~
 | 
|---|
| 35 |         -rm *.flc
 | 
|---|
| 36 | 
 | 
|---|
| 37 | 
 | 
|---|
| 38 | distribution:
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.