updater: update to SZ 1.54
[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_gammatable 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 += -lpthread -lts
17 op_gammatable: LDFLAGS += -lm
18
19 $(INSTALL):
20         mkdir -p $(INSTALL)
21
22 install: $(INSTALL) $(BIN)
23         cp op_runfbapp $(INSTALL)/
24         cp op_gammatool $(INSTALL)/op_gammatool_bin
25         cp op_gammatable $(INSTALL)/
26         cp op_test_inputs $(INSTALL)/op_test_inputs_bin
27         cp ofbset $(INSTALL)/
28         cp scripts/op_gammatool $(INSTALL)/
29         cp scripts/op_test_inputs $(INSTALL)/
30
31 vld:
32         $(CC) -Wall -O2 -DVALIDATION -s op_test_inputs.c -o op_test_inputs -Wl,-Bstatic -lpthread -lc -Wl,-Bdynamic -lts