You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
166 B
Makefile

CC=gcc
CFLAGS=-I.
OBJ=main.o sensor.o
TARGET=sensor
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(TARGET): $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
clean:
rm -f *.o $(TARGET)