blob: b05ca8ee19593bc8d798c8e10b5202d9a9d962ff [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#***************************************************************************
2# _ _ ____ _
3# Project ___| | | | _ \| |
4# / __| | | | |_) | |
5# | (__| |_| | _ <| |___
6# \___|\___/|_| \_\_____|
7#
8# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
9#
10# This software is licensed as described in the file COPYING, which
11# you should have received as part of this distribution. The terms
12# are also available at https://curl.se/docs/copyright.html.
13#
14# You may opt to use, copy, modify, merge, publish, distribute and/or sell
15# copies of the Software, and permit persons to whom the Software is
16# furnished to do so, under the terms of the COPYING file.
17#
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
20#
21# SPDX-License-Identifier: curl
22#
23###########################################################################
24
25# What to call the final executable
26TARGET = example
27
28# Which object files that the executable consists of
29OBJS= ftpget.o
30
31# What compiler to use
32CC = gcc
33
34# Compiler flags, -g for debug, -c to make an object file
35CFLAGS = -c -g
36
37# This should point to a directory that holds libcurl, if it isn't
38# in the system's standard lib dir
39# We also set a -L to include the directory where we have the openssl
40# libraries
41LDFLAGS = -L/home/dast/lib -L/usr/local/ssl/lib
42
43# We need -lcurl for the curl stuff
44# We need -lsocket and -lnsl when on Solaris
45# We need -lssl and -lcrypto when using libcurl with SSL support
46# We need -lpthread for the pthread example
47LIBS = -lcurl -lsocket -lnsl -lssl -lcrypto
48
49# Link the target with all objects and libraries
50$(TARGET) : $(OBJS)
51 $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS)
52
53# Compile the source files into object files
54ftpget.o : ftpget.c
55 $(CC) $(CFLAGS) $<