2 # $Id: GNUmakefile.os4,v 1.6 2009/07/22 07:52:59 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.
27 @$(CC) -c $(CFLAGS) -o $*.o $<
29 ###########################################################################
33 ###########################################################################
37 ###########################################################################
40 -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
41 -Wundef -Wbad-function-cast -Wmissing-declarations
47 ###########################################################################
49 CFLAGS = -mcrt=clib2 -D__NO_NET_API $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(OPTIONS) \
50 -I. -I/V/include -I/usr/local/amiga/ppc-amigaos/sys-include -Iinclude -Inetinclude
51 LFLAGS = -nostartfiles -nostdlib -L.
53 ###########################################################################
55 OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o quad_math.o
57 ###########################################################################
61 ###########################################################################
67 @$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
68 ppc-amigaos-strip -R.comment -o $@ $@.debug
70 ###########################################################################
72 crypt.o : crypt.c system_headers.h assert.h smbfs.h
73 main.o : main.c system_headers.h assert.h smbfs.h smb_abstraction.h smbfs_rev.h
74 proc.o : proc.c system_headers.h assert.h smbfs.h quad_math.h
75 quad_math.o : quad_math.c quad_math.h
76 smb_abstraction.o : smb_abstraction.c system_headers.h assert.h smbfs.h smb_abstraction.h
77 sock.o : sock.c system_headers.h assert.h smbfs.h smb_abstraction.h