| 1 | # glestest makefile |
| 2 | # Global definitions |
| 3 | |
| 4 | CC = gcc |
| 5 | |
| 6 | OBJS = gles_video.o test.o |
| 7 | |
| 8 | BIN = glestest |
| 9 | |
| 10 | # Platform specific definitions |
| 11 | |
| 12 | CFLAGS+=-D_LINUX |
| 13 | |
| 14 | LIBS +=-L$(SDKSTAGE)/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt |
| 15 | |
| 16 | INCLUDES+=-I$(SDKSTAGE)/opt/vc/include -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads |
| 17 | |
| 18 | # Compilation: |
| 19 | |
| 20 | all: $(BIN) |
| 21 | |
| 22 | %.o: %.c |
| 23 | $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< |
| 24 | |
| 25 | $(BIN): $(OBJS) |
| 26 | $(CC) $(OBJS) $(LIBS) -o $(BIN) |
| 27 | |
| 28 | clean: |
| 29 | rm -f *.o $(BIN) |
| 30 | |