1
0
ssd1306_linux/Makefile

16 lines
212 B
Makefile
Raw Normal View History

2020-02-13 04:55:42 +02:00
CC=gcc
CFLAGS=-I ./
LDFLAGS=-static
OBJS=main.o ssd1306.o linux_i2c.o
BIN=ssd1306_bin
%.o:%.c
$(CC) -c -o $@ $< $(CFLAGS)
$(BIN):$(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
clean:
rm -f ./*.o $(BIN)