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.

Makefile 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # progs/demos/Makefile
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. INCDIR = $(TOP)/include
  5. OSMESA_LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -l$(OSMESA_LIB) $(APP_LIB_DEPS)
  6. OSMESA16_LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -lOSMesa16 -l$(GLU_LIB) \
  7. -l$(GL_LIB) $(APP_LIB_DEPS)
  8. OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -lOSMesa32 -l$(GLU_LIB) \
  9. -l$(GL_LIB) $(APP_LIB_DEPS)
  10. PROGS = \
  11. osdemo \
  12. ostest1
  13. ##### RULES #####
  14. .SUFFIXES:
  15. .SUFFIXES: .c
  16. ##### TARGETS #####
  17. default: readtex.o $(PROGS)
  18. readtex.c: $(TOP)/progs/util/readtex.c
  19. cp $< .
  20. readtex.h: $(TOP)/progs/util/readtex.h
  21. cp $< .
  22. readtex.o: readtex.c readtex.h
  23. $(CC) -c -I$(INCDIR) $(CFLAGS) readtex.c
  24. showbuffer.c: $(TOP)/progs/util/showbuffer.c
  25. cp $< .
  26. showbuffer.h: $(TOP)/progs/util/showbuffer.h
  27. cp $< .
  28. showbuffer.o: showbuffer.c showbuffer.h
  29. $(CC) -c -I$(INCDIR) $(CFLAGS) showbuffer.c
  30. # special case: need the -lOSMesa library:
  31. osdemo: osdemo.c
  32. $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
  33. # special case: need the -lOSMesa library:
  34. ostest1: ostest1.c
  35. $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) ostest1.c $(OSMESA_LIBS) -o $@
  36. # another special case: need the -lOSMesa16 library:
  37. osdemo16: osdemo16.c
  38. $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo16.c $(OSMESA16_LIBS) -o $@
  39. # another special case: need the -lOSMesa32 library:
  40. osdemo32: osdemo32.c
  41. $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@
  42. clean:
  43. -rm -f $(PROGS)
  44. -rm -f *.o *~
  45. -rm -f readtex.[ch] showbuffer.[ch]
  46. -rm -f *.ppm
  47. -rm -f osdemo16 osdemo32