Thread Deleted

[Q] c4droid: Makefile and cstdio problem

Prev Previous Post   Next Post Next
28th June 2014, 06:19 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jun 2014
Hi.
Iīm doing some tests with c4droid on my phone (a galaxy s3 mini).
Compiling using "g++ + Bionic", no have problems.
However, when i use a Makefile, the "cstdio" library donīt recognize. ("cstdio": no such file or directory)
I dont know i can include the library in Makefile.
Follows under, my makefile:


GCC= $(CXX)
CFLAGS= -c -Wall -lm -v -ldl -lz
LDFLAGS=src (c4droid:CURSRCDIR)
SOURCES=main.c
SOURCES+=src/Classe1.cpp
OBJECTS=$(SOURCES:.cpp=.o) $(SOURCES:.c=.o)
EXECUTABLE=ProjetoTeste

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(GCC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
$(GCC) $(CFLAGS) $< -o $@



sorry my english.
thanks.
Last edited by amlgds; 28th June 2014 at 06:59 PM.
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes