summaryrefslogtreecommitdiffhomepage
path: root/project/custom.mk
blob: 384512184ffea426edde1cb0ae207ad9cbd65557 (plain)
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
ifeq ($(OS_BINFMT),PE)
include $(PROJECT_DIR)/sysinfo/os/pe.mk
endif

ifeq ($(OS_BINFMT),ELF)
include $(PROJECT_DIR)/sysinfo/os/elf.mk
endif



ifeq ($(DISABLE_STATIC),yes)
package-static:
package-install-static:
else
package-static:		static
package-install-static:	install-static
endif

ifeq ($(DISABLE_SHARED),yes)
package-shared:
package-install-shared:
else
package-shared:		shared
package-install-shared:	install-shared
endif



ifeq ($(ALL_STATIC),yes)

package-app:	static-app
app:		PACKAGE_APP = $(STATIC_APP)
app-tag:	PACKAGE_APP = $(STATIC_APP)
app.tag:	$(STATIC_APP)


else ifeq ($(ALL_SHARED),yes)

package-app:	shared-app
app:		PACKAGE_APP = $(SHARED_APP)
app-tag:	PACKAGE_APP = $(SHARED_APP)
app.tag:	$(SHARED_APP)


else

package-app:	default-app
app:		PACKAGE_APP = $(DEFAULT_APP)
app-tag:	PACKAGE_APP = $(DEFAULT_APP)
app.tag:	$(DEFAULT_APP)

endif