Skip to content
Snippets Groups Projects
Makefile 462 B
Newer Older
SRCROOT = $(CURDIR)/../..
DEPTH=../../
include ../../Makefile.common

LDLIBS+= -lreadline -ltermcap -lcrypt $(JSLIBS) -lsqlite3 -lcurl -lpthread -lcrypto -ljansson
LDFLAGS+= -L..
CFLAGS+= -I..

build: mw

mw: $(CODE:.c=.o) ../libmw.a
	$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^

install: mw
	install -D mw $(DESTDIR)$(bindir)/mw

clean:
	-rm -f *.o *.d mw

ifndef TESTDIR
test:
	$(MAKE) -C .. $@
else
test:
	$(MAKE) libdir="$(TESTDIR)" localstatedir="$(TESTDIR)"
endif