2011-03-12 07:14:32 +08:00
|
|
|
#***************************************************************************
|
2010-02-15 03:40:18 +08:00
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
2001-03-27 17:09:09 +08:00
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2020-03-23 21:44:29 +08:00
|
|
|
# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2001-03-27 17:09:09 +08:00
|
|
|
#
|
2011-03-12 07:14:32 +08:00
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2011-03-12 07:14:32 +08:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
2011-03-12 07:14:32 +08:00
|
|
|
###########################################################################
|
2001-03-27 17:09:09 +08:00
|
|
|
|
|
|
|
# What to call the final executable
|
|
|
|
TARGET = example
|
|
|
|
|
|
|
|
# Which object files that the executable consists of
|
|
|
|
OBJS= ftpget.o
|
|
|
|
|
|
|
|
# What compiler to use
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
# Compiler flags, -g for debug, -c to make an object file
|
|
|
|
CFLAGS = -c -g
|
|
|
|
|
|
|
|
# This should point to a directory that holds libcurl, if it isn't
|
|
|
|
# in the system's standard lib dir
|
|
|
|
# We also set a -L to include the directory where we have the openssl
|
|
|
|
# libraries
|
|
|
|
LDFLAGS = -L/home/dast/lib -L/usr/local/ssl/lib
|
|
|
|
|
|
|
|
# We need -lcurl for the curl stuff
|
|
|
|
# We need -lsocket and -lnsl when on Solaris
|
|
|
|
# We need -lssl and -lcrypto when using libcurl with SSL support
|
2001-05-15 20:56:38 +08:00
|
|
|
# We need -lpthread for the pthread example
|
2007-08-12 04:57:54 +08:00
|
|
|
LIBS = -lcurl -lsocket -lnsl -lssl -lcrypto
|
2001-03-27 17:09:09 +08:00
|
|
|
|
|
|
|
# Link the target with all objects and libraries
|
|
|
|
$(TARGET) : $(OBJS)
|
2002-08-15 07:01:14 +08:00
|
|
|
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
|
2001-03-27 17:09:09 +08:00
|
|
|
|
|
|
|
# Compile the source files into object files
|
|
|
|
ftpget.o : ftpget.c
|
|
|
|
$(CC) $(CFLAGS) $<
|