4 # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
6 # Copyright (C) 2000-2016 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.
25 @gcc -c $(CFLAGS) -o $*.o $<
27 ###############################################################################
31 ###############################################################################
34 -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
35 -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion
38 OPTIONS = -DNDEBUG -fno-builtin -Inetinclude -Iinclude
39 OPTIMIZE = -O2 -fomit-frame-pointer
42 ###############################################################################
44 CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) -Iinclude -I.
45 LFLAGS = -nostartfiles -nostdlib -L.
47 ###############################################################################
49 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
51 ###############################################################################
53 LIBS = -lc -ldebug -lamiga
55 ###############################################################################
60 gcc -o $@.debug $(OBJS) $(CFLAGS) $(LFLAGS) $(LIBS)
61 strip --strip-all -o $@ $@.debug
64 ###############################################################################
67 crypt.o : crypt.c system_headers.h assert.h smbfs.h
68 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
69 proc.o : proc.c system_headers.h assert.h smbfs.h quad_math.h
70 quad_math.o : quad_math.c quad_math.h
71 smb_abstraction.o : smb_abstraction.c system_headers.h assert.h smbfs.h smb_abstraction.h
72 sock.o : sock.c system_headers.h assert.h smbfs.h smb_abstraction.h dump_smb.h
73 dump_smb.o : dump_smb.c system_headers.h assert.h smbfs.h dump_smb.h quad_math.h
74 utf-8-iso-8859-1-conversion.o : utf-8-iso-8859-1-conversion.c utf-8-iso-8859-1-conversion.h
76 ###############################################################################
79 -delete #?.o $(PROJECT)(%|.debug)