majic/Makefile

18 lines
338 B
Makefile
Raw Normal View History

CFLAGS = -std=c99 -g -Wall -Werror
CPPFLAGS = -I$(ERL_EI_INCLUDE_DIR)
LDFLAGS = -L$(ERL_EI_LIBDIR)
LDLIBS = -lpthread -lei -lm -lmagic
PRIV = priv/
RM = rm -Rf
2020-06-15 20:23:14 +00:00
all: priv/libmagic_port
2020-06-15 20:23:14 +00:00
priv/libmagic_port: src/libmagic_port.c
mkdir -p priv
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
clean:
2020-06-14 16:39:46 +00:00
$(RM) $(PRIV)
.PHONY: clean