1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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)