tests: add simple write tests
[pandora-misc.git] / Makefile
index b77ba5a..ce1bbce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CFLAGS += -Wall -O2
 LDFLAGS += -s
 INSTALL ?= bin
 
-BIN = op_runfbapp op_gammatool
+BIN = op_runfbapp op_gammatool op_gammatable op_test_inputs ofbset
 
 all: $(BIN)
 
@@ -13,6 +13,8 @@ clean:
        $(RM) *.o $(BIN)
 
 op_runfbapp: LDFLAGS += -lpthread -lX11
+op_test_inputs: LDFLAGS += -lpthread -lts
+op_gammatable: LDFLAGS += -lm
 
 $(INSTALL):
        mkdir -p $(INSTALL)
@@ -20,4 +22,11 @@ $(INSTALL):
 install: $(INSTALL) $(BIN)
        cp op_runfbapp $(INSTALL)/
        cp op_gammatool $(INSTALL)/op_gammatool_bin
-       cp scripts/op_gammatool $(INSTALL)/op_gammatool
+       cp op_gammatable $(INSTALL)/
+       cp op_test_inputs $(INSTALL)/op_test_inputs_bin
+       cp ofbset $(INSTALL)/
+       cp scripts/op_gammatool $(INSTALL)/
+       cp scripts/op_test_inputs $(INSTALL)/
+
+vld:
+       $(CC) -Wall -O2 -DVALIDATION -s op_test_inputs.c -o op_test_inputs -Wl,-Bstatic -lpthread -lc -Wl,-Bdynamic -lts