isinetaddr/Makefile

18 lines
468 B
Makefile
Raw Normal View History

2023-08-25 20:57:09 +02:00
SRCDIR = src
INCDIR = include
TESTDIR = test
TESTBIN = $(TESTDIR)/runner
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-26 21:25:52 +02:00
@$(CC) $(CFLAGS) $(SRCDIR)/isinetaddr.c $(TESTDIR)/isinetaddr_test.c -o $(TESTDIR)/isinetaddr
@echo -n test/isinetaddr: ''
@$(TESTDIR)/isinetaddr
@$(CC) $(CFLAGS) $(SRCDIR)/isinetaddr.c $(TESTDIR)/iscidraddr_test.c -o $(TESTDIR)/iscidraddr
@echo -n test/iscidraddr: ''
@$(TESTDIR)/isinetaddr
2023-08-25 20:57:09 +02:00
.PHONY: test