1
0

first time code commit

This commit is contained in:
armlabs
2020-02-13 10:55:42 +08:00
committed by GitHub
parent 591e6e8625
commit e672704de6
9 changed files with 1198 additions and 0 deletions

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
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)