2 # $Id: GNUmakefile.68k,v 1.3 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.
27 @gcc -c $(CFLAGS) -o $*.o $<
29 ###############################################################################
33 ###############################################################################
36 -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
37 -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion
40 OPTIONS = -DNDEBUG -fno-builtin -Inetinclude -Iinclude
41 OPTIMIZE = -O2 -fomit-frame-pointer
44 ###############################################################################
46 CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) -Iinclude -I.
47 LFLAGS = -nostartfiles -nostdlib -L.
49 ###############################################################################
51 OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o quad_math.o
53 ###############################################################################
55 LIBS = -lc -ldebug -lamiga
57 ###############################################################################
62 gcc -o $@.debug $(OBJS) $(CFLAGS) $(LFLAGS) $(LIBS)
63 strip --strip-all -o $@ $@.debug
66 ###############################################################################
68 crypt.o : crypt.c system_headers.h assert.h smbfs.h
69 main.o : main.c system_headers.h assert.h smbfs.h smb_abstraction.h smbfs_rev.h
70 proc.o : proc.c system_headers.h assert.h smbfs.h quad_math.h
71 quad_math.o : quad_math.c quad_math.h
72 smb_abstraction.o : smb_abstraction.c system_headers.h assert.h smbfs.h smb_abstraction.h
73 sock.o : sock.c system_headers.h assert.h smbfs.h smb_abstraction.h
75 ###############################################################################
78 -delete #?.o $(PROJECT)(%|.debug)