forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
objconv.mk
33 lines (25 loc) · 958 Bytes
/
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
## objconv ##
$(SRCDIR)/srccache/objconv.zip: | $(SRCDIR)/srccache
$(JLDOWNLOAD) $@ http://www.agner.org/optimize/objconv.zip
$(BUILDDIR)/objconv/source-extracted: $(SRCDIR)/srccache/objconv.zip
-rm -r $(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 $(BUILDDIR)/objconv/build-compiled $(build_depsbindir)/objconv
distclean-objconv:
-rm -rf $(SRCDIR)/srccache/objconv.zip $(BUILDDIR)/objconv
get-objconv: $(SRCDIR)/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