# Generated automatically from Makefile.in by configure.
#-----------------------------------------------------------------------------
#
# Makefile for the platform macosx10.6.2, on the host qanuck.ncftp.net.
#
#-----------------------------------------------------------------------------

CC=gcc
DEFS=-DHAVE_CONFIG_H -DMACOSX=10602
CFLAGS=-D_REENTRANT -O2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Winline -Wdisabled-optimization -Wmissing-format-attribute -Wformat-security -Wno-format-y2k -static-libgcc
# CC=gcc
# CFLAGS=-O2 -W -Wall -Wimplicit -Wstrict-prototypes -Wmissing-prototypes
prefix=/usr/local
TOPDIR=/MinGW/src/libncftp-3.2.4
CPPFLAGS=-I. -I$(TOPDIR)/libncftp -I$(TOPDIR)/sio -I$(TOPDIR)/Strn

SYSLIBS=-lws2_32
LIBS=-lncftp -lsio -lStrn $(SYSLIBS)
STRIPFLAG=-Wl,-x
LDFLAGS=-L$(TOPDIR)/libncftp -L$(TOPDIR)/sio -L$(TOPDIR)/Strn

DELETE=DEL
LIST=DIR
EXEEXT=.exe
OBJEXT=o

PROGS=ncftpput$(EXEEXT)

all: $(PROGS)

install: $(PROGS)
	-@echo "*** You shouldn't install this version of $(PROGS)"
	-@echo "*** Get the latest and most feature complete version from"
	-@echo "*** the NcFTP Client package."

ncftpput$(EXEEXT): ncftpput.c ../ncftpget/gpshare.c ../ncftpget/gpshare.h ncftpput.c $(TOPDIR)/libncftp/ncftp.h $(TOPDIR)/libncftp/ncftp_errno.h $(TOPDIR)/libncftp/libncftp.a
	$(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) ../ncftpget/gpshare.c ncftpput.c -o ncftpput$(EXEEXT) $(LDFLAGS) $(LIBS) $(STRIPFLAG)
	-@$(LIST) $(PROGS)

$(TOPDIR)/libncftp/libncftp.a:
	[ -f $(TOPDIR)/libncftp/libncftp.a ]

clean:
	-$(DELETE) $(PROGS)
	-$(DELETE) *.$(OBJEXT)
	-$(DELETE) *.dSYM
	-$(DELETE) core csetc.pch SunWS_cache
