Subversion Repositories Kolibri OS

Rev

Rev 4930 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. LIBRARY= librender
  3.  
  4. CC=gcc
  5. CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
  6.  
  7. AR= ar
  8.  
  9. INCLUDES= -I. -I../newlib/libc/include -I../Mesa/include -I../libdrm/include/drm
  10.  
  11. LIBPATH:= -L../../lib
  12.  
  13.  
  14. DEFINES= -D__unix__ -DMESA_EGL_NO_X11_HEADERS
  15.  
  16.  
  17. SOURCES = render.c      \
  18.           blit.c        \
  19.           swap.c       
  20.  
  21.  
  22. OBJECTS =  $(patsubst %.c, %.o, $(SOURCES))
  23.  
  24.  
  25. # targets
  26.  
  27.  
  28. all:$(LIBRARY).a
  29.  
  30. $(LIBRARY).a: $(OBJECTS) Makefile
  31.         ar cvrs $(LIBRARY).a $(OBJECTS)
  32.         mv -f $(LIBRARY).a ../../lib
  33.  
  34. %.o : %.c Makefile
  35.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  36.  
  37. clean:
  38.         -rm -f *.o
  39.  
  40.  
  41.  
  42.  
  43.