flasher: look for more bootfile tars
[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 op_test_inputs ofbset
9
10 all: $(BIN)
11
12 clean:
13         $(RM) *.o $(BIN)
14
15 op_runfbapp: LDFLAGS += -lpthread -lX11
16 op_test_inputs: LDFLAGS += -lts
17
18 $(INSTALL):
19         mkdir -p $(INSTALL)
20
21 install: $(INSTALL) $(BIN)
22         cp op_runfbapp $(INSTALL)/
23         cp op_gammatool $(INSTALL)/op_gammatool_bin
24         cp op_test_inputs $(INSTALL)/op_test_inputs_bin
25         cp ofbset $(INSTALL)/
26         cp scripts/op_gammatool $(INSTALL)/
27         cp scripts/op_test_inputs $(INSTALL)/