home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / amigaos4_only / smbfs / source / makefile < prev    next >
Encoding:
Makefile  |  2004-08-03  |  2.4 KB  |  76 lines

  1. #
  2. # $Id: GNUmakefile.os4,v 1.2 2004/05/13 13:18:10 obarthel Exp $
  3. #
  4. # :ts=8
  5. #
  6. # SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
  7. #
  8. # Copyright (C) 2000-2004 by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #
  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.
  14. #
  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.
  19. #
  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.
  23. #
  24.  
  25. .c.o:
  26.     @echo "Compiling $<"
  27.     @$(CC) -c $(CFLAGS) -o $*.o $<
  28.  
  29. ###########################################################################
  30.  
  31. PROJECT = smbfs
  32.  
  33. ###########################################################################
  34.  
  35. CC = ppc-amigaos-gcc
  36.  
  37. ###########################################################################
  38.  
  39. #WARNINGS = \
  40. #    -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
  41. #    -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion
  42.  
  43. WARNINGS = \
  44.     -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
  45.     -Wundef -Wbad-function-cast -Wmissing-declarations
  46.  
  47. CPU = -mcpu=ppc
  48. #-mcpu=604e -msoft-float
  49. OPTIONS = -DNDEBUG -fno-builtin
  50. OPTIMIZE = -O3 -fomit-frame-pointer -fstrength-reduce -finline-functions
  51. DEBUG = -g
  52.  
  53. ###########################################################################
  54.  
  55. CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) -Iinclude -ISDK:gcc/ppc-amigaos/include -Isdk:include/netinclude
  56. #\         -I. -Iinclude -Inetinclude
  57. LFLAGS = -nostartfiles -nostdlib -L.
  58.  
  59. ###########################################################################
  60.  
  61. OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o
  62.  
  63. ###########################################################################
  64.  
  65. LIBS = -lc
  66. #-lc
  67.  
  68. ###########################################################################
  69.  
  70. all: $(PROJECT)
  71.  
  72. $(PROJECT): $(OBJS)
  73.     @echo "Linking $@"
  74.     @$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
  75.     strip -R.comment -o $@ $@.debug
  76.