| 
            Last change
 on this file since 1036 was             758, checked in by Alex Taylor, 13 years ago           | 
        
        
          | 
             
Auto-port numbers now generated in base 10 instead of base 4. 
Implemented SplPdQuery/SplPdSet entrypoints, which are required for programs to create/configure ports. 
Added sample program which demonstrates this (smbport.c).  Added BLDLEVEL signature (uses MAKEDESC.CMD). 
 
           | 
        
        
          | 
            File size:
            1.3 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | BASE=SMB
 | 
|---|
| 2 | DEF_PORTNAME=SMB
 | 
|---|
| 3 | 
 | 
|---|
| 4 | ICCOPTS=-Gd-e- -Sp1 -Ss+ -Ms -C+ -Fo$@ -Dcdecl= -D_cdecl= -Rn -O -Wpro -Q+ -Yp+ -Ss+
 | 
|---|
| 5 | LINKOPTS=/NOFREEFORMAT /MAP /A:16 /DEBUG  /PM:PM
 | 
|---|
| 6 | 
 | 
|---|
| 7 | !IFDEF DEBUG
 | 
|---|
| 8 | ICCOPTS=-Gd-e- -Sp1 -Ss+ -Ms -C+ -Fo$@ -Dcdecl= -D_cdecl= -Rn -O -Wpro -Q+ -Yp+ -Ti
 | 
|---|
| 9 | LINKOPTS=$(LINKOPTS) /CO
 | 
|---|
| 10 | !ENDIF
 | 
|---|
| 11 | 
 | 
|---|
| 12 | $(BASE).PDR:                    $(BASE).DLL
 | 
|---|
| 13 |         copy $(BASE).DLL $(BASE).PDR
 | 
|---|
| 14 |         del $(BASE).DLL
 | 
|---|
| 15 | 
 | 
|---|
| 16 | $(BASE).DLL:                    $(BASE).OBJ \
 | 
|---|
| 17 |                                 $(BASE).RES
 | 
|---|
| 18 |         makedesc -D"Samba client port driver for SMB printing" -N"netlabs.org" -V"^#define=DRIVER_VERSION,smb.h" smb.def
 | 
|---|
| 19 |         ILINK $(LINKOPTS) @<<
 | 
|---|
| 20 | $(BASE)
 | 
|---|
| 21 | $(BASE).DLL
 | 
|---|
| 22 | $(BASE)
 | 
|---|
| 23 | OS2386
 | 
|---|
| 24 | $(BASE)
 | 
|---|
| 25 | <<
 | 
|---|
| 26 |         RC $(BASE).RES $(BASE).DLL
 | 
|---|
| 27 |         ea2 -e DEFAULT_PORT=$(DEF_PORTNAME) $(BASE).DLL
 | 
|---|
| 28 | 
 | 
|---|
| 29 | $(BASE).RES:                    $(BASE).RC \
 | 
|---|
| 30 |                                 $(BASE).H
 | 
|---|
| 31 |         RC -r $(BASE).RC $(BASE).RES
 | 
|---|
| 32 | 
 | 
|---|
| 33 | $(BASE).OBJ:                    $(BASE).C \
 | 
|---|
| 34 |                                 $(BASE).H
 | 
|---|
| 35 |         ICC $(ICCOPTS) $(BASE).C
 | 
|---|
| 36 | 
 | 
|---|
| 37 | clean:
 | 
|---|
| 38 |         if exist $(BASE).PDR del $(BASE).PDR
 | 
|---|
| 39 |         if exist $(BASE).DLL del $(BASE).DLL
 | 
|---|
| 40 |         if exist $(BASE).SYM del $(BASE).SYM
 | 
|---|
| 41 |         if exist $(BASE).MAP del $(BASE).MAP
 | 
|---|
| 42 |         if exist $(BASE).RES del $(BASE).RES
 | 
|---|
| 43 |         if exist $(BASE).OBJ del $(BASE).OBJ
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.