Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. # Makefile for Win32
  2.  
  3. !include <win32.mak>
  4.  
  5. TOP = ..\..
  6.  
  7. OSMESA_SRCS = osmesa.c
  8. OSMESA_OBJS = osmesa.obj
  9.  
  10. ASM_SRCS =
  11. CORE_SRCS =
  12. DRIVER_SRCS = $(OSMESA_SRCS)
  13.  
  14. SRCS    = $(OSMESA_SRCS)
  15.  
  16. all     : osmesadll
  17.  
  18. !include "$(TOP)/mesawin32.mak"
  19.  
  20. osmesadll: $(OSMESADLL)
  21.  
  22. CFLAGS  = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -I$(TOP)/src
  23. LFLAGS  = $(dlllflags) $(lcommon) $(LFLAGS)
  24.  
  25. OBJS    = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
  26. LIBS    = $(guilibsdll) $(TOP)/lib/$(MESALIB)
  27.  
  28. $(OSMESADLL)    : $(OBJS) osmesa.def
  29.         $(link) $(LFLAGS) -def:osmesa.def -out:$(OSMESADLL) $(OBJS) $(LIBS)
  30.         @echo "copying OSMesa library to library directory..."
  31.         -copy $(OSMESALIB) $(TOP)\lib
  32.         @echo "copying OSMesa dll to library directory..."
  33.         -copy $(OSMESADLL) $(TOP)\lib
  34.  
  35. install : $(OSMESADLL)
  36.         @echo "copying OSMesa library to system library directory..."
  37.         -copy $(OSMESALIB) $(LIBINSTALL)
  38.         @echo "copying OSMesa dll to system library directory..."
  39.         -copy $(OSMESADLL) $(DLLINSTALL)
  40.