Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC=arm-fslc-linux-gnueabi-gcc
- # using g++ for 'CXX' makes -shared-libgcc, -lstdc++, and -xc++ redundant
- CXX=arm-fslc-linux-gnueabi-gcc
- RM=rm -f
- CPPFLAGS=-g -xc++ $(shell root-config --cflags)
- LDFLAGS=-g $(shell root-config --ldflags)
- LDLIBS=-shared-libgcc -lstdc++ -lglib-2.0 -lgio-2.0 -lgobject-2.0 $(shell root-config --libs)
- # Add source files to be compiled here
- SRCS=main.cpp bluetoothclient.cpp pbap_gdbus.cpp phone.cpp tools.cpp
- OBJS=$(subst .cc,.o,$(SRCS))
- all: foo
- foo: $(OBJS)
- $(CXX) $(LDFLAGS) -o foo $(OBJS) $(LDLIBS)
- depend: .depend
- .depend: $(SRCS)
- $(RM) ./.depend
- $(CXX) $(CPPFLAGS) -MM $^>>./.depend;
- clean:
- $(RM) $(OBJS)
- distclean: clean
- $(RM) *~ .depend
- include .depend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement