1 #*************************************************************************** 2 # _ _ ____ _ 3 # Project ___| | | | _ \| | 4 # / __| | | | |_) | | 5 # | (__| |_| | _ <| |___ 6 # \___|\___/|_| \_\_____| 7 # 8 # Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel (a] 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 http://curl.haxx.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 ########################################################################### 22 23 # What to call the final executable 24 TARGET = example 25 26 # Which object files that the executable consists of 27 OBJS= ftpget.o 28 29 # What compiler to use 30 CC = gcc 31 32 # Compiler flags, -g for debug, -c to make an object file 33 CFLAGS = -c -g 34 35 # This should point to a directory that holds libcurl, if it isn't 36 # in the system's standard lib dir 37 # We also set a -L to include the directory where we have the openssl 38 # libraries 39 LDFLAGS = -L/home/dast/lib -L/usr/local/ssl/lib 40 41 # We need -lcurl for the curl stuff 42 # We need -lsocket and -lnsl when on Solaris 43 # We need -lssl and -lcrypto when using libcurl with SSL support 44 # We need -lpthread for the pthread example 45 LIBS = -lcurl -lsocket -lnsl -lssl -lcrypto 46 47 # Link the target with all objects and libraries 48 $(TARGET) : $(OBJS) 49 $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LIBS) 50 51 # Compile the source files into object files 52 ftpget.o : ftpget.c 53 $(CC) $(CFLAGS) $< 54