Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. CC=arm-fslc-linux-gnueabi-gcc
  3. # using g++ for 'CXX' makes -shared-libgcc, -lstdc++, and -xc++ redundant
  4. CXX=arm-fslc-linux-gnueabi-gcc
  5. RM=rm -f
  6. CPPFLAGS=-g -xc++ $(shell root-config --cflags)
  7. LDFLAGS=-g $(shell root-config --ldflags)
  8. LDLIBS=-shared-libgcc -lstdc++ -lglib-2.0 -lgio-2.0 -lgobject-2.0 $(shell root-config --libs)
  9.  
  10. # Add source files to be compiled here
  11. SRCS=main.cpp bluetoothclient.cpp pbap_gdbus.cpp phone.cpp tools.cpp
  12. OBJS=$(subst .cc,.o,$(SRCS))
  13.  
  14. all: foo
  15.  
  16. foo: $(OBJS)
  17. $(CXX) $(LDFLAGS) -o foo $(OBJS) $(LDLIBS)
  18.  
  19. depend: .depend
  20.  
  21. .depend: $(SRCS)
  22. $(RM) ./.depend
  23. $(CXX) $(CPPFLAGS) -MM $^>>./.depend;
  24.  
  25. clean:
  26. $(RM) $(OBJS)
  27.  
  28. distclean: clean
  29. $(RM) *~ .depend
  30.  
  31. include .depend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement