2 # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
4 # * Copyright (C) 2000-2016 by Olaf `Olsen' Barthel <obarthel -at- gmx -dot- net>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 @$(CC) -c $(CFLAGS) -o $*.o $<
25 ###########################################################################
29 ###########################################################################
33 ###########################################################################
36 -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
37 -Wundef -Wbad-function-cast -Wmissing-declarations
43 ###########################################################################
45 CFLAGS = -mcrt=clib2 -D__NO_NET_API $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(OPTIONS) \
46 -I. -I/V/include -I/usr/local/amiga/ppc-amigaos/sys-include -Iinclude -Inetinclude
47 LFLAGS = -nostartfiles -nostdlib -L.
49 ###########################################################################
51 OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o quad_math.o dump_smb.o utf-8-iso-8859-1-conversion.o
53 ###########################################################################
57 ###########################################################################
63 @$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
64 ppc-amigaos-strip -R.comment -o $@ $@.debug
66 ###########################################################################
69 crypt.o : crypt.c system_headers.h assert.h smbfs.h
70 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
71 proc.o : proc.c system_headers.h assert.h smbfs.h quad_math.h
72 quad_math.o : quad_math.c quad_math.h
73 smb_abstraction.o : smb_abstraction.c system_headers.h assert.h smbfs.h smb_abstraction.h
74 sock.o : sock.c system_headers.h assert.h smbfs.h smb_abstraction.h dump_smb.h
75 dump_smb.o : dump_smb.c system_headers.h assert.h smbfs.h dump_smb.h quad_math.h
76 utf-8-iso-8859-1-conversion.o : utf-8-iso-8859-1-conversion.c utf-8-iso-8859-1-conversion.h