CROSS_COMPILE ?= arm-none-linux-gnueabi- CC = $(CROSS_COMPILE)gcc CFLAGS += -Wall -O2 LDFLAGS += -s INSTALL ?= bin BIN = op_runfbapp op_gammatool op_test_inputs ofbset all: $(BIN) clean: $(RM) *.o $(BIN) op_runfbapp: LDFLAGS += -lpthread -lX11 op_test_inputs: LDFLAGS += -lts $(INSTALL): mkdir -p $(INSTALL) install: $(INSTALL) $(BIN) cp op_runfbapp $(INSTALL)/ cp op_gammatool $(INSTALL)/op_gammatool_bin cp op_test_inputs $(INSTALL)/op_test_inputs_bin cp ofbset $(INSTALL)/ cp scripts/op_gammatool $(INSTALL)/ cp scripts/op_test_inputs $(INSTALL)/