3 datadir=$(prefix)/share
5 SRCS
=$(sort $(wildcard src
/*.
cc src
/*/*.
cc src
/*/*/*.
cc kkconsui
/src
/*.
cc kkstrtext
/*.
cc kksystr
/src
/*.
cc))
6 CSRCS
=$(sort $(wildcard parser
/src
/*.c
))
8 OBJS
=$(SRCS
:.
cc=.o
) $(COBJS
)
9 INCLUDES
=-Isrc
-Iparser
/include -Ikkstrtext
-Isrc
/ui
-Isrc
/project
-Isrc
/executor \
10 -Isrc
/debugger
-Isrc
/tagbrowser
-Ikksystr
/include -Isrc
/configuration \
11 -Ikkconsui
/include -Isrc
/manager
-Isrc
/vcs
-Isrc
/grepper
-Isrc
/ui
/ncurses
13 TEMPLATES
=$(sort $(wildcard share
/templates
/* share
/templates
/*/* share
/templates
/*/*/*))
17 CPPFLAGS
=-DINT
=intptr_t
-DUINT
=uintptr_t
24 install: install-progs install-templates
26 install-progs
: $(PROGS
:%=$(DESTDIR
)$(bindir)/%)
27 install-templates
: #$(TEMPLATES:share/%=$(DESTDIR)$(datadir)/motor/%)
28 mkdir
-p
$(DESTDIR
)$(datadir)/motor
29 cp
-r share
/templates
$(DESTDIR
)$(datadir)/motor
/
32 $(DESTDIR
)$(bindir)/%: %
33 install -D
-m
755 $< $@
35 #$(DESTDIR)$(datadir)/%: share/%
36 # install -D -m 644 $< $@
43 $(CXX
) -o motor
$^
$(LDFLAGS
) $(LIBS
)
46 $(CXX
) -DSHARE_DIR
=\"$(datadir)/motor
\" $(INCLUDES
) $(CPPFLAGS
) $(CXXFLAGS
) -c
-o
$@
$<
49 $(CC
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<