4 # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
6 # Copyright (C) 2000-2009 by Olaf `Olsen' Barthel <obarthel -at- gmx -dot- net>
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 # NOTE: In order to build smbfs you will need to obtain the AmiTCP
24 # SDK, or the equivalent for Miami/Miami Deluxe or Roadshow.
25 # From that SDK, copy the "netinclude" directory to the same
26 # directory you find this "smakefile" in. Next, modify this
27 # "smakefile", removing the "@ctags >tagfiles/$* $<" and
28 # "@type tagfiles/\#? >t:tags", "@copy t:tags """ and
29 # "@delete >nil: t:tags" lines if you don't have the "ctags"
35 @ctags >tagfiles/$* $<
40 ###############################################################################
44 ###############################################################################
46 #############################################################################
50 #############################################################################
54 ###############################################################################
56 OPTIMIZE = optimize opttime optinline optinlocal optschedule
60 DEBUG = symbolflush noopt define=DEBUG define=DUMP_SMB
62 ###############################################################################
65 idlen=64 comnest streq strmerge nostkchk \
66 $(OPTIMIZE) cpu=$(CPU) debug=$(DEBUG) code=far data=faronly \
67 params=register idir=netinclude idir=include \
68 ignore=306 gst=system_headers.gst
73 ###############################################################################
76 main.o proc.o smb_abstraction.o sock.o crypt.o quad_math.o dump_smb.o \
77 utf-8-iso-8859-1-conversion.o swap_stack_and_call.o
79 ###############################################################################
81 LIBS = lib:scnb.lib lib:amiga.lib lib:debug.lib
83 ###############################################################################
85 all: tagfiles system_headers.gst $(PROJECT)
90 $(PROJECT): $(OBJS) system_headers.gst Assert.o
91 slink $(OBJS) to $@.debug lib $(LIBS) Assert.o $(LFLAGS) \
92 map $(PROJECT).map,fhx fwidth 32 pwidth 32 swidth 32
93 slink $@.debug to $@ noicons nodebug
94 @type tagfiles/\#? >t:tags
98 system_headers.gst: system_headers.h system_headers.c
100 sc $(CFLAGS) nodebug noobjname nogst makegst=$@ system_headers.c
102 ###############################################################################
105 crypt.o : crypt.c system_headers.h assert.h smbfs.h
106 main.o : main.c system_headers.h assert.h smbfs.h smb_abstraction.h smbfs_rev.h dump_smb.h utf-8-iso-8859-1-conversion.h
107 proc.o : proc.c system_headers.h assert.h smbfs.h quad_math.h
108 quad_math.o : quad_math.c quad_math.h
109 smb_abstraction.o : smb_abstraction.c system_headers.h assert.h smbfs.h smb_abstraction.h
110 sock.o : sock.c system_headers.h assert.h smbfs.h smb_abstraction.h dump_smb.h
111 dump_smb.o : dump_smb.c system_headers.h assert.h smbfs.h dump_smb.h quad_math.h
112 utf-8-iso-8859-1-conversion.o : utf-8-iso-8859-1-conversion.c utf-8-iso-8859-1-conversion.h
113 swap_stack_and_call.o : swap_stack_and_call.asm
115 ###############################################################################
118 -delete \#?.o $(PROJECT)(%|.debug)
121 -delete system_headers.gst tags tagfiles \#?.map all
123 ###############################################################################
126 mkid -v \#?.(c|h|a|asm|i) include/smb/\#?.h
132 bumprev $(VERSION) $(PROJECT)
134 ###############################################################################
137 cvs -q tag V$(VERSION)_`type $(PROJECT)_rev.rev`