CFLAGS=-O2 -Wall

all: shtlog

test: sht.c sht.h
	gcc ${CFLAGS} -Dtestsht -o $@ $<

shtlog: shtlog.c sht.o
	gcc ${CFLAGS} -o $@ $^

sht.o: sht.c sht.h
	gcc ${CFLAGS} -c $<

package:
	tar -czvf sht-linux-parallel.tgz Makefile sht.c sht.h COPYING

clean:
	rm -f sht.o test core
