summaryrefslogtreecommitdiff
path: root/raspberrypi/test/Makefile
diff options
context:
space:
mode:
authorDave2013-03-04 22:28:03 +0100
committernotaz2013-03-07 23:16:38 +0200
commitffa573f88020e4de9300a013721068672c923f33 (patch)
tree48bdc5b166e0211b24155b77fe28075e3c258135 /raspberrypi/test/Makefile
parent6a298de4811066eb3cd2fadfd78970281ed30074 (diff)
downloadpicogpsp-ffa573f88020e4de9300a013721068672c923f33.tar.gz
picogpsp-ffa573f88020e4de9300a013721068672c923f33.tar.bz2
picogpsp-ffa573f88020e4de9300a013721068672c923f33.zip
raspberry pi port
Diffstat (limited to 'raspberrypi/test/Makefile')
-rw-r--r--raspberrypi/test/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/raspberrypi/test/Makefile b/raspberrypi/test/Makefile
new file mode 100644
index 0000000..9830834
--- /dev/null
+++ b/raspberrypi/test/Makefile
@@ -0,0 +1,30 @@
+# glestest makefile
+# Global definitions
+
+CC = gcc
+
+OBJS = gles_video.o test.o
+
+BIN = glestest
+
+# Platform specific definitions
+
+CFLAGS+=-D_LINUX
+
+LIBS +=-L$(SDKSTAGE)/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt
+
+INCLUDES+=-I$(SDKSTAGE)/opt/vc/include -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads
+
+# Compilation:
+
+all: $(BIN)
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
+
+$(BIN): $(OBJS)
+ $(CC) $(OBJS) $(LIBS) -o $(BIN)
+
+clean:
+ rm -f *.o $(BIN)
+