blob: a3aae11b01de4a68be5a57c0e7eedb805615e4dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
EXEC = $(shell basename $$(pwd))
CC = gcc
CFLAGS = -std=gnu11 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -DWITH_POLICY
LDFLAGS = -lhicn -lhicnctrl
SRC = $(wildcard *.c)
EXEC = $(SRC:.c=)
all: $(EXEC)
%:%.c
$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
.PHONY: clean mrproper
clean:
@rm -rf $(EXEC)
mrproper: clean
|