mini-led-cube/editor/Makefile
2011-10-30 23:42:46 +01:00

20 lines
394 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
strip ledcube-edit
clean:
rm -f *.o
#rm -f ledcube-edit