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 779B

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