home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / amigaos4_only / smbfs / source / gnumakefile.68k < prev    next >
Encoding:
Text File  |  2004-08-03  |  2.1 KB  |  70 lines

  1. #
  2. # $Id: GNUmakefile.68k,v 1.1 2004/05/13 12:53:57 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.     @gcc -c $(CFLAGS) -o $*.o $<
  28.  
  29. ###############################################################################
  30.  
  31. PROJECT = smbfs
  32.  
  33. ###############################################################################
  34.  
  35. WARNINGS = \
  36.     -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
  37.     -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion
  38.  
  39. CPU = -m68020-60
  40. OPTIONS = -DNDEBUG -fno-builtin -Inetinclude -Iinclude
  41. OPTIMIZE = -O2 -fomit-frame-pointer
  42. DEBUG = -g
  43.  
  44. ###############################################################################
  45.  
  46. CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) -Iinclude -I.
  47. LFLAGS = -nostartfiles -nostdlib -L.
  48.  
  49. ###############################################################################
  50.  
  51. OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o
  52.  
  53. ###############################################################################
  54.  
  55. LIBS = -lc -ldebug -lamiga
  56.  
  57. ###############################################################################
  58.  
  59. all: $(PROJECT)
  60.  
  61. $(PROJECT): $(OBJS)
  62.     gcc -o $@.debug $(OBJS) $(CFLAGS) $(LFLAGS) $(LIBS)
  63.     strip --strip-all -o $@ $@.debug
  64.     protect $@ +e
  65.  
  66. ###############################################################################
  67.  
  68. clean:
  69.     -delete #?.o $(PROJECT)(%|.debug)
  70.