mirror of
https://github.com/Mo3he/Axis_Cam_Tailscale.git
synced 2026-08-16 04:06:45 +00:00
29 lines
740 B
Makefile
29 lines
740 B
Makefile
PROGS = serverconfig
|
|
SRCS = config_updater.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
PKGS = glib-2.0 gio-2.0 axparameter
|
|
|
|
CFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags $(PKGS))
|
|
LDLIBS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs $(PKGS))
|
|
|
|
CFLAGS += -Wall \
|
|
-Wextra \
|
|
-Wformat=2 \
|
|
-Wpointer-arith \
|
|
-Wbad-function-cast \
|
|
-Wstrict-prototypes \
|
|
-Wmissing-prototypes \
|
|
-Winline \
|
|
-Wdisabled-optimization \
|
|
-Wfloat-equal \
|
|
-W \
|
|
-Werror
|
|
|
|
all: $(PROGS)
|
|
|
|
$(PROGS): $(OBJS)
|
|
$(CC) $(LDFLAGS) $^ $(LIBS) $(LDLIBS) -o $@
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o *.eap* *_LICENSE.txt package.conf* param.conf tmp*
|