File: Makefile

package info (click to toggle)
vfu 5.09-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,552 kB
  • sloc: cpp: 16,739; ansic: 2,605; perl: 678; makefile: 349; sh: 75
file content (65 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download | duplicates (2)
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
PKG_CONFIG?=pkg-config
YASCREEN_LD?=$(shell $(PKG_CONFIG) --libs yascreen)
NCURSES_LD?=$(shell $(PKG_CONFIG) --libs ncursesw)

BINS:=vfu/vfu vfu/vfu.yas
ifeq ($(YASCREEN_LD),)
	BINS:=$(filter-out vfu/vfu.yas,$(BINS))
endif
ifeq ($(NCURSES_LD),)
	BINS:=$(filter-out vfu/vfu,$(BINS))
endif

ifeq ("$(V)","1")
Q:=
E:=@true
else
Q:=@
E:=@echo
endif

all: $(BINS)

vfu/vfu: vstring/libvstring.a vslib/libvslib.a vslib/libvscon.a
	$(E) MAKE vfu
	$(Q)$(MAKE) -C vfu vfu

vfu/vfu.yas: vstring/libvstring.a vslib/libvslib.a vslib/libvscony.a
	$(E) MAKE vfu.yas
	$(Q)$(MAKE) -C vfu vfu.yas

vstring/libvstring.a:
	$(E) MAKE libvstring.a
	$(Q)$(MAKE) -C vstring libvstring.a

vslib/libvslib.a:
	$(E) MAKE libvslib.a
	$(Q)$(MAKE) -C vslib libvslib.a

vslib/libvscon.a:
	$(E) MAKE libvscon.a
	$(Q)$(MAKE) -C vslib libvscon.a

vslib/libvscony.a:
	$(E) MAKE libvscony.a
	$(MAKE) -C vslib libvscony.a

clean: clean-vslib clean-vstring clean-vfu

clean-vslib:
	$(E) CLEAN vslib
	$(Q)$(MAKE) --no-print-directory -C vslib clean

clean-vstring:
	$(E) CLEAN vstring
	$(Q)$(MAKE) --no-print-directory -C vstring clean

clean-vfu:
	$(E) CLEAN vfu
	$(Q)$(MAKE) --no-print-directory -C vfu clean

re:
	$(Q)$(MAKE) --no-print-directory clean
	$(Q)$(MAKE) --no-print-directory -j

.PHONY: all clean clean-vfu clean-vslib clean-vstring re