Skip to content

Commit 6642d03

Browse files
author
Raycho Mukelov
committed
added prjf in lib including curl
1 parent 40f12bf commit 6642d03

File tree

4,255 files changed

+1409997
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,255 files changed

+1409997
-0
lines changed

pCloudCC/lib/prjf/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.o
2+
*.so
3+
test
4+
/libs
5+
.kdev4

pCloudCC/lib/prjf/.gitmodules

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[submodule "curl"]
2+
path = lib/curl
3+
url = https://github.com/curl/curl.git
4+
5+
[submodule "jsmn"]
6+
path = lib/jsmn
7+
url = https://github.com/zserge/jsmn.git
8+
[submodule "lib/jsmn"]
9+
path = lib/jsmn
10+
url = https://github.com/zserge/jsmn.git

pCloudCC/lib/prjf/Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#CC=clang
2+
CC=gcc
3+
#CFLAGS = -fPIC -g #-pedantic -Wall -Wextra -ggdb3
4+
#LDFLAGS =-lz -ldl -lpmobile -Lpmobile -lmbedtls -lfuse -lpthread -Llibs/mbedtls/library
5+
#LDFLAGS =-lsqlite3 -lmbedtls -L../pclsync/lib/mbedtls/library -lcrypto -lpthread -ldl -lfuse -lz ./lib/jsmn/jsmn.o
6+
LDFLAGS =-lsqlite3 -lmbedtls -L../pclsync/lib/mbedtls/library -lcrypto -lpthread -ldl -lfuse -lz
7+
8+
LIBPATH =../pclsync
9+
10+
SHAREFLAGS =-shared
11+
12+
DEBUGFLAGS =-O0 -D _DEBUG
13+
RELEASEFLAGS =-O2 -D NDEBUG -combine -fwhole-program
14+
15+
USESSL =mbedtls
16+
17+
#CFLAGS=-Wall -Wpointer-arith -g -O2 -fsanitize=address
18+
#CFLAGS=-Wall -Wpointer-arith -g -fPIC -I./pmobile
19+
#CFLAGS =-Wall -Wpointer-arith -g -fPIC -I./lib/jsmn -I./lib/curl/include -I$(LIBPATH) -DP_ELECTRON
20+
CFLAGS =-Wall -Wpointer-arith -g -fPIC -I$(LIBPATH) -DP_ELECTRON
21+
#CFLAGS=-Wall -Wpointer-arith -g -O2
22+
23+
TARGET =pRJF.so
24+
25+
#DYNLIBS =-rdynamic ./$(TARGET) -rdynamic ./lib/curl/lib/libcurl.so
26+
DYNLIBS =-rdynamic ./$(TARGET)
27+
28+
STAT_LIBS =$(LIBPATH)/psynclib.a
29+
30+
OBJ=pRJF.o lib/jsmn/jsmn.o
31+
32+
#all: $(TARGET) test libs/jsmn/jsmn.o
33+
all: $(TARGET)
34+
35+
libcurl:
36+
cd lib/curl && cmake . && $(MAKE)
37+
38+
#libs/jsmn/jsmn.o:
39+
# $(CC) $(SHAREFLAGS) $(CFLAGS) $(DEBUGFLAGS) ./lib/jsmn/jsmn.c -o ./lib/jsmn/jsmn.o
40+
41+
#$(TARGET): $(OBJ)
42+
# $(LINK.c) -shared $< -o $@
43+
$(TARGET): $(OBJ)
44+
$(CC) $(SHAREFLAGS) $(CFLAGS) $(DEBUGFLAGS) -o $(TARGET) $(OBJ) $(STAT_LIBS)
45+
46+
#test: test.o $(TARGET)
47+
# $(CC) test.c $(DYNLIBS) $(CFLAGS) $(LDFLAGS) $(DEBUGFLAGS) $(STAT_LIBS) -o test
48+
49+
50+
clean:
51+
rm -f *~ *.o $(TARGET) ./test
52+
53+
#&& cd libs/mbedtls && $(MAKE) clean && cd ../.. && cd pmobile && $(MAKE) clean
54+

0 commit comments

Comments
 (0)