mirror of
https://github.com/kingk85/uFTP.git
synced 2025-07-25 13:16:12 +03:00
Some preprocessor conditions
This commit is contained in:
10
Makefile
10
Makefile
@ -1,5 +1,5 @@
|
||||
#Linux Generic
|
||||
CC=gcc
|
||||
CC=/opt/crosstool/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
|
||||
|
||||
OUTPATH=./build/
|
||||
SOURCE_MODULES_PATH=./library/
|
||||
@ -22,14 +22,14 @@ ENABLE_LARGE_FILE_SUPPORT=-D LARGE_FILE_SUPPORT_ENABLED -D _LARGEFILE64_SOURCE
|
||||
|
||||
ENABLE_OPENSSL_SUPPORT=
|
||||
#TO ENABLE OPENSSL SUPPORT UNCOMMENT NEXT 2 LINES
|
||||
ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED
|
||||
LIBS=-lpthread -lssl -lcrypto
|
||||
#ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED
|
||||
#LIBS=-lpthread -lssl -lcrypto
|
||||
|
||||
ENABLE_PAM_SUPPORT=
|
||||
PAM_AUTH_LIB=
|
||||
#TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES
|
||||
ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED
|
||||
PAM_AUTH_LIB= -lpam
|
||||
#ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED
|
||||
#PAM_AUTH_LIB= -lpam
|
||||
|
||||
CFLAGS=$(CFLAGSTEMP) $(ENABLE_LARGE_FILE_SUPPORT) $(ENABLE_OPENSSL_SUPPORT) $(ENABLE_PAM_SUPPORT)
|
||||
|
||||
|
@ -37,8 +37,12 @@
|
||||
#define FTP_CHMODE_COMMAND_RETURN_CODE_NO_FILE 2
|
||||
#define FTP_CHMODE_COMMAND_RETURN_CODE_NO_PERMISSIONS 3
|
||||
#define FTP_CHMODE_COMMAND_RETURN_NAME_TOO_LONG 4
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
#ifdef OPENSSL_ENABLED
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
#endif
|
||||
|
||||
#include "ftpData.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -27,8 +27,12 @@
|
||||
#define FTPDATA_H
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
#ifdef OPENSSL_ENABLED
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
#endif
|
||||
|
||||
#include "library/dynamicVectors.h"
|
||||
#include "library/dynamicMemory.h"
|
||||
|
||||
|
@ -30,7 +30,11 @@
|
||||
#include "configRead.h"
|
||||
#include "../ftpData.h"
|
||||
#include "dynamicVectors.h"
|
||||
#include "openSsl.h"
|
||||
|
||||
#ifdef OPENSSL_ENABLED
|
||||
#include "openSsl.h"
|
||||
#endif
|
||||
|
||||
#include "fileManagement.h"
|
||||
#include "daemon.h"
|
||||
#include "dynamicMemory.h"
|
||||
|
Reference in New Issue
Block a user