
include ../Make.cnf

DIRL    = ../src
DIRH    = ../src
LIBS    = -L$(DIRL) -lpict -lm

.SUFFIXES: .c

.c:
	$(CC) $(CCFLAGS) -I$(DIRH) $< -o $@ $(LIBS)


test: ../src/libpict.a typesz genpict
	@echo TEST: typesz
	typesz
	@echo TEST: write PICT2
	genpict pict00 50 100 0
	genpict pict01 250 100 1
	genpict pict03 512 256 3
	genpict pict04 220 220 4
	@echo TEST: read PICT2
	scpict -s 0.5 -o tmp.pict pict00
	scpict -s 0.5 -o tmp.pict pict01
	scpict -s 0.5 -o tmp.pict pict03
	scpict -s 0.5 -o tmp.pict pict04

../src/libpict.a:
	@echo Please, create libpict.a first

clean clobber:
	rm -f core tags pict00 pict01 pict03 pict04 typesz genpict
	rm -f tmp.pict
