-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
executable file
·53 lines (40 loc) · 1.19 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##########################
#(C) Will Cunningham 2017 #
# DK Lab #
# Northeastern University #
###########################
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = inc src
INCD = -I $(top_builddir)/inc
DATDIR = $(top_builddir)/data
ETCDIR = $(top_builddir)/etc
if USE_GPU
LNK_STRING = $(LNK_STR)
BIN_STRING = $(BIN_STR) $(INCD)
else
LNK_STRING = $(LNK_STR) $(INCD)
BIN_STRING = $(BIN_STR)
endif
.PHONY: all dirs link cleanbin
.NOTPARALLEL:
all: dirs link
dirs:
mkdir -p $(top_builddir)/bin
rm -f $(top_builddir)/bin/$(BINARY_NAME)
link:
$(LNK_STRING)
$(BIN_STRING)
cleanbin:
rm -rf $(top_builddir)/bin
cleandata :
@rm -rf $(DATDIR)
distclean-local:
rm -rf $(top_builddir)/{autom4te.cache,aclocal.m4,AUTHORS,ChangeLog,config.guess,config.log,config.status,config.sub,configure,depcomp,install-sh,Makefile,Makefile.in,missing,NEWS,src/Makefile.in,inc/Makefile.in,inc/config.h*,inc/stamp-h1,bin,compile,dat,etc/compress,etc/compile,testbed,src/linked.obj}
install-exec-hook:
@mkdir -p $(prefix)/bin
cp $(top_builddir)/bin/* $(prefix)/bin
cp -r $(top_builddir)/etc $(prefix)
@./$(top_builddir)/etc/mkdat $(prefix)
uninstall-hook:
rm $(prefix)/bin/*