CC = arm-buildroot-linux-gnueabihf-gcc OBJS = main.o projectinc.o TARGET = superdaemon all: $(TARGET) $(TARGET): $(OBJS) $(CC) -lm -o $@ $^ %.o:%.c @echo "Compiling $< ..." $(CC) -c $< clean: rm $(OBJS) $(TARGET)