mirror of
https://github.com/kingk85/uFTP.git
synced 2025-08-01 14:27:32 +03:00
Some preprocessor conditions
This commit is contained in:
10
Makefile
10
Makefile
@ -1,5 +1,5 @@
|
|||||||
#Linux Generic
|
#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/
|
OUTPATH=./build/
|
||||||
SOURCE_MODULES_PATH=./library/
|
SOURCE_MODULES_PATH=./library/
|
||||||
@ -22,14 +22,14 @@ ENABLE_LARGE_FILE_SUPPORT=-D LARGE_FILE_SUPPORT_ENABLED -D _LARGEFILE64_SOURCE
|
|||||||
|
|
||||||
ENABLE_OPENSSL_SUPPORT=
|
ENABLE_OPENSSL_SUPPORT=
|
||||||
#TO ENABLE OPENSSL SUPPORT UNCOMMENT NEXT 2 LINES
|
#TO ENABLE OPENSSL SUPPORT UNCOMMENT NEXT 2 LINES
|
||||||
ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED
|
#ENABLE_OPENSSL_SUPPORT=-D OPENSSL_ENABLED
|
||||||
LIBS=-lpthread -lssl -lcrypto
|
#LIBS=-lpthread -lssl -lcrypto
|
||||||
|
|
||||||
ENABLE_PAM_SUPPORT=
|
ENABLE_PAM_SUPPORT=
|
||||||
PAM_AUTH_LIB=
|
PAM_AUTH_LIB=
|
||||||
#TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES
|
#TO ENABLE PAM AUTH UNCOMMENT NEXT TWO LINES
|
||||||
ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED
|
#ENABLE_PAM_SUPPORT= -D PAM_SUPPORT_ENABLED
|
||||||
PAM_AUTH_LIB= -lpam
|
#PAM_AUTH_LIB= -lpam
|
||||||
|
|
||||||
CFLAGS=$(CFLAGSTEMP) $(ENABLE_LARGE_FILE_SUPPORT) $(ENABLE_OPENSSL_SUPPORT) $(ENABLE_PAM_SUPPORT)
|
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_FILE 2
|
||||||
#define FTP_CHMODE_COMMAND_RETURN_CODE_NO_PERMISSIONS 3
|
#define FTP_CHMODE_COMMAND_RETURN_CODE_NO_PERMISSIONS 3
|
||||||
#define FTP_CHMODE_COMMAND_RETURN_NAME_TOO_LONG 4
|
#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"
|
#include "ftpData.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -27,8 +27,12 @@
|
|||||||
#define FTPDATA_H
|
#define FTPDATA_H
|
||||||
|
|
||||||
#include <netinet/in.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/dynamicVectors.h"
|
||||||
#include "library/dynamicMemory.h"
|
#include "library/dynamicMemory.h"
|
||||||
|
|
||||||
|
@ -30,7 +30,11 @@
|
|||||||
#include "configRead.h"
|
#include "configRead.h"
|
||||||
#include "../ftpData.h"
|
#include "../ftpData.h"
|
||||||
#include "dynamicVectors.h"
|
#include "dynamicVectors.h"
|
||||||
#include "openSsl.h"
|
|
||||||
|
#ifdef OPENSSL_ENABLED
|
||||||
|
#include "openSsl.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "fileManagement.h"
|
#include "fileManagement.h"
|
||||||
#include "daemon.h"
|
#include "daemon.h"
|
||||||
#include "dynamicMemory.h"
|
#include "dynamicMemory.h"
|
||||||
|
Reference in New Issue
Block a user