mirror of
https://github.com/obarthel/amiga-smbfs.git
synced 2025-12-08 14:58:35 +00:00
- Replaced the long NT date conversion code with something hopefully much more robust. The results so far are both encouraging and irritating. Dates that previously came out as "unknown" are now processed, but there are differences between the dates shown in the directory listing and by listing the files by name. Go figure... - Transplanted some more code from Samba to handle directory entry data conversion. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/amiga-smbfs/trunk@5 26594b9e-b914-4e86-b7a1-9402bd427170
83 lines
2.8 KiB
Plaintext
83 lines
2.8 KiB
Plaintext
#
|
|
# $Id: GNUmakefile.os4,v 1.2 2005-05-27 09:48:26 obarthel Exp $
|
|
#
|
|
# :ts=8
|
|
#
|
|
# SMB file system wrapper for AmigaOS, using the AmiTCP V3 API
|
|
#
|
|
# Copyright (C) 2000-2005 by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#
|
|
|
|
.c.o:
|
|
@echo "Compiling $<"
|
|
@$(CC) -c $(CFLAGS) -o $*.o $<
|
|
|
|
###########################################################################
|
|
|
|
PROJECT = smbfs
|
|
|
|
###########################################################################
|
|
|
|
CC = ppc-amigaos-gcc
|
|
|
|
###########################################################################
|
|
|
|
#WARNINGS = \
|
|
# -Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
|
|
# -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion
|
|
|
|
WARNINGS = \
|
|
-Wall -W -Wshadow -Wpointer-arith -Wsign-compare -Wmissing-prototypes \
|
|
-Wundef -Wbad-function-cast -Wmissing-declarations
|
|
|
|
CPU = -mcpu=604e -msoft-float
|
|
OPTIONS = -DNDEBUG -fno-builtin
|
|
OPTIMIZE = -O3
|
|
DEBUG = -ggdb
|
|
|
|
###########################################################################
|
|
|
|
CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(CPU) $(OPTIONS) \
|
|
-I. -I/V/include -I/usr/local/amiga/ppc-amigaos/sys-include -Iinclude -Inetinclude
|
|
LFLAGS = -nostartfiles -nostdlib -L.
|
|
|
|
###########################################################################
|
|
|
|
OBJS = main.o proc.o smb_abstraction.o sock.o crypt.o quad_math.o
|
|
|
|
###########################################################################
|
|
|
|
LIBS = -lc
|
|
|
|
###########################################################################
|
|
|
|
all: $(PROJECT)
|
|
|
|
$(PROJECT): $(OBJS)
|
|
@echo "Linking $@"
|
|
@$(CC) -o $@.debug $(CFLAGS) $(LFLAGS) $(OBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
|
|
ppc-amigaos-strip -R.comment -o $@ $@.debug
|
|
|
|
###########################################################################
|
|
|
|
crypt.o : crypt.c system_headers.h assert.h smbfs.h
|
|
main.o : main.c system_headers.h assert.h smbfs.h smb_abstraction.h smbfs_rev.h
|
|
proc.o : proc.c system_headers.h assert.h smbfs.h quad_math.h
|
|
quad_math.o : quad_math.c quad_math.h
|
|
smb_abstraction.o : smb_abstraction.c system_headers.h assert.h smbfs.h smb_abstraction.h
|
|
sock.o : sock.c system_headers.h assert.h smbfs.h smb_abstraction.h
|