op_runfbapp and op_gammatool
[pandora-misc.git] / Makefile
1 CROSS_COMPILE ?= arm-none-linux-gnueabi-
2 CC = $(CROSS_COMPILE)gcc
3
4 CFLAGS += -Wall -O2
5 LDFLAGS += -s
6 INSTALL ?= bin
7
8 BIN = op_runfbapp op_gammatool
9
10 all: $(BIN)
11
12 clean:
13         $(RM) *.o $(BIN)
14
15 op_runfbapp: LDFLAGS += -lpthread -lX11
16
17 $(INSTALL):
18         mkdir -p $(INSTALL)
19
20 install: $(INSTALL) $(BIN)
21         cp op_runfbapp $(INSTALL)/
22         cp op_gammatool $(INSTALL)/op_gammatool_bin
23         cp scripts/op_gammatool $(INSTALL)/op_gammatool