summaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/examples/updownsrv/Makefile
blob: 5e6111c2a7daef9ae7c5ccfc24cb2b44631da719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
EXEC     = $(shell basename $$(pwd))
CC       = gcc

CFLAGS   = -std=gnu11 -O3 -Wall -Wextra -Wpedantic -Wstrict-aliasing
#CFLAGS  += $(shell pkg-config --cflags glib-2.0 gio-2.0)
#LDFLAGS  = $(shell pkg-config --libs   glib-2.0 gio-2.0)

SRC      = $(wildcard *.c)
OBJ      = $(SRC:.c=.o)

all: $(EXEC)

${EXEC}: $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c
	$(CC) -o $@ -c $< $(CFLAGS)

.PHONY: clean mrproper

clean:
	@rm -rf *.o

mrproper: clean
	@rm -rf $(EXEC)