forked from extern/alertik
Add Makefile
This commit is contained in:
parent
97a3b0b00d
commit
5ce83fc4c1
30
Makefile
Normal file
30
Makefile
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# Alertik: a tiny 'syslog' server & notification tool for Mikrotik routers.
|
||||||
|
# This is free and unencumbered software released into the public domain.
|
||||||
|
#
|
||||||
|
|
||||||
|
CC ?= cc
|
||||||
|
CFLAGS += -Wall -Wextra
|
||||||
|
LDLIBS += -pthread -lcurl
|
||||||
|
STRIP = strip
|
||||||
|
|
||||||
|
ifeq ($(LOG_FILE),yes)
|
||||||
|
CFLAGS += -DUSE_FILE_AS_LOG
|
||||||
|
endif
|
||||||
|
|
||||||
|
# We're cross-compiling?
|
||||||
|
ifneq ($(CROSS),)
|
||||||
|
CC = $(CROSS)-linux-musleabi-gcc
|
||||||
|
STRIP = $(CROSS)-linux-musleabi-strip
|
||||||
|
CFLAGS += -DUSE_FILE_AS_LOG # We don't have stdout...
|
||||||
|
LDLIBS += -lbearssl
|
||||||
|
LDFLAGS += -no-pie --static
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: alertik Makefile
|
||||||
|
$(STRIP) --strip-all alertik
|
||||||
|
|
||||||
|
alertik: alertik.o
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f alertik.o alertik
|
Loading…
Reference in New Issue
Block a user