1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-12-02 01:46:02 +03:00
iodine/tests/Makefile
2006-11-18 13:37:37 +00:00

29 lines
470 B
Makefile

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