diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-04-01 12:19:47 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-04-01 22:25:48 +0800 |
commit | 57cc1db87b5cacffd3344c49062c8289b7d46e78 (patch) | |
tree | 24e48125d306bf4b67534984d4c20c4256ad90cf /progs/egl/eglut/Makefile | |
parent | fc3ddd4b566380e7684c780450016e3e191a4160 (diff) |
progs/egl: Add eglut.
eglut is a simple library with GLUT-like API. It is intended to be used
by simple EGL demos.
Diffstat (limited to 'progs/egl/eglut/Makefile')
-rw-r--r-- | progs/egl/eglut/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/progs/egl/eglut/Makefile b/progs/egl/eglut/Makefile new file mode 100644 index 0000000000..f5cafa7010 --- /dev/null +++ b/progs/egl/eglut/Makefile @@ -0,0 +1,35 @@ +# progs/egl/eglut + +TOP = ../../.. +include $(TOP)/configs/current + +INCLUDES = \ + -I$(TOP)/include + +SOURCES = $(wildcard *.c) + +EGLUT_X11_OBJECTS = eglut.o eglut_x11.o +EGLUT_SCREEN_OBJECTS = eglut.o eglut_screen.o + +default: depend libeglut-x11.a libeglut-screen.a + +libeglut-x11.a: $(EGLUT_X11_OBJECTS) + $(MKLIB) -o eglut-x11 -static $(EGLUT_X11_OBJECTS) + +libeglut-screen.a: $(EGLUT_SCREEN_OBJECTS) + $(MKLIB) -o eglut-screen -static $(EGLUT_SCREEN_OBJECTS) + +.c.o: + $(CC) -c -o $@ $< $(INCLUDES) $(DEFINES) $(CFLAGS) + +depend: $(SOURCES) + @rm -f depend + @touch depend + @$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \ + > /dev/null 2>/dev/null + +clean: + rm -f *.o *.a + rm -f depend depend.bak + +sinclude depend |