2023-08-27 07:01:15 +02:00
|
|
|
SRCDIR = src
|
|
|
|
SRCFILES = $(SRCDIR)/isinetaddr.c $(SRCDIR)/iscidraddr.c
|
|
|
|
INCDIR = include
|
|
|
|
TESTDIR = test
|
2023-08-25 20:57:09 +02:00
|
|
|
|
|
|
|
CC = cc
|
2023-08-26 01:29:47 +02:00
|
|
|
CFLAGS = -fstack-protector-all -I$(INCDIR) -Wall -Wextra -pedantic
|
2023-08-25 20:57:09 +02:00
|
|
|
|
|
|
|
test:
|
2023-08-27 07:01:15 +02:00
|
|
|
@$(CC) $(CFLAGS) $(SRCFILES) $(TESTDIR)/isinetaddr_test.c -o $(TESTDIR)/isinetaddr
|
2023-08-26 21:25:52 +02:00
|
|
|
@echo -n test/isinetaddr: ''
|
|
|
|
@$(TESTDIR)/isinetaddr
|
2023-08-27 07:01:15 +02:00
|
|
|
@$(CC) $(CFLAGS) $(SRCFILES) $(TESTDIR)/iscidraddr_test.c -o $(TESTDIR)/iscidraddr
|
2023-08-26 21:25:52 +02:00
|
|
|
@echo -n test/iscidraddr: ''
|
2023-08-28 03:56:00 +02:00
|
|
|
@$(TESTDIR)/iscidraddr
|
2023-08-25 20:57:09 +02:00
|
|
|
|
|
|
|
.PHONY: test
|