TOPDIR = ../..

include $(TOPDIR)/makedefs

TARGET  = ../liblescegra.a
SOURCES = random.c primitives.c list.c \
          vertex.c matrix.c \
          image.c image_pcx.c \
          object.c \
          frustum.c bbox.c
              
all: $(TARGET)

clean:
	rm -f $(SOURCES:.c=.o)
	rm -f depend depend.bak

$(TARGET): $(SOURCES:.c=.o)
	$(AR) rc $@ $?

image_pcx.o: CFLAGS += -Wpadded -Werror

include depend

include $(TOPDIR)/makerules
