1b468b8c22
The idea is to use OpenGL and some simple C code to display a 3D cube. With the mouse you can define which LED should be on or off on a particular frame. With this technique, you can define whole sequences of frames to form animations.
19 lines
374 B
Makefile
19 lines
374 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall
|
|
INCLUDES=-I/usr/include/GL
|
|
LIBS=-lglut -lGLU -lGL -lm
|
|
|
|
SRCDIR=src
|
|
|
|
all:
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $(SRCDIR)/display.c
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $(SRCDIR)/input.c
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $(SRCDIR)/main.c
|
|
|
|
$(CC) $(CFLAGS) $(LIBS) -o ledcube-edit main.o display.o input.o
|
|
chmod +x ledcube-edit
|
|
|
|
clean:
|
|
rm -f *.o
|
|
#rm -f ledcube-edit
|
|
|