mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 13:53:32 +02:00
28 lines
470 B
Makefile
28 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
|
|
|