Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sampleMakefile 694B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Sample makefile for compiling OpenGL/Mesa applications on Unix.
  2. # This example assumes Linux with gcc.
  3. # This makefile is in the public domain
  4. # Revision 1.1 1999/08/19 00:55:42 jtg
  5. # Initial revision
  6. #
  7. # Revision 1.1 1999/02/24 05:20:45 brianp
  8. # Initial revision
  9. #
  10. CC = gcc
  11. CFLAGS = -c -g -ansi -pedantic -Wall
  12. INCDIRS = -I. -I../include
  13. LIBDIRS = -L../lib -L/usr/X11/lib
  14. LIBS = -lglut -lMesaGLU -lMesaGL -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lm
  15. OBJECTS = main.o \
  16. file1.o \
  17. file2.o \
  18. file3.o
  19. PROGRAMS = myprogram
  20. .c.o:
  21. $(CC) $(CFLAGS) $(INCDIRS) $< -o $@
  22. default: $(PROGRAMS)
  23. dtenvmap: $(OBJECTS)
  24. $(CC) $(OBJECTS) $(LIBDIRS) $(LIBS) -o $@
  25. clean:
  26. rm -f *.o