Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Hi,

Yes, no Makefile for the new lib yet!! I have to polish my rusty makefile 
writing skills ;) Will upload soon. If anybody has already written, please feel 
free to post it here. 

Original comment by [email protected] on 6 Nov 2010 at 3:02

from twitcurl.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Here's the version that I got to work.  Note, I had to download a new version 
of libcurl since I couldn't compile it with the old version on my system so I 
added a CURL_LIB that would not be needed by people with the latest version of 
libcurl.  By no means is this a production version of the Makefile.  A lot of 
cleanup is needed, and if I have chance to get around to it, I'll update it and 
clean it up.

# Hey Emacs, this is a -*- makefile -*-
# The twitcurl library.. a Makefile for OpenWRT
# Makefile-fu by John Boiles
# 28 September 2009

LIBNAME = twitcurl
SRC = $(LIBNAME).cpp \
    HMAC_SHA1.cpp \
    SHA1.cpp \
    base64.cpp \
    oauthlib.cpp \
    urlencode.cpp
STAGING_DIR = 
INCLUDE_DIR = $(STAGING_DIR)/usr/include
CURL_INCLUDE = /home/qa5535/libcurl/usr/local/include
LIBRARY_DIR = $(STAGING_DIR)/usr/lib
CURL_LIB = /home/qa5535/libcurl/usr/local/lib
LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
CC = g++
REMOVE = rm -f
COPY = cp
REMOTEIP = 192.168.1.30

# Compiler flag to set the C Standard level.
# c89   - "ANSI" C
# gnu89 - c89 plus GCC extensions
# c99   - ISO C99 standard (not yet fully implemented)
# gnu99 - c99 plus GCC extensions
# CSTANDARD = -std=gnu99

# Place -D or -U options here
CDEFS =

# Place -I options here
CINCS = 

CFLAGS =$(CDEFS) $(CINCS) $(CSTANDARD)

all: target

target: $(SRC) $(LIBNAME).h
    $(CC) -Wall -fPIC -c -I$(CURL_INCLUDE) -I$(INCLUDE_DIR) $(SRC)
    $(CC) -shared -Wl,-soname,lib$(LIBNAME).so.1 $(LDFLAGS) -L$(CURL_LIB) -L$(LIBRARY_DIR) -lcurl -o lib$(LIBNAME).so.1.0 *.o

#clean project.
clean:
    $(REMOVE) $(LIBNAME)*.so.1.0
    $(REMOVE) $(LIBNAME).o
    $(REMOVE) $(LIBRARY_DIR)/lib$(LIBNAME).so*
# Install library to local openwrt library directory
install: all
    $(COPY) lib$(LIBNAME).so.1.0 $(LIBRARY_DIR)
    $(COPY) $(LIBNAME).h $(INCLUDE_DIR)/
    ln -sf $(LIBRARY_DIR)/lib$(LIBNAME).so.1.0 $(LIBRARY_DIR)/lib$(LIBNAME).so
    ln -sf $(LIBRARY_DIR)/lib$(LIBNAME).so.1.0 $(LIBRARY_DIR)/lib$(LIBNAME).so.1

Original comment by [email protected] on 8 Nov 2010 at 3:48

from twitcurl.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Thanks. Linux branch svn/branches/libtwitcurl has been updated with new code 
and makefile.

Original comment by [email protected] on 6 Mar 2011 at 3:58

  • Changed state: Fixed

from twitcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.