-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
objconv.mk
42 lines (30 loc) · 1.04 KB
/
objconv.mk
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
## objconv ##
include $(SRCDIR)/objconv.version
ifneq ($(USE_BINARYBUILDER_OBJCONV),1)
$(SRCCACHE)/objconv.zip: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://www.agner.org/optimize/objconv.zip
$(BUILDDIR)/objconv/source-extracted: $(SRCCACHE)/objconv.zip
rm -rf $(dir $@)
mkdir -p $(BUILDDIR)
unzip -d $(dir $@) $<
cd $(dir $@) && unzip source.zip
echo 1 > $@
$(BUILDDIR)/objconv/build-compiled: $(BUILDDIR)/objconv/source-extracted
cd $(dir $<) && $(CXX) -o objconv -O2 *.cpp
echo 1 > $@
$(eval $(call staged-install, \
objconv,objconv, \
BINFILE_INSTALL,$$(BUILDDIR)/objconv/objconv,,))
clean-objconv:
-rm -f $(BUILDDIR)/objconv/build-compiled $(build_depsbindir)/objconv
distclean-objconv:
rm -rf $(SRCCACHE)/objconv.zip $(BUILDDIR)/objconv
get-objconv: $(SRCCACHE)/objconv.zip
extract-objconv: $(BUILDDIR)/objconv/source-extracted
configure-objconv: extract-objconv
compile-objconv: $(BUILDDIR)/objconv/build-compiled
fastcheck-objconv: check-objconv
check-objconv: compile-objconv
else
$(eval $(call bb-install,objconv,OBJCONV,false))
endif