iodine/tests/Makefile

29 lines
470 B
Makefile
Raw Normal View History

2006-11-18 13:37:37 +00:00
CC = gcc
TESTSUITE = tester
TESTOBJS = test.o ../src/dns.o ../src/read.o ../src/encoding.o
OS = `uname | tr "a-z" "A-Z"`
LDFLAGS = -lz
CFLAGS = -c -g -Wall -D$(OS)
all: $(TESTSUITE)
test: $(TESTSUITE)
@./$(TESTSUITE)
$(TESTSUITE): $(TESTOBJS)
@echo LD $@
@$(CC) $(TESTOBJS) -o $(TESTSUITE) $(LDFLAGS)
@echo Running tests...
@./$(TESTSUITE)
.c.o:
@echo CC $<
@$(CC) $(CFLAGS) $< -o $@
clean:
@echo "Cleaning tests/"
@rm -f $(TESTSUITE) *~ *.o *.core