include ../Makefile.include SOURCES := xbmcVideoLibraryScan.cpp LFLAGS += -lxbmc -lstdc++ -L.. #INCLUDES += -I. # Objs are all the sources, with .cpp replaced by .o OBJS := $(SOURCES:.cpp=.o) all: xbmcVideoLibraryScan xbmcVideoLibraryScan: $(OBJS) $(CC) $(CFLAGS) -o xbmcVideoLibraryScan $(OBJS) $(LFLAGS) $(LIBS) # Get a .o from a .cpp by calling compiler with cflags and includes (if defined) .cpp.o: $(CC) $(CFLAGS) $(INCLUDES) -c $<