cmdline: new build system
[libcmdline.git] / Makefile
1 MAKEFLAGS += --no-print-directory
2
3 TOPDIR = $(shell pwd)
4 BUILDDIR = $(TOPDIR)/build
5 SRCDIR = $(TOPDIR)/src
6 PREFIX = /usr/local
7
8 include $(TOPDIR)/libcmdline.vars.mk
9
10 export TOPDIR
11 export BUILDDIR
12 export SRCDIR
13 export PREFIX
14
15 SUBDIRS  = lib
16 SUBDIRS += calculator_server
17 SUBDIRS += trivial_rdline
18 SUBDIRS += extension_example
19 SUBDIRS += calculator_standalone
20 SUBDIRS += client
21 SUBDIRS += genconf
22 ifeq ($(HAVE_EVENT_LIB),y)
23 SUBDIRS += event_server
24 endif
25
26 include $(TOPDIR)/libcmdline.subdir.mk