-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
98 lines (74 loc) · 2.68 KB
/
Makefile
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#------------------------------------------------------------------------------
# file : Makefile
#------------------------------------------------------------------------------
include make.config
ifdef ETAGS
ETAGFILES = $(shell find . -name "*.[Cch]" | grep -v /CVS/)
endif
ifdef CTAGS
CTAGFILES = $(shell find . -name "*.[Cch]" | grep -v /CVS/)
endif
LIB_NAME = lib$(LEP_NAME)$(LIB_SUFFIX)
LEP_INCL_PATH_NAME = $(LEDA_INCL_PATH)/LEP/$(LEP_PATH_NAME)
#------------------------------------------------------------------------------
# Libraries & Programs
#------------------------------------------------------------------------------
all: lib Test Demo
#------------------------------------------------------------------------------
# Libraries
#------------------------------------------------------------------------------
lib:
@cd src; \
$(MAKE) -i
touch:
@cd src; \
$(MAKE) -i touch
#------------------------------------------------------------------------------
# Demos
#------------------------------------------------------------------------------
Demo:
cd demo; $(MAKE) -i
#------------------------------------------------------------------------------
# Test programs
#------------------------------------------------------------------------------
Test:
cd test; $(MAKE) -i
#------------------------------------------------------------------------------
# Reorganinzation and cleaning up
#------------------------------------------------------------------------------
lepintegrate:
@if [ ! -d $(LEP_INCL_PATH_NAME) ]; then \
$(MKDIR) $(LEP_INCL_PATH_NAME); fi
$(CP) incl/LEP/$(LEP_PATH_NAME)/*.h $(LEP_INCL_PATH_NAME)
# moves header files to <LEDA>/incl/LEP/<LEP_PATH_NAME>
confclean: allclean
$(RM) -f *~ log config.log config.status configure
cd confdir; $(MAKE) -i clean
allclean: clean
cd src; $(MAKE) -i allclean
cd demo; $(MAKE) -i allclean
cd test; $(MAKE) -i allclean
$(RM) -f lib$(LEP_NAME).so static/lib$(LEP_NAME).a lib$(LEP_NAME).sl
clean:
cd demo; $(MAKE) -i clean
cd test; $(MAKE) -i clean
cd src; $(MAKE) -i clean
depend:
cd src; $(MAKE) -i depend
cd demo; $(MAKE) -i depend
cd test; $(MAKE) -i depend
#------------------------------------------------------------------------------
# CVS changelog and tags
#------------------------------------------------------------------------------
changelog:
cvs2cl -P --utc
tags: $(CTAGFILES)
$(CTAGS) $(CTAGFILES)
TAGS: $(ETAGFILES)
$(ETAGS) $(ETAGFILES)
#------------------------------------------------------------------------------
# Creating configure script
#------------------------------------------------------------------------------
conf:
cd confdir; $(MAKE) -i configure
cd confdir; $(MAKE) -i copyfiles