2011-12-28 09:43:29 +01:00
|
|
|
CC = gcc-4.4
|
|
|
|
CFLAGS = -Wall
|
|
|
|
LINKER_FLAGS = -lglut -lGL -lGLU -export-dynamic
|
|
|
|
CFLAGS += `pkg-config --cflags --libs gtk+-2.0 gtkglext-1.0 libglade-2.0 gmodule-export-2.0`
|
|
|
|
|
|
|
|
CFLAGS += `libusb-config --cflags`
|
|
|
|
LINKER_FLAGS += `libusb-config --libs`
|
2011-10-19 01:10:15 +02:00
|
|
|
|
|
|
|
all:
|
2011-12-28 09:43:29 +01:00
|
|
|
$(CC) $(CFLAGS) -c display.c
|
|
|
|
$(CC) $(CFLAGS) -c input.c
|
|
|
|
$(CC) $(CFLAGS) -c main.c
|
|
|
|
$(CC) $(CFLAGS) -c ../client/ledcube.c
|
|
|
|
$(CC) $(CFLAGS) -c ../client/opendevice.c
|
2011-10-19 01:10:15 +02:00
|
|
|
|
2011-12-28 09:43:29 +01:00
|
|
|
$(CC) $(CFLAGS) $(LINKER_FLAGS) -o ledcube-edit main.o display.o input.o ledcube.o opendevice.o
|
2011-10-19 01:10:15 +02:00
|
|
|
chmod +x ledcube-edit
|
2011-12-06 22:35:48 +01:00
|
|
|
#strip ledcube-edit
|
2011-11-08 22:32:09 +01:00
|
|
|
|
2011-10-19 01:10:15 +02:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2011-11-08 22:32:09 +01:00
|
|
|
rm -f gui
|
2011-12-21 22:58:57 +01:00
|
|
|
rm -f ledcube-edit
|