1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
VERSION=1.0.1
all: tt-demo
.c.o:
gcc -Wall -g -O2 -c $<
tinytest.o: tinytest.h
tinytest_demo.o: tinytest_macros.h tinytest.h
OBJS=tinytest.o tinytest_demo.o
tt-demo: $(OBJS)
gcc -Wall -g -O2 $(OBJS) -o tt-demo
lines:
wc -l tinytest.c tinytest_macros.h tinytest.h
clean:
rm -f *.o *~ tt-demo
DISTFILES=tinytest.c tinytest_demo.c tinytest.h tinytest_macros.h Makefile \
README
dist:
rm -rf tinytest-$(VERSION)
mkdir tinytest-$(VERSION)
cp $(DISTFILES) tinytest-$(VERSION)
tar cf - tinytest-$(VERSION) | gzip -c -9 > tinytest-$(VERSION).tar.gz
|