Fix makefile on linux
This commit is contained in:
parent
1fb4c44cec
commit
d3b129af4d
6
Makefile
6
Makefile
@ -31,11 +31,9 @@ $(TARGET): $(OBJECTS)
|
|||||||
|
|
||||||
|
|
||||||
$(PROGRAM): CXXFLAGS += $(WX_CXXFLAGS) $(TARGET)
|
$(PROGRAM): CXXFLAGS += $(WX_CXXFLAGS) $(TARGET)
|
||||||
$(PROGRAM): $(PROGRAM_OBJECTS)
|
$(PROGRAM):
|
||||||
$(CXX) $(LDLIBS) $(PROGRAM_OBJECTS) -o $(PROGRAM)
|
$(CXX) $(WX_CXXFLAGS) $(PROGRAM_SRC) $(LDLIBS) -o $(PROGRAM)
|
||||||
|
|
||||||
$(PROGRAM_OBJECTS):
|
|
||||||
$(CXX) $(WX_CXXFLAGS) $(PROGRAM_SRC)
|
|
||||||
|
|
||||||
run:
|
run:
|
||||||
./build/Tyro
|
./build/Tyro
|
||||||
|
@ -19,7 +19,6 @@ SFTP::~SFTP() {
|
|||||||
string SFTP::getFile(const char *path)
|
string SFTP::getFile(const char *path)
|
||||||
{
|
{
|
||||||
string output = "";
|
string output = "";
|
||||||
fprintf(stderr, "libssh2_sftp_open()!\n");
|
|
||||||
|
|
||||||
LIBSSH2_SFTP_HANDLE *sftp_handle;
|
LIBSSH2_SFTP_HANDLE *sftp_handle;
|
||||||
sftp_handle = libssh2_sftp_open(sftp_session, path, LIBSSH2_FXF_READ, 0);
|
sftp_handle = libssh2_sftp_open(sftp_session, path, LIBSSH2_FXF_READ, 0);
|
||||||
@ -30,8 +29,6 @@ string SFTP::getFile(const char *path)
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "libssh2_sftp_open() is done, now receive data!\n");
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
char mem[1024];
|
char mem[1024];
|
||||||
|
|
||||||
@ -119,7 +116,6 @@ void SFTP::ssh_connect(const char *host, const char *user, const char *pass, con
|
|||||||
|
|
||||||
void SFTP::sftp_connect()
|
void SFTP::sftp_connect()
|
||||||
{
|
{
|
||||||
fprintf(stderr, "libssh2_sftp_init()!\n");
|
|
||||||
sftp_session = libssh2_sftp_init(session);
|
sftp_session = libssh2_sftp_init(session);
|
||||||
|
|
||||||
if ( ! sftp_session)
|
if ( ! sftp_session)
|
||||||
|
@ -12,14 +12,15 @@
|
|||||||
|
|
||||||
#define LIBSSH_STATIC 1
|
#define LIBSSH_STATIC 1
|
||||||
|
|
||||||
// libssh2 includes
|
|
||||||
#include <libssh2.h>
|
|
||||||
#include <libssh2_sftp.h>
|
|
||||||
|
|
||||||
// Socket includes
|
// Socket includes
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
// libssh2 includes
|
||||||
|
#include <libssh2.h>
|
||||||
|
#include <libssh2_sftp.h>
|
||||||
|
|
||||||
class SFTP {
|
class SFTP {
|
||||||
public:
|
public:
|
||||||
|
@ -65,7 +65,7 @@ void MainFrame::SetupToolbar()
|
|||||||
#include "../../resources/xpm/24/file-empty.xpm"
|
#include "../../resources/xpm/24/file-empty.xpm"
|
||||||
#include "../../resources/xpm/24/folder.xpm"
|
#include "../../resources/xpm/24/folder.xpm"
|
||||||
#include "../../resources/xpm/24/floppy.xpm"
|
#include "../../resources/xpm/24/floppy.xpm"
|
||||||
#include "../../"
|
#include "../../resources/xpm/24/wrench-screwdriver.xpm"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CreateToolBar(wxNO_BORDER | wxTB_FLAT | wxTB_HORIZONTAL);
|
CreateToolBar(wxNO_BORDER | wxTB_FLAT | wxTB_HORIZONTAL);
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
/*
|
/**
|
||||||
* File: wx_common.h
|
* Common header for widget classes
|
||||||
* Author: twarren
|
|
||||||
*
|
|
||||||
* Created on April 7, 2015, 2:29 PM
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef WX_COMMON_H
|
#ifndef WX_COMMON_H
|
||||||
|
Loading…
Reference in New Issue
Block a user