mini-led-cube/editor/Makefile

22 lines
540 B
Makefile
Raw Normal View History

CC=gcc
CFLAGS=-Wall
2011-12-06 22:35:48 +01:00
LINKER_FLAGS=-lglut -export-dynamic
2011-12-21 22:58:57 +01:00
GTKLIBS=`pkg-config --cflags --libs gtk+-2.0 gtkglext-1.0 libglade-2.0 gmodule-export-2.0`
SRCDIR=src
all:
2011-12-06 22:35:48 +01:00
$(CC) $(CFLAGS) $(GTKLIBS) -c $(SRCDIR)/display.c
$(CC) $(CFLAGS) $(GTKLIBS) -c $(SRCDIR)/input.c
$(CC) $(CFLAGS) $(GTKLIBS) -c $(SRCDIR)/usb.c
2011-12-06 22:35:48 +01:00
$(CC) $(CFLAGS) $(GTKLIBS) -c $(SRCDIR)/main.c
2011-12-06 22:35:48 +01:00
$(CC) $(CFLAGS) $(LINKER_FLAGS) $(GTKLIBS) -o ledcube-edit main.o display.o input.o
chmod +x ledcube-edit
2011-12-06 22:35:48 +01:00
#strip ledcube-edit
clean:
rm -f *.o
rm -f gui
2011-12-21 22:58:57 +01:00
rm -f ledcube-edit