Skip to content

Commit

Permalink
native Makefile, works on Intel Edison Yocto
Browse files Browse the repository at this point in the history
  • Loading branch information
vkomenda committed Nov 10, 2015
1 parent c92de64 commit 253e214
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile.native
@@ -0,0 +1,15 @@
CC = gcc
LD = gcc

CFLAGS=-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -std=c11
CFLAGS+=-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE

LDFLAGS=-lglib-2.0

all: ssd1306_demo

ssd1306_demo: ssd1306_demo.o ssd1306.o
$(LD) $(LDFLAGS) -o $@ $^

%.o: %.c
$(CC) $(CFLAGS) -c $<

0 comments on commit 253e214

Please sign in to comment.