aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/examples/Makefile
blob: 641936f4ffebc456a1da4515eb94b969e8755ef5 (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=1
LDFLAGS  = -lhicn -lhicnctrl

SRC      = $(wildcard *.c)
EXEC     = $(SRC:.c=)

all: $(EXEC)

${EXEC}: $(SRC)
	$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)

.PHONY: clean mrproper

clean:
	@rm -rf $(EXEC)

mrproper: clean