2014-01-21 15:25:30 +01:00
|
|
|
|
|
|
|
LIBRARY= librender
|
|
|
|
|
|
|
|
CC=gcc
|
2014-08-07 13:48:01 +02:00
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
|
2014-01-21 15:25:30 +01:00
|
|
|
|
|
|
|
AR= ar
|
|
|
|
|
2014-05-21 22:47:51 +02:00
|
|
|
INCLUDES= -I. -I../newlib/libc/include -I../Mesa/include -I../libdrm/include/drm
|
2014-01-21 15:25:30 +01:00
|
|
|
|
|
|
|
LIBPATH:= -L../../lib
|
|
|
|
|
|
|
|
|
|
|
|
DEFINES= -D__unix__ -DMESA_EGL_NO_X11_HEADERS
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES = render.c \
|
|
|
|
blit.c \
|
|
|
|
swap.c
|
|
|
|
|
|
|
|
|
|
|
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
|
|
|
|
|
|
|
|
# targets
|
|
|
|
|
|
|
|
|
|
|
|
all:$(LIBRARY).a
|
|
|
|
|
|
|
|
$(LIBRARY).a: $(OBJECTS) Makefile
|
|
|
|
ar cvrs $(LIBRARY).a $(OBJECTS)
|
|
|
|
mv -f $(LIBRARY).a ../../lib
|
|
|
|
|
|
|
|
%.o : %.c Makefile
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|