Debian Codegraph @

misc/Makefile

raw ◀ ▶
1 Debian patch touch this file
1 #
2 # Copyright 2016, International Business Machines
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 include ../config.mk
18
19 LDLIBS += -lzADC
20 LDFLAGS += -L../lib -Wl,-rpath,lib
21
•22 zpipe_mt_libs = -pthread
23
24 projs = zpipe zpipe_mt zpipe_append zpipe_rnd
25
26 all: $(projs)
27
28 $(projs): $(libs)
29
30 ### Deactivate existing implicit rule
31 %: %.c
32 %: %.sh
33
34 ### Generic rule to build a tool
35 %: %.o
36 $(CC) $(LDFLAGS) [email protected] $($(@)_objs) $($(@)_libs) $(LDLIBS) -o $@
37
38 %.o: %.c $(libs)
39 $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
40
41 install uninstall:
42 @echo "Nothing to be done here."
43
44 clean distclean:
45 $(RM) $(objs) $(projs) $(manpages)