1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-29 16:36:03 +03:00
iodine/tests/Makefile

29 lines
470 B
Makefile
Raw Normal View History

2006-11-18 16:37:37 +03: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