TOPDIR = ../..

include $(TOPDIR)/makedefs

TARGET  = ../liblescegra.a
SOURCES = vertex.c matrix.c \
          object.c \
          random.c endian.c error.c \
          list.c linkedlist.c arraylist.c \
          image.c image_pcx.c image_tga.c \
          primitives.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
