CC = ${CROSS_COMPILE}g++ CFLAGS := -Wall OBJS = slimFC LIBS = slimFC.o all: $(OBJS) slimFC: $(LIBS) $(CC) $(CFLAGS) -o $@ $(LIBS) %.o: %.c %.cpp $(CC) $(CFLAGS) -c -o $@ $< clean: $(RM) -f *.o $(OBJS)