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