| @@ -1,6 +1,4 @@ | |||
| # Simple makefile for compiling test programs on Linux | |||
| # These programs aren't intended to be included with the normal | |||
| # distro. They're not too interesting but they're good for testing. | |||
| # Makefile for miniglx demo programs | |||
| TOP = ../.. | |||
| @@ -47,7 +45,7 @@ clean: | |||
| rm -f *.o | |||
| # Run 'make -f Makefile.X11 dep' to update the dependencies if you change | |||
| # Run 'make -f Makefile.solo dep' to update the dependencies if you change | |||
| # what's included by any source file. | |||
| depend: $(SOURCES) | |||
| makedepend -fdepend -Y $(INCLUDES) \ | |||
| @@ -49,7 +49,7 @@ LIBS = -L$(TOP)/lib -lGL -lGLU -lm | |||
| targets: depend libglut.so.3.7 install | |||
| libglut.so.3.7: $(OBJS) Makefile.X11 | |||
| libglut.so.3.7: $(OBJS) Makefile.solo | |||
| gcc -shared -Wl,-soname,libglut.so -Wl,-Bsymbolic $(OBJS) $(LIBS) -o $@ | |||
| install: libglut.so.3.7 | |||
| @@ -58,7 +58,7 @@ install: libglut.so.3.7 | |||
| ln -s libglut.so.3.7 $(TOP)/lib/libglut.so.3 | |||
| ln -s libglut.so.3 $(TOP)/lib/libglut.so | |||
| # Run 'make -f Makefile.X11 dep' to update the dependencies if you change | |||
| # Run 'make -f Makefile.solo dep' to update the dependencies if you change | |||
| # what's included by any source file. | |||
| depend: $(SOURCES) | |||
| makedepend -fdepend -Y $(INCLUDES) \ | |||
| @@ -44,7 +44,7 @@ INCLUDE_DIRS = \ | |||
| targets: depend libGL.so.1.2 | |||
| libGL.so.1.2: $(OBJECTS) Makefile.X11 | |||
| libGL.so.1.2: $(OBJECTS) Makefile.solo | |||
| rm -f $@ && gcc -shared -Wl,-soname,libGL.so -Wl,-Bsymbolic $(OBJECTS) $(LIBS) -o $@ | |||
| rm -f $(TOP)/lib/libGL.so* | |||
| rm -f $(TOP)/lib/miniglx.conf | |||
| @@ -56,7 +56,7 @@ libGL.so.1.2: $(OBJECTS) Makefile.X11 | |||
| drmtest: xf86drm.o drmtest.o | |||
| rm -f drmtest && $(CC) -o drmtest xf86drm.o drmtest.o | |||
| # Run 'make -f Makefile.X11 dep' to update the dependencies if you change | |||
| # Run 'make -f Makefile.solo dep' to update the dependencies if you change | |||
| # what's included by any source file. | |||
| depend: $(C_SOURCES) $(ASM_SOURCES) | |||
| makedepend -fdepend -Y $(INCLUDES) \ | |||